Archive for 05月, 2008

更新代理脚本的地址 星期五, 05月 30th, 2008


~/应用/脚本 ☎ cat fetch_proxy.bash
#!/bin/bash

mask="[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}:[0-9]\{2,4\}"
wget http://www.proxycn.com/html_proxy/30fastproxy-1.html
ip=`cat 30fastproxy-1.html |grep '>1'|grep -o $mask`
echo "最新的代理地址:$ip"
sed "s/$mask/$ip/" -i ~/.exp-proxy-0.pac

expect交互式例子 星期一, 05月 26th, 2008

一直没使用,头天看到可能需要。

#!/usr/local/bin/expect
set f [open ur_ip_passwd_file r]
set timeout 150
while {[gets $f line] >= 0} {
spawn ssh [lindex $line 0]
expect "user: "
sleep .1
send "root\r"
expect "assword: "
send "[lindex $line 0]\r"
expect -re {[$#] }
send "shutdown\r"
expect eof
close
}
close $f

madwifi-tools broken at 2.6.24-17-generic 星期四, 05月 22nd, 2008

eeepc的,回 2.6.22-14-generic 吧。
偏门的硬件。

可能是最强的aptitude语法了。 星期四, 05月 22nd, 2008

☎ ap ~ilinux-image-.*\(\!`uname -r`\)

☎ type ap
ap 已被别名为“sudo aptitude purge”

grid wars 星期三, 05月 21st, 2008

今天闲。开了gridwar 13w5
一次似乎有5条命了,结果2条刚出来就碰上那种地雷一样出现的烂东西。
惊现4条大网蛇。神奇啊。
bonus2.wav 作一阵子 shell 事件的声音试试。

昨天import了svn 星期二, 05月 20th, 2008

http://code.google.com/p/easy-account/

查找opera下载的flash视频 星期一, 05月 19th, 2008

优酷的,又改了后缀,这样找。
☎ find /home/exp/.opera/cache4/ -cmin -15 -exec file {} \; |grep “Flash Video”

肃穆的桌面 星期一, 05月 19th, 2008

为了地震

。。

2008-05-17 星期六, 05月 17th, 2008

all.png

回goffice了 星期六, 05月 17th, 2008

头天,安装oowriter,结果scim不write。nnnnd
今天,发现abiword没删除,试试,飞快,反正开odt可以,有点图片插入的格式不对。基本我只需要产生pdf,所以,索性把gnumeric也安装了回来,开一个老文档,那个快啊。
干脆就这样吧。