xbash
Introduction
Xbash is a crowd of alias and tiny command line tools.
Installation
$ cd
$ git clone https://github.com/barrykui/.xbash
$ vi ~/.bashrc
add ~/.xbash to the environment PATH:
export XBASH=$HOME/xbash
source $XBASH/.bashrc
export PATH=$PATH:$XBASH
then source your local ~/.bashrc file,
$ source ~/.bashrc
If it still dosen't work, use command:
$ xbash
For .vimrc file, just link the file:
$ ln -s ~/xbash/.vimrc ~/.vimrc
For .tmux.conf file, just link the file:
$ cd ~/xbash/
$ git clone https://github.com/barrykui/.tmux.git
$ ln -s ~/xbash/.tmux/.tmux.conf ~/.tmux.conf
Fix https certs
curl https://get.acme.sh | sh
sudo ./.acme.sh/acme.sh --issue --force -d example.com -w /path/to/webdir
Tools
| Tool | Description |
|---|---|
| pxg python | show the running python threads |
| hg python | grep history |
| o ls | loop excute your command |
| ncol test.txt | count the column(tab sep) |
| countfas test.fa | count the length of fasta |
| sedxkn | print specific line(s) |
| pdbpath 3jb1 | print the full path of a PDB file |
| ert a.tar.gz | extraction king |
| xmail -u xx@x.com -s “bowtie finished” | email in command line |
| xgpu | print the free gpu id |
| xmonitor | GPU monitor |
| xgit | self git |
| xparallel.sh | A tiny parallel framework |
| thuin name passwd | login to Tsinghua Campus Net |
| thuout | logout from Tsinghua Campus Net |
CUDNN
./xcudnn ~/usr/cuda /usr/local/cuda-8.0/Parallel Soulution
Tsinghua Tuna Mirror
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes$ mkdir ~/.pip; echo -e "[global]\nindex-url = https://pypi.tuna.tsinghua.edu.cn/simple" > ~/.pip/pip.confInstalling oh-my-zsh Offline
-
- Before start, install git and zsh
# for installing on Ubuntu
sudo apt-get install zsh
# for installing from source
http://zsh.sourceforge.net/Arc/source.html
-
- Go to the repository and download the zip file https://github.com/robbyrussell/oh-my-zsh
Open the zip file and extract to your home folder, and rename to .oh-my-zsh oh-my-zsh-master -> ~/.oh-my-zsh
-
- Save the file install-oh-my-zsh.sh to your home folder, like ~/install-oh-my-zsh.sh
-
- Give permission to execute
chmod +x install-oh-my-zsh.sh
# Run the script
./install-oh-my-zsh.sh
- copy&paste from hewerthomn
TODO
- xbash not work, bug should be fired;
- .vim folder should be committed to here;
- Go through
- a good google hosts
Penlightdocumentation
Acknowledgement
This tools are frequently used in our daily life, lots of my time are saved by using these tiny commands.