Mercurial > index.cgi > dotfiles
comparison .bash_aliases @ 164:18429055e586
Removing some no-longer-used aliases and such
| author | Steve Huston <huston@astro.princeton.edu> |
|---|---|
| date | Mon, 13 Aug 2018 14:51:20 -0400 |
| parents | fd42244e9413 |
| children | ab0fb2057b88 |
comparison
equal
deleted
inserted
replaced
| 163:9f3a343f32c0 | 164:18429055e586 |
|---|---|
| 51 export DFSTAT MDATE TDSTAT HDATE | 51 export DFSTAT MDATE TDSTAT HDATE |
| 52 | 52 |
| 53 # SSH aliases | 53 # SSH aliases |
| 54 alias bh='ssh csesbh.princeton.edu' | 54 alias bh='ssh csesbh.princeton.edu' |
| 55 alias dh='ssh srhuston.net' | 55 alias dh='ssh srhuston.net' |
| 56 alias hostkeys='scp root@xanadu-vm:/etc/ssh/ssh_known_hosts . && vim -d /etc/ssh_known_hosts ssh_known_hosts && sudo mv ssh_known_hosts /etc/ssh_known_hosts' | |
| 57 alias j='ssh joshua.srhuston.net' | 56 alias j='ssh joshua.srhuston.net' |
| 58 alias keys='ssh-add $HOME/.ssh/*.pvt' | 57 alias keys='ssh-add $HOME/.ssh/*.pvt' |
| 59 alias r='ssh -l root' | 58 alias r='ssh -l root' |
| 60 alias rbh='ssh -t csesbh.princeton.edu screen -raAx csesbh' | 59 alias rbh='ssh -t csesbh.princeton.edu screen -raAx csesbh' |
| 61 alias rj='ssh -t joshua.srhuston.net screen -raAx' | 60 alias rj='ssh -t joshua.srhuston.net screen -raAx' |
| 69 fi | 68 fi |
| 70 ssh -t $T_HOST "ssh $1" | 69 ssh -t $T_HOST "ssh $1" |
| 71 } | 70 } |
| 72 alias x='ssh xanadu.astro.princeton.edu' | 71 alias x='ssh xanadu.astro.princeton.edu' |
| 73 | 72 |
| 74 export CLUSTERLIST="adroit della hecate mcmillan orbital tiger tigressdata tukey" | |
| 75 cdsh() { | |
| 76 for H in $CLUSTERLIST ; do | |
| 77 echo $H": " | |
| 78 ssh $H $@ | |
| 79 done | |
| 80 } | |
| 81 | |
| 82 # Remote desktop/VNC | 73 # Remote desktop/VNC |
| 83 eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9930 &'" | 74 eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9930 &'" |
| 84 eval "alias xvnc='ssh -L9910:localhost:5901 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9910 &'" | |
| 85 eval "alias xanadu='ssh -L9920:localhost:5900 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9920 &'" | |
| 86 # Xanadu VMs | 75 # Xanadu VMs |
| 87 eval "alias xvm='ssh -L9909:localhost:5909 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9909 &'" | 76 eval "alias xvm='ssh -L9909:localhost:5909 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9909 &'" |
| 88 eval "alias cygnus='ssh -L9910:localhost:5910 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9910 &'" | 77 eval "alias cygnus='ssh -L9910:localhost:5910 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9910 &'" |
| 89 eval "alias syrinx='ssh -L9911:localhost:5911 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9911 &'" | 78 eval "alias syrinx='ssh -L9911:localhost:5911 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9911 &'" |
| 90 eval "alias lyra='ssh -L9912:localhost:5912 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9912 &'" | 79 eval "alias lyra='ssh -L9912:localhost:5912 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9912 &'" |
| 91 alias start-vnc='vncserver -geometry 1600x1178 -depth 24 -nohttpd' | |
| 92 | 80 |
| 93 # Programs | 81 # Programs |
| 94 alias atari='atari800 -height 800 -width 600' | 82 alias atari='atari800 -height 800 -width 600' |
| 95 alias base64='openssl enc -a' | 83 alias base64='openssl enc -a' |
| 96 alias bsr='bigscreen -raAx' | |
| 97 alias irssi-test='irssi --home=$HOME/irssi-test/' | 84 alias irssi-test='irssi --home=$HOME/irssi-test/' |
| 98 alias jt65='wine /Users/huston/.wine/drive_c/Program\ Files/jt65hf109/jt65-hf.exe' | |
| 99 alias pine='alpine' | 85 alias pine='alpine' |
| 100 alias ret='screen -raAx' | 86 alias ret='screen -raAx' |
| 101 alias rot13="tr 'a-zA-Z' 'n-za-mN-ZA-M'" | 87 alias rot13="tr 'a-zA-Z' 'n-za-mN-ZA-M'" |
| 102 alias stendhal="java -jar $HOME/Installs/stendhal/stendhal-*.jar" | |
| 103 alias tops='unset STY; screen -c .screenrc.pbstops -S pbstop' | 88 alias tops='unset STY; screen -c .screenrc.pbstops -S pbstop' |
| 104 tt () { | 89 tt () { |
| 105 OPTS="-G" | 90 OPTS="-G" |
| 106 if [ -e ${HOME}/.tt/${1}.tin ] ; then | 91 if [ -e ${HOME}/.tt/${1}.tin ] ; then |
| 107 OPTS="${OPTS} ${HOME}/.tt/${1}.tin" | 92 OPTS="${OPTS} ${HOME}/.tt/${1}.tin" |
| 153 ldapsearch -LLL -h $H.astro.princeton.edu -x -s base '(objectclass=*)' contextCSN | egrep -v '^($|dn)' | sed 's/contextCSN: //' | 138 ldapsearch -LLL -h $H.astro.princeton.edu -x -s base '(objectclass=*)' contextCSN | egrep -v '^($|dn)' | sed 's/contextCSN: //' |
| 154 done | 139 done |
| 155 echo -ne "now:\t" | 140 echo -ne "now:\t" |
| 156 date -u +%Y%m%d%H%M%S | 141 date -u +%Y%m%d%H%M%S |
| 157 } | 142 } |
| 158 | |
| 159 # Some hibernation tricks on the Mac | |
| 160 alias hibernate="sudo pmset -a hibernatemode 25 ; pmset -g live | grep hibernatemode" | |
| 161 alias onlysleep="sudo pmset -a hibernatemode 0 ; pmset -g live | grep hibernatemode" | |
| 162 alias safesleep="sudo pmset -a hibernatemode 3 ; pmset -g live | grep hibernatemode" | |
| 163 alias sleepmode="pmset -g live | grep hibernatemode" | |
| 164 | 143 |
| 165 # Other | 144 # Other |
| 166 alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog" | 145 alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog" |
| 167 alias slurp="wget -r -l1 -np -nd -A.mp3" | 146 alias slurp="wget -r -l1 -np -nd -A.mp3" |
| 168 alias zulu="date -u +%Y%m%d%H%M%SZ" | 147 alias zulu="date -u +%Y%m%d%H%M%SZ" |
