Skip to content

Instantly share code, notes, and snippets.

View aheadlead's full-sized avatar

Yulan Wei aheadlead

  • NUAA
  • Nanjing, China
View GitHub Profile
@aheadlead
aheadlead / .bash_profile
Created June 6, 2017 10:23
ubuntu.bash_profile
function ssh_tunnel_to_jx {
ssh -C -N -g -L 20569:$1:$2 pi
}
function ssh_tunnel {
ssh -C -N -g -L 23333:$1:$2 $3
}
# 让费时命令执行完推送到 Telegram
# 快速往上 cd ..
# cd .. ; cd .. ; cd .. 等同于 cdj 3
function cdj {
CDJUMP_LAST_PWD=`pwd`
for (( i=0; i<$1; i++ ))
do
cd ..
echo "Jump to `pwd`"
done
}
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Static Site Generator
# aheadlead
# 2014-01-30
import os
import sys
from urllib import quote
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Static Site Generator
# aheadlead
# 2014-01-30
import os
import sys
from urllib import quote