Skip to content

Instantly share code, notes, and snippets.

View alanhussey's full-sized avatar
🐎
everything happens so much

Alan Hussey alanhussey

🐎
everything happens so much
View GitHub Profile
@alanhussey
alanhussey / jersey-mikes.js
Last active December 20, 2020 05:47
Jersey Mikes
#!/usr/bin/env node
// generate Jersey Mikes
const uniq = (arr) => [...new Set(arr)];
const sample = (arr) => arr[Math.floor(Math.random() * arr.length)];
const names = uniq([
...["Jim", "Jimmy"],
@alanhussey
alanhussey / Setup.md
Last active April 25, 2018 21:51
How I run golden-hour

Here's my crontab. 0 22 * * * happens to be 3pm local time for goldenhourSEA, which is early enough that the earliest sunset of the year will be ~1 hour after start.

I redirect stdout and stderr to error.log, but I haven't really needed to check that recently, so I don't know how useful that actually is.

$ crontab -l | grep golden-hour
0 22 * * *   cd /home/pi/Projects/golden-hour; bash ./run.sh >> error.log 2>&1