Repo for managing my dotfiles across several environments.
git clone git@github.com:codekansas/dotfiles.git && cd dotfiles && ./install
Here are some of the additional commands in these dotfiles, besides the housekeeping-type improvements.
Profile directory (useful for finding large files):
prof (<dir-name>)
Make directory, then cd
to that directory
mkcd <dir-name>
Download file from Google drive:
gdrive <google-fid> <output-path>
Filter top
for process name regex:
topc <regex>
Edit Conda environment variables:
cvars (rm {r}) (rm-activate {ra}) (rm-deactivate {rd}) (activate {a}) (deactivate {d})
Activate Conda environment (alias for conda activate
, with tab completion):
cenv <env-name>
Create a new temporary script:
tinit <script-name>
Edit a script (with tab completion):
tedit <script-name>
Run a temporary script (with tab completion):
trun <script-name>
Delete a script (with tab completion):
tdelete <script-name>
Show all my current Slurm jobs:
squeueme
Safely cancel all my current Slurm jobs:
scancelme
Track NVIDIA GPU usage:
smi
Create a named tmux
session:
tmuxn <name>
Attach to tmux
as an iTerm2 window (with tab completion for session name):
tmuxc <name>
Add this in your ~/.ssh/config
file to prevent having to re-authenticate when SSH'ing (useful for 2FA):
Include config.d/base
By default, Jupyter notebooks will be served on port 16012. Therefore, it's a good idea to add this port forwarding to your SSH config file:
LocalForward 16012 localhost:16012
Build a file, and if make succeeds, run it (currently NVCC and C / C++). Useful for programming competitions, test scripts, etc.
brun <fname> (runtime-args)