Linux 文件备份
Linux 文件备份 tar czvf /home/wangxiaohu/bak.tar.gz –exclude="/lost+found/" –exclude=".svn" –exclude="/var/*" /
Linux 文件备份 tar czvf /home/wangxiaohu/bak.tar.gz –exclude="/lost+found/" –exclude=".svn" –exclude="/var/*" /
这是最好的时代,这是最坏的时代,这是智慧的时代,这是愚蠢的时代;这是信仰的时期,这是怀疑的时期;这是光明的季节,这是黑暗的季节;这是希望之春,这是失望之冬;人们面前有着各样事物,人们面前一无所有;人们正在直登天堂;人们正在直下地狱. 狄更斯 <双城记> ...
继续感冒中…… 实在睡不着了,把我的这个脚本移到webfaction,放到crontab里了。 设置PYTHONPATH和PATH环境变量 [notsobad@web108 ~]$ cat .bashrc # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions export PYTHONPATH=$PYTHONPATH:$HOME/script/python-lib export PATH=$PATH:$HOME/script/bin 然后就可以使用easy_install了,我要安装feedparser: easy_install --install-dir=$HOME/script/python-lib --script-dir=$HOME/script/bin feedparser crontab的使用: crontab -e 直接编辑即可,注意crontab使用的环境变量和登录用户使用的是不一样的,要使用自定义的pythonpath的话,需要自己指定 ...
上次浪点的空间退出,导致自己没有地方用,终于买了国外的空间。102$/y http://webfaction.com 初步尝试,ssh速度有些慢,权限控制研究了一会才搞懂,导入备份数据也是折腾了好久。 终于搞定了! 以后会做的: http://blog.notsobad.cn 自己的blog http://code.notsobad.cn 运行的django+mod_python, 会放一些自己实验性的东西 http://www.notsobad.cn 这个还没想好放什么
GreaseMonkey脚本里想使用jquery库该怎么办呢? 参考这几篇文章 http://joanpiedra.com/jquery/greasemonkey/ http://abeautifulsite.net/notebook/90 http://greasemonkey.mozdev.org/authoring.html 两种方案: 脚本加载后在html的head里插入一个链接到外部jquery的script标签 利用greasemonkey的require标签 但是如果只是利用新建用户脚本,require一直没有生效,无法载入外部脚本,参考这个: ...
这唱的是哪一出? $ nslookup fanfou.com Server: 124.207.162.136 Address: 124.207.162.136#53 Non-authoritative answer: Name: fanfou.com Address: 127.0.0.1
很好听啊 let’s face the music and dance There may be trouble ahead But while there’s moonlight and music And love and romance Let’s face the music and dance Berlin Irving Before the fiddlers have fled Before they ask us to pay the bill And while we still Have the chance Let’s face the music and dance We’ll be without the moon Humming a diff’rent tune And then There may be teardrops to shed So while there’s moonlight and music And love and romance Let’s face the music and dance Dance Let’s face the music and dance
我需要对一些字体文件做些处理,字体名里面有些特殊字符,如空格,写了下面的脚本, 然后调用 “sh fonts.sh“, 却总是出问题,研究了好久,才发现是sh和bash的区别,这段代码用bash调用就没问题 #chmod +x fonts.sh #./fonts.sh #bash ./fonts.sh sh 和bash的区别 543 ~/www/fonts>cat fonts.sh #! /bin/bash IFS=$(echo -en “\n\b”) for i in $(find . -name \*.[Tt][Tt][Ff]); do echo “$i” done unset IFS ...
几篇很不错的关于字体的文章: 从 Illustrator 到 FontLab 打造你自己的字体(I) 打造你自己的字体(II) 打造你自己的字体(III)实例研究:Joules 还有个小组 http://www.yeeyan.com/groups/show/TYPO 译言是个好网站,比其他的网站更有意义 比如 什么是股票和股票市场及运作原理
如何对一系列dom元素绑定事件? 那些元素在后续操作中还有可能会增加。 prototype.js中可以使用Event.Observe, jQuery中怎么做呢? 参考如下: 使用jquery中的事件检测而不事先绑定。 http://www.beyondstandards.com/archives/jquery-ajax-and-event-handlers/ http://docs.jquery.com/Events/live <http://www.sitepoint.com/blogs/2008/07/23/javascript-event-delegation-is- easier-than-you-think/> function aClick() { $("div").show().fadeOut("slow"); } $("#bind").click(function () { $("#theone").live("click", aClick) .text("Can Click!"); }); $("#unbind").click(function () { $("#theone").die("click", aClick) .text("Does nothing..."); });