Skip to content

Instantly share code, notes, and snippets.

View ayn's full-sized avatar

Andrew Ng ayn

View GitHub Profile
ayn /
Last active March 5, 2024 00:04 — forked from chockenberry/
df Replacement
if [ ! -z "$*" ]; then
echo "this is ~/bin/df, use /bin/df"
exit 1
protect=`mount | grep -v "read-only" | grep "protect" | cut -f 3 -w`
nosuid=`mount | grep -v "read-only" | grep "nosuid" | sed -n 's/.*\(\/Volumes\/.*\) (.*/\1/p' | sed 's/[[:space:]]*$//' | sed 's/.*/"&"/'`
ayn / gist:b0718025f76f713b906955133380fc32
Created September 6, 2023 16:46
stroller runs total
[ayn@aynStudio strava ]$ be ./stroller-total.rb
Stroller Test Run: 5.2 miles,
Windy stroller jog: 6.0 miles,
Jog to Dolores Park w/ Miles in stroller: 1.7 miles,
Stroller jog: 8.0 miles,
6 miles with Miles (stroller): 6.0 miles,
Stroller jog: 8.0 miles,
Stroller run in the sun: 6.1 miles,
Stroller run: 8.0 miles,
ayn / MY
Last active March 2, 2024 03:23
Tesla Model Y accessories (✅ = copped)

ACNH Fossils


  • Acanthostega
  • Amber
  • Ankylo skull x 2
  • Ankylo torso x 2
  • Anomalocaris
  • Archelon skull
  • Australopith x 2
  • Brachio tail
ayn / turnip exchange.js
Created July 2, 2020 03:28
sort turnip by prices desc on turnip exchange lol
var jq = document.createElement('script');
jq.src = "";
// ... give time for script to load, then type (or see below for non wait option)
function sortUsingNestedText(parent, childSelector, keySelector) {
var items = parent.children(childSelector).sort(function(a, b) {
var vA = parseInt(jQuery(keySelector, a).text().substring(0, " Bells".length - 1))
ayn / BLM + Anti-Racist
Last active October 28, 2022 17:47
#BLM parenting info from Tinker

BLM Instagram + Education Links for Kids

  • Teaching kids why responding, "All Lives Matter" is not OK:

"Saying "All Lives Matter" is like screaming, "I have a birthday too!" at someone else's birthday party. Everyone has a birthday, and they are all special, but today we are celebrating ______'s birthday"

Books and Book Lists

(Quick note to parents: be careful when choosing books for your diverse book library. Sometimes a book may have good intentions but still uphold racist values. For example, I came across a book where it was trying to teach equity for all, however all the illustrations only showed white people solving problems for people of color and Black people (I forgot the name of the book :( ) Oakland Bail fund that is directly freeing black people today. Cost to bail someone on average is $8000. If you want to contribute more than $1000, hit me up and i'll get you wire instructions. Timing is critical. More than 50 black youths are headed to Santa Rita jail which has confirmed cases of coronavirus.
George Floyd Memorial Fund • Website: • About: This fund is established to cover funeral and burial expenses, mental and grief counseling, lodging and travel for all court proceedings, and to assist the Floyd family in the days to come as they continue to seek justice for George. A portion of the funds will also go to the Estate of George Floyd for the benefit and care of his children and their educational fund.
I Run With Maud • Website: • About: This fundraiser was desig
ayn / Radarr.out
Last active December 4, 2019 18:31
indexers stats|127
ayn /
Created January 22, 2019 23:59
VDOT 1500 Mile 3k 2mi 5k 10k 15k HM M VDOT
55 4:57 5:21 10:37 11:28 18:22 38:06 58:33 1:24:18 2:56:01 55