How to use Pelican on GitHub Pages 
Author: Josef Jezek
sudo apt-get install python-setuptools
| #!/bin/sh | |
| # Restore Google Chrome on Linux (Ubuntu), when it | |
| # starts with "Could not restore your profile" | |
| # $ ./google-chrome-restore.sh | |
| rm -rf ~/.config/google-chrome/Backup | |
| mv ~/.config/google-chrome/Default ~/.config/google-chrome/Backup | |
| rm -rf ~/.config/google-chrome/Default | |
| cp -R ~/.config/google-chrome/Backup ~/.config/google-chrome/Default | |
| rm -rf ~/.config/google-chrome/Backup | 
| perl -MEncode -pi -e '$_=encode_utf8(decode(gb2312=>$_))' FILE_NAME | 
| #!/bin/sh | |
| REPOSRC=$1 | |
| LOCALREPO=$2 | |
| # We do it this way so that we can abstract if from just git later on | |
| LOCALREPO_VC_DIR=$LOCALREPO/.git | |
| if [ ! -d $LOCALREPO_VC_DIR ] | |
| then | 

Author: Josef Jezek
sudo apt-get install python-setuptools
| red=$(tput setaf 1) | |
| green=$(tput setaf 2) | |
| yellow=$(tput setaf 3) | |
| bold=$(tput bold) | |
| dim=$(tput dim) | |
| off=$(tput sgr0) | |
| thumb () { | |
| case $1 in | |
| 0) printf "\xF0\x9F\x91\x8d" ;; | |
| *) printf "\xF0\x9F\x91\x8e $red($1)$off" ;; | 
| # Place this file inside your ~/.idlerc/ folder | |
| # or paste its contents inside | |
| # /path/to/python/idlelib/config-highlight.def | |
| # Adapted from SublimeText's Monokai | |
| [monokai] | |
| normal-foreground= #F8F8F2 | |
| normal-background= #272822 | |
| keyword-foreground= #F92672 | |
| keyword-background= #272822 | 
| !/bin/bash | |
| REPO=`which repo` | |
| if test "x$REPO" = "x"; then | |
| mkdir -pv $HOME/bin | |
| # get the repo script | |
| curl https://storage.googleapis.com/git-repo-downloads/repo > $HOME/bin/repo | |
| chmod a+x $HOME/bin/repo | 
| #!/system/bin/sh | |
| #=============================================================================== | |
| # | |
| # FILE: logcat_all.sh | |
| # | |
| # USAGE: ./logcat_all.sh | |
| # | |
| # DESCRIPTION: DEBUG版时,打印所有日志(包括时间)到指定文件,方便后期排查问题 | |
| # | |
| # OPTIONS: --- |