Longing for the world outside the wall

an engineer, focus on Clojure/Python/JavaScript.

Clojure Shell Script

所有jar文件都放到~/.clojure, 使用rlwrap的Tab completions。

My Favorite Clojure Repository

Setup Exim on Debian

我的debian版本:6.0.3,使用系统自带的exim,如果你的系统还没有安装exim,先装这几个包:

1
2
3
4
5
Shell:~ >: aptitude search exim | grep '^i'
i   exim4                           - metapackage to ease Exim MTA (v4) installa
i   exim4-base                      - support files for all Exim MTA (v4) packag
i   exim4-config                    - configuration for the Exim MTA (v4)
i   exim4-daemon-light              - lightweight Exim MTA (v4) daemon

设置你的/etc/hosts, /etc/resolv.conf

1
2
3
4
Shell:~ >: cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4

可以装一下dnsmasq,避开那些讨厌的dns问题

1
2
3
Shell:~ >: aptitude search dnsmasq | grep '^i'
i   dnsmasq                         - A small caching DNS proxy and DHCP/TFTP se
i A dnsmasq-base                    - A small caching DNS proxy and DHCP/TFTP se
开始配置

假设我的域名为:number23.no.de,可以先写在/etc/hosts里,

My Emacs Init File

我的 .emacs 文件,还见得人吧。

All my emacs config files in here

Install Octopress Log

install rvm and setup

1
2
3
4
5
6
7
8
9
10
11
12
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
$ [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
$ rvm install 1.9.2 && rvm use 1.9.2

$ ruby --version  # Should report Ruby 1.9.2

$ git clone git://github.com/imathis/octopress.git number23

$ proxychains gem install bundler
$ proxychains bundle install
$ rake install
$ rake setup_github_pages

new a github repository call: number23.github.com
git URI: git@github.com:number23/number23.github.com.git

rake commonds:

1
2
3
4
rake new_post["post title"]
rake generate   # generate your blog static pages content according to your input.
rake preview    # start a web server on "http://localhost:4000", you can preview your blog content.
rake deploy     # push your static pages content to your github pages repo ("master" branch)

Octopress doc