Skip to content

Instantly share code, notes, and snippets.

@nosarthur
nosarthur / todo-mac.txt
Created November 17, 2023 13:29
TODO for new mac
- chrome
- colemak DHk matrix
- iterm 2
- homebrew
- switch to bash (and upgrade with homebrew)
@nosarthur
nosarthur / aliases
Last active March 14, 2024 01:04
slurm related
## query my jobs
```
alias fsa='sshare -A users -a |rg -v 0.000000 |sort -k7nr | grep -E "dzhou|santra|lwang|bier|cwu|jacobson|$"'
alias pi='srun --partition=compute-16core-64gb-preemptible --job-name=interactive --nodes=1 --ntasks-per-node=1 --pty bash'
alias q='squeue -u $USER | tee >(tail -n +2 |lc)'
#alias qq='squeue -p gpu-t4-4x-ondemand -t pd |tee >(tail -n +2 |lc)'
alias qqq='squeue -p gpu-t4-4x-ondemand-high-pri -t pd |tee >(tail -n +2 |lc)'
alias qd='scancel `q | tail -n +2| fzf | ff 1`'
alias qa='sacct --format=User,JobID,Jobname,partition,state,time,start,end,elapsed,WorkDir,MaxRss,MaxVMSize,nnodes,ncpus,nodelist -j'
@nosarthur
nosarthur / google-storage-api.md
Last active April 24, 2019 21:51
google storage api

To use api, one needs to enable the credential

export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/[FILE_NAME].json"

gsutil

The speed differs a lot with parallel upload. Unfortunately this option is only available in gsutil but not the apis.