Siyuan's Blog

  • 首页

  • 归档

  • 标签

  • 搜索

'Switched to Hexo'

发表于 2013-03-25 |

喵呜~ 终于不用忍受 WordPress 万年不变的后台了

好开心啊好开心啊~

Updated @ 2013-03-25 21:18:50

果然是个人项目 = =

Bug 不少 …

'恨死这些傻缺的 VPS 服务商了'

发表于 2013-03-24 |

每天夜深人静的时候,我就会强迫症发作,把一个个 Badge 全都点掉。

嗯,今天消灭了下很久不用的 QQ 邮箱的垃圾邮件的未读提示。

然后看到了这么一封邮件:

F2AF49FC-19C1-4289-8C39-61BC82C40E8D

点开原文看看:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Received: from 208.64.28.86 (unknown [208.64.28.86])

by newmx20.qq.com (NewMx) with SMTP id

for <ntsys2008@qq.com>; Fri, 22 Mar 2013 00:11:08 +0800

X-QQ-SPAM: true

X-QQ-SSF: 03000000010000000IF00001000000I

Received: from 58.com ([111.0.189.227])

(envelope-sender <mail9@58.com>)

by 208.64.28.86 with ESMTP

for <*@qq.com>; Fri, 22 Mar 2013 00:11:06 +0800

这个 208.64.28.86 就是实际发送邮件的服务器啦,nmap 扫一遍。。。果然是一个 Open Relay。。

你妹的能不能专业点啊,既然在公网上跑能不能安全一点啊。。。

扫了下这个段都差不多是这个样子,看起来。。。结合 MyServer983 这个 Hostname,应该是某家用 XenSystem 的 Oneman 提供的 VPS 默认模板没做好。。。

嗯。。。恨死你们了。发个邮件给 abuse 部门。。。让你丫不做安全,哼!

'在 Debian 上使用 CloudFUSE + Rsync 同步本地文件到 Rackspace Cloud Files'

发表于 2013-03-22 |

Showfom 这个 MJJ 的昨天说要把自己的图片同步到 Rackspace Cloud Files 去,让我写个小脚本来实现一下。

但是,作为一个 MJJ 的。。。能偷懒的,当然要偷懒!没事儿自己挖什么坑呢真是的,填不平又有强迫症。

不扯淡了,先安装一下依赖:

1
apt-get install -y build-essential fuse-utils libfuse-dev libcurl3-dev libxml2-dev libssl-dev

然后下载 CloudFUSE,编译,安装:

1
2
3
4
5
6
wget http://github.com/redbo/cloudfuse/tarball/master
tar zxf master
cd redbo-cloudfuse-809b07e
./configure
make
make install

编译的时候可能会提示

cloudfsapi.c: In function ‘send_request’:

cloudfsapi.c:140: warning: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument for this option

看了下代码,这里用的是 off_t,不过其实 off_t 就是 long 的马甲啦 [1],所以这段 Warning 不用管,直接继续就好。

接下来在 ~/.cloudfuse 写下配置

1
2
username=[Account username]
api_key=[API key (or password for Keystone API)]

当然你也可以用偷懒的办法不写配置文件直接挂载

1
cloudfuse -o username=aveline,api_key=123123123 /mnt

或者是写在 /etc/fstab 里

1
cloudfuse /mnt fuse username=aveline,api_key=123123123,user 0 0

然后,挂载~同步

1
2
cloudfuse /mnt
rsync -av ~/dropbox /mnt/test/

大功告成咯~

[1] Where to find the complete definition of off_t type? – Stack Overflow

1…9101112

Siyuan Miao

35 日志
42 标签
GitHub Twitter
© 2018 Siyuan Miao
由 Hexo 强力驱动 v3.7.1
|
主题 — NexT.Mist v6.3.0