--- tags: people --- <a href="https://hackmd.io/@teoroo-cluster" alt="Teoroo Cluster"> <img src="https://img.shields.io/badge/Teoroo--CMC-All%20Public%20Notes-black?style=flat-square" /></a> # Yunqi's notes Some notes that might be useful, but perhaps not interesting to everyone. ## Useful aliases ```bash alias ls='ls -h' # so that commands like ll prints readible sizes - like G/M/K alias tm='tmux attach || tmux new' # quick access to the (quite handy) tmux terminal multiplier alias q="squeue -u $USER -o '%8i %60j %2t %3C %10L %N'" # better queue info (if your job names make sense) ``` ## Shell Gimmick ```bash! # find the submit, start, and queuing time for recent jobs sacct -o J,submit,start,Reserved -u $USER | grep -E '^[0-9]+\s' ``` Q&A from elsewhere: - Cleaning up symbolic links with `find`: [SO answer](https://stackoverflow.com/a/21438684); - Finding/cleaning files depending on date with `find`: [SF answer](https://serverfault.com/questions/122824/linux-using-find-to-locate-files-older-than-date). ## SSH stuff ### Automatically use the old teoroo machine as a proxy ::: warning This is OUTDATED, not likely that we will have a open ip hosting ssh for this to be possible. ::: ```config # in the ssh config Host TEOROO User yunqi # or your username HostName teoroo.kemi.uu.se ForwardAgent yes Host BROSNAN User yunqi # or your username HostName teoroo2.kemi.uu.se ForwardAgent yes LocalForward 8000 localhost:8000 Host JACKIE User yunqi # or your username HostName 10.1.10.4 ProxyCommand ssh BROSNAN nc %h %p ForwardAgent yes LocalForward 10003 localhost:10003 LocalForward 10005 localhost:10005 Match Host teoroo2.kemi.uu.se !Exec "nc -w1 %h %p < /dev/null" ProxyCommand ssh TEOROO nc %h %p ```