Skip to content

Instantly share code, notes, and snippets.

@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.

@nosarthur
nosarthur / aliases
Last active October 18, 2024 15:32
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 / todo-mac.txt
Last active November 14, 2024 13:05
TODO for new mac
## softwares
https://www.google.com/chrome/browser-tools/
https://iterm2.com/downloads.html
https://brew.sh/
https://www.alfredapp.com/help/v4/
https://www.dropbox.com/install
https://macmousefix.com/
https://www.mowglii.com/itsycal/
https://karabiner-elements.pqrs.org/
https://www.loom.com/download