Skip to content

Instantly share code, notes, and snippets.

View doabell's full-sized avatar
🔰
Beginner

Bell doabell

🔰
Beginner
  • Sol III
  • 01:03 (UTC -04:00)
View GitHub Profile
@doabell
doabell / .bashrc
Created December 9, 2024 20:22
My Slurm aliases
# https://stackoverflow.com/a/69441757
# export SQUEUE_FORMAT="%.8i %.9P %.30j %.8u %.8T %.10M %.10l %.6D %R"
export SQUEUE_FORMAT2="JobID:.4 ,Partition:.10 ,Name:.24 ,UserName:.8 ,State:.8 ,TimeUsed:.10 ,TimeLimit:10 ,NumNodes:.4 ,NumCPUs:.4 ,MinMemory:.7 ,ReasonList"
# https://docs.ycrc.yale.edu/clusters-at-yale/job-scheduling/resource-usage/#sacct
export SACCT_FORMAT="JobID%10,Partition,JobName%20,State,Elapsed,NodeList,ExitCode,AveCPUFreq,MaxRSS%12,AllocTRES%30"
# https://slurm.schedmd.com/sinfo.html
export SINFO_FORMAT="%14P %.5a %.10l %.5D %.5c %.8m %.12G %.5T %N"
@doabell
doabell / dc.py
Created October 9, 2024 01:52
Original DC boundaries
# GPT-4o-mini via duck.ai
import folium
# Create a map centered around the midpoint of the provided coordinates
# Tiles: https://python-visualization.github.io/folium/latest/user_guide/raster_layers/tiles.html
m = folium.Map(
location=[38.895, -77.040],
zoom_start=11,
tiles="Cartodb dark_matter",
@doabell
doabell / ipjokes.md
Last active May 15, 2023 02:49
IP Jokes

TCP joke

  • Hello, would you like to hear a TCP joke?
  • Yes, I'd like to hear a TCP joke.
  • OK, I'll tell you a TCP joke.
  • Okay, I will hear a TCP joke.
  • Are you ready to hear a TCP joke?
  • Yes, I am ready to hear a TCP joke.
  • Okay, I am about to send the TCP joke. It will last 50 seconds, has 634 characters, does not have an explicit setting, and ends with a punchline.
  • Okay, I am ready to get the TCP joke that will last 50 seconds, has 634 characters, does not have an explicit setting, and ends with a punchline.
  • I'm sorry, your connection timed out ... Hello, would you like to hear a TCP joke?