Skip to content

Instantly share code, notes, and snippets.

View wxianfeng's full-sized avatar
🎯
Focusing

xianfeng wang wxianfeng

🎯
Focusing
View GitHub Profile
@wxianfeng
wxianfeng / ssh_proxy.sh
Created July 11, 2011 07:05
ssh proxy , open a ip with port 7070
#!/bin/sh
ssh -Nf -D 192.168.10.107:7070 root@wxianfeng.com
@wxianfeng
wxianfeng / utf8.sh
Created July 11, 2011 06:27
给ruby文件添加#coding:utf-8 如果不存在
#!/bin/bash
PATH=/usr/local/system/projects/guoyi
FIND_BIN=/usr/bin/find
SED_BIN=/bin/sed
CAT_BIN=/bin/cat
LOG=/tmp/foreach.log
$CAT_BIN /dev/null > $LOG
cd $PATH