This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 快速往上 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Static Site Generator | |
# aheadlead | |
# 2014-01-30 | |
import os | |
import sys | |
from urllib import quote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Static Site Generator | |
# aheadlead | |
# 2014-01-30 | |
import os | |
import sys | |
from urllib import quote |