全局及本地的irbrc文件

I really like the way the Git SCM handles global and local configurations. Globally, you have .gitconfig and .gitignore files which define how Git behaves across all projects. Locally, you have .gitignore and .git/config files which are applied specifically to the current directory or project. This approach works very well and this morning I tried applying it to the way Ruby’s IRB works. With IRB,...

November 25, 2014

Linux策略性路由应用及分析iproute2

来源地址 http://www.jlhome99.com/articles/art2/2687.htm 策略性路由 策略性是指对于IP包的路由是以网络管理员根据需要定下的一些策略为主要依据进行路由的。例如我们可以有这样的策略:“所有来直...

October 9, 2014

Ruby备注

切换ruby版本:rvm 2.0.0 –default 字符串中变量替换: #{变量名}我了个大擦" 特殊符号mysql无法识别的问题: MySQL的UTF8字符集不...

September 29, 2014

ObfuscatedSSH在CentOS中的部署

首先安装依赖: yum install zlib-devel openssl-devel pam-devel gcc make 然后手动编译安装: wget -O ofcssh.tar.gz https://github.com/brl/obfuscated-openssh/tarball/master tar xvf ofcssh.tar.gz cd到目录中,并执行./configure --with-pam --prefix=/opt make && make install cp contrib/sshd.pam.generic /etc/pam.d/sshd (64位系统可选操作...

May 4, 2014

libnss-mysql的两个配置文件区分

libnss-mysql有两个配置文件: /etc/libnss-mysql.cfg /etc/libnss-mysql-root.cfg 其官方对这两个文件的用途是有解释的。也许是我的英语阅读能力太差,反正越看解释越搞不清楚。 同时根据...

March 9, 2014

Mac OS X系统中的launchctl命令

Mac OS X系统中的launchctl命令 相关目录 /System/Library/LaunchDaemons : 操作系统,用户登录前生效,以 root 身份执行任务 /System/Library/LaunchAgents : 操作系统,用户登录后生效,以 root 身份执行任务 /Library/LaunchDaemons :...

February 7, 2014