Skip to content

Instantly share code, notes, and snippets.

View Andz200zx's full-sized avatar
⚛️
doing react stuff :)

Andrew Thompson Andz200zx

⚛️
doing react stuff :)
View GitHub Profile
@marco79cgn
marco79cgn / apple-availability-check.sh
Last active September 24, 2023 11:25
Bash script that checks whether an Apple product is available for pickup at your nearest Apple Store and sends a push notification if it gets available again (via ntfy.sh)
#!/bin/bash
partNo=$1
storeId=$2
notifyUrl=https://ntfy.sh/$3
FILE=$4/${partNo/\//-}-$storeId
if [ ! -f "$FILE" ]; then
echo "$FILE does not exist."
echo -n "1" > $FILE
fi
@p0fi
p0fi / homepod-mini-stock-check.js
Last active December 20, 2020 16:54
Check the Availability of HomePod Minis Is an Apple Store of Your Choice
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: magic;
/*
Apple Store-IDs:
Germany
R358 Berlin
R366 Hamburg (Alstertal)