View vaccine-finder.js
/* | |
* This script will automatically play a sound and trigger an alert when it finds available appointments | |
* on the New York State vaccine finder website. https://am-i-eligible.covid19vaccine.health.ny.gov/Public/providers | |
* It can be run by pasting it into the Chrome console at the above URL. | |
* | |
* NOTE: You must meet certain eligibility criteria to qualify for a vaccine. | |
*/ | |
// Map of all providers - use to populate `providersToCheck` field. | |
const Providers = { |
View google.js
// I ran this with: | |
// while true; do node ~/Desktop/google.js --max_old_space_size=4096 --optimize_for_size --max_executable_size=4096 --stack_size=4096 && break; done | |
// This will run the script with 4GB allocated memory, and auto-restart if it crashes (happens sometimes due to out of memory). | |
const https = require('https'); | |
const fs = require('fs'); | |
// File storage between runs. | |
const validStorage = '/Users/ruben/Desktop/validURLs.txt'; | |
const attemptsStorage = '/Users/ruben/Desktop/attempts.txt'; |
View .bash_rc
#Begin GoogleSearch CLI for Mac | |
function google() { | |
if [ $1 = "--images" ]; then | |
open https://google.com/search?tbm=isch\&q="$2" | |
elif [ $1 = "--news" ]; then | |
open https://google.com/search?tbm=nws\&q="$2" | |
else | |
open https://google.com/search?q="$1" | |
fi | |
} |
View console.log in Swift
class console { | |
class func log(arg : Any) { | |
print(arg) | |
} | |
} | |
console.log("Hello World!") |