Table of Contents
Smart Tips
grab comics from Internet by wget
#!/bin/sh for j in `seq -w 410 412` do for i in `seq 20` do wget http://117.40.196.2:8081//d/manhua/naruto/$j/$i.jpg -O $j-$i.jpg done done
using lftp to synchronize folders with a FTP account
Creat a script called download.x
open -u user,password -p [port] [server] mirror -c -n /remote_directory /local_directory exit
or an upload.x
open -u user,password -p [port] [server] mirror -c -n -R /local_directory /remote_directory exit
$ lftp -f upload.x ##or download.x
using sdcv in Emacs
sdcv is the console version of StarDict program. You could install it simply by "apt-get". Thanks to pluskid. I copy the code from his notes.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;stardict ;; author: pluskid ;; 调用 stardict 的命令行接口来查辞典 :: Using sdcv to consult dictionary. ;; 如果选中了 region 就查询 region 的内容, :: if you have marked region, it will consult the region. ;; 否则就查询当前光标所在的词 :: else it will consult the word before your cursor. (global-set-key (kbd "C-c d") 'kid-star-dict) (defun kid-star-dict () (interactive) (let ((begin (point-min)) (end (point-max))) (if mark-active (setq begin (region-beginning) end (region-end)) (save-excursion (backward-word) (mark-word) (setq begin (region-beginning) end (region-end)))) ;; 有时候 stardict 会很慢,所以在回显区显示一点东西 ;; 以免觉得 Emacs 在干什么其他奇怪的事情. (message "searching for %s ..." (buffer-substring begin end)) (tooltip-show (shell-command-to-string (concat "sdcv -n " (buffer-substring begin end))))))
join pdf files
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf
Date: 2010-08-31 22:23:44 CST
HTML generated by org-mode 6.33x in emacs 23