Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
.tmux
 
 
.vim
 
 
 
 
 
 
 
 
ulogme
 
 
xmail
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
num
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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.conf

Installing oh-my-zsh Offline

    1. 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

Open the zip file and extract to your home folder, and rename to .oh-my-zsh oh-my-zsh-master -> ~/.oh-my-zsh

    1. Save the file install-oh-my-zsh.sh to your home folder, like ~/install-oh-my-zsh.sh
    1. Give permission to execute
chmod +x install-oh-my-zsh.sh

# Run the script
./install-oh-my-zsh.sh
TODO
  • xbash not work, bug should be fired;
  • .vim folder should be committed to here;
  • Go through
  • a good google hosts Penlight documentation

Acknowledgement

This tools are frequently used in our daily life, lots of my time are saved by using these tiny commands.

Ha

About

Xbash is a crowd of alias and tiny command line tools.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.