Skip to content

Instantly share code, notes, and snippets.

@wadetb
wadetb / dw.py
Last active May 21, 2017 13:08
Diceware password Python script
import random, requests; print('\n'.join(random.sample(requests.get('https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt').content.decode().split('\n'), 5)))
@wadetb
wadetb / dw.sh
Last active May 1, 2017 15:49
Diceware password shell script
curl -s https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt | sort -R | head -n 5 | cut -f2 | paste -sd ' '
//
// ReserveAmerica auto clicker v2
// Wade Brainerd <wadeb@wadeb.com>
//
// This script repeatedly clicks the Book these Dates button
// for a ReserveAmerica campsite, e.g. Bahia Honda. Given a
// start time and duration, it will repeatdly click the button
// until the button disappears or the duration expires.
//
// Usage:
@wadetb
wadetb / gist:7434425
Last active December 28, 2015 03:19 — forked from mayoff/gist:1138816
Updated to take the URL to refresh from the command line arguments.
-- Usage: osascript refresh.scpt https://www.google.com/
-- Be careful to give the final URL after canonicalization, redirects, etc.
on run arg
set theUrl to arg's first item
tell application "Google Chrome"
activate
if (count every window) = 0 then