Skip to content

Instantly share code, notes, and snippets.

@madmaximux
madmaximux / apple-store-availability-poll.js
Created September 25, 2021 20:00 — forked from robmaceachern/apple-store-availability-poll.js
Polling the Apple Canada availability for the new iPhone and getting alerted via email
// Set the desiredStoreIds, desiredPhoneModels, and alertEmail below.
// Go to https://reserve.cdn-apple.com/CA/en_CA/reserve/iPhone/availability
// Open browser console
// Copy and paste everything in this file in to the console terminal and push Enter
// Get alerted via email when the device you want is available to reserve!
var desiredStoreIds = ['R280', 'R362', 'R460'];
var desiredPhoneModels = ['MG3H2CL/A', 'MG3E2CL/A', 'MG3K2CL/A', 'MG3F2CL/A'];
var alertEmail = '[email protected]';
@madmaximux
madmaximux / iphone6_coventgarden.py
Created September 25, 2021 19:59 — forked from sjwhitworth/iphone6_coventgarden.py
iPhone 6 Stock Checker
import requests
import datetime
import time
url = "https://reserve.cdn-apple.com/GB/en_GB/reserve/iPhone/availability.json"
interested_stores = ['R245']
# Exclude iPhone 6
excluded = ['MGA92B/A', 'MGA92B/A', 'MGAJ2B/A', 'MGAE2B/A', 'MGAA2B/A',
'MGAK2B/A', 'MGAF2B/A', 'MGA82B/A', 'MGAH2B/A', 'MGAC2B/A']
@madmaximux
madmaximux / again.txt
Last active March 20, 2025 19:11
Anki Hands-Free with MacOS Voice Commands
on run {input, parameters}
activate application "Anki"
tell application "System Events"
keystroke 1
end tell
return input
end run