- download and install
pyenvvia github
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
- add the following to
~/.bash_profile
| Host github.com | |
| User [email protected] | |
| Port 22 | |
| Hostname github.com | |
| IdentityFile ~/.ssh/github | |
| IdentitiesOnly yes | |
| Host * | |
| ControlMaster auto | |
| ControlPath ~/.ssh/mux-%r@%h:%p |
This script works as a wrapper for sbatch command.
Usage:
sherlock-one-liner python --version
| #!/bin/bash | |
| # parse args | |
| if [ $# -lt 2 ] ; then | |
| echo "usage: $0 <target-server> <login-server> [local port (default: 18888)] [target port (default: 8888)] [login port (default: rand)]" >&2 | |
| exit 1 | |
| fi | |
| target=$1 |