Skip to content

Instantly share code, notes, and snippets.

View ayn's full-sized avatar
🍉
wfh

Andrew Ng ayn

🍉
wfh
View GitHub Profile
@ayn
ayn / israel boycott list.md
Created September 13, 2025 02:26
Israel Boycott List 🇵🇸🍉

Boycott List

1. BDS Priority & Endorsed Targets

Companies explicitly highlighted by the official BDS Movement as current campaign priorities, or widely endorsed grassroots targets.

  • AXA (insurance, linked to Israeli banks/arms; under pressure until divestment is verified)
  • HP (Hewlett Packard Inc / HPE) (provides digital infrastructure for Israeli government and military)
  • Siemens (EuroAsia Interconnector project)
  • Microsoft / Xbox (cloud & gaming partnerships with Israeli forces)
  • Airbnb (tourism in settlements)
@ayn
ayn / micra_lunar_ha_automation.yaml
Last active August 26, 2025 04:24
brew by weight automation (micra x lunar x homeasistant)
alias: Brew by Weight (Flow + Offset, v3)
description: Stop pump using (target - offset) OR flow*seconds prediction, with seconds failsafe + retry.
mode: single
triggers:
- trigger: numeric_state
entity_id: sensor.lunar_weight
above: 5
variables:
@ayn
ayn / .ruby-version
Last active July 12, 2024 06:10
update dnsmadeeasy dualstack IPs
ruby-3.3.4
@ayn
ayn / df.sh
Last active March 5, 2024 00:04 — forked from chockenberry/df.sh
df Replacement
#!/bin/sh
if [ ! -z "$*" ]; then
echo "this is ~/bin/df, use /bin/df"
exit 1
fi
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
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, https://www.strava.com/activities/801750547
Windy stroller jog: 6.0 miles, https://www.strava.com/activities/803998550
Jog to Dolores Park w/ Miles in stroller: 1.7 miles, https://www.strava.com/activities/805911416
Stroller jog: 8.0 miles, https://www.strava.com/activities/807410276
6 miles with Miles (stroller): 6.0 miles, https://www.strava.com/activities/808947004
Stroller jog: 8.0 miles, https://www.strava.com/activities/815224565
Stroller run in the sun: 6.1 miles, https://www.strava.com/activities/822501706
Stroller run: 8.0 miles, https://www.strava.com/activities/823428636
@ayn
ayn / MY accessories.md
Last active March 2, 2024 03:23
Tesla Model Y accessories (✅ = copped)

ACNH Fossils

Extras

  • Acanthostega
  • Amber
  • Ankylo skull x 2
  • Ankylo torso x 2
  • Anomalocaris
  • Archelon skull
  • Australopith x 2
  • Brachio tail
@ayn
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 = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
jQuery.noConflict();
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
ayn / BLM + Anti-Racist Parenting.md
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 :( )