jquery: bind key events

as subject.

Read more

linux tips

  • 查看硬件信息:sudo lshw  #ls hardware
  • 查看CPU位数32/64:getconf LONG_BIT #longest integer bit.
  • 快速建立文件服务器并显示自已的IP:ifconfig |grep  -oP "(?<=inet addr:)[0-9.]+" |grep -v 127.0.0.1 | sed "s/\$/:8000/"  && python -m SimpleHTTPServer
  • resize image: convert source -resize '100x200' dest
     

run python function as daemon

simply wrap it with threading.

Read more

common key words from emails

分词,集合,交集。reduce((lambda x,y:list(set(x)&set(y))),(a,b,c))

Read more

gmail create/delete mail box in batch

thank twisted.

Read more

Bash Notes

2010-08-26

Read more

python snippets

as subject.

Read more

convert .py & .py.html to email format

as subject.

Read more

convert source file to highlighted html

 vim -c 'set nu! | colorscheme delek | runtime! syntax/2html.vim | wq | q' SOURCE

Read more

search gmail box

 FPNP p265.

Read more