Skip to content

Instantly share code, notes, and snippets.

-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFb+nd4BEADThtoU+G0YI0+AnUk3nZm3bwrqY0Xfi/7OaKQAjmuFZwRalzog
ec2qrdZhO8G+ZD1eAdN2bkzFt5uS1HTurhxwm76RmVbdJjaa1vsrSuIqVvnUzERP
EDRpdnNs+BwvUyh18aRzWZTtX8j2z0fvnuOF4LyP816GsHR7BbI4HJvQ1BiPJD3u
+ocJk+I5MYIRaMbm/sd81KJu2gPTT7he6t7YBdIeqfY5F+6+YUsepbwT7MERvprw
vC6fKs15XkxgmZxG3VxslPE+S3EmnQWa5Xok8R3aJyimVhqOvUke116pYWbHbtFq
jOLAXJcNzc+6Us0hTF55ssBLI+jJwqOjBGkZcRuvULZH3FvWCPRafrX91jtVzQeq
+Qb1ZC3sibiMv/DIF3wu9hhK0uU9Dkzx7GjwjjS+iWlq2aZBbSxuhSKAgLLKrKio
IXDLdAxN/xXPtpaKADl1kRzybKEI18NIz8QHIKwywRLan1pdFgvOLhE2pMdkfSso
@GrahamW
GrahamW / slack_gruvbox.css
Last active October 5, 2018 09:29
Attempt at gruvbox theme for slack
body { background: #282828; color: #fbf1c7; }
a { color: #ebdbb2; }
a:link, a:visited { color: #ebdbb2; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
require 'restclient'
require 'fileutils'
@base_url = ENV['FLASHAIR_URL'] || 'http://192.168.1.66'
@target_dir = ENV['FLASHAIR_SYNC_DIR'] || '~/FlashAirSync'
def get_dir(root)
puts "Getting dir #{root}..."
res = RestClient::Request.execute(
method: :get,
@GrahamW
GrahamW / doh_proxy.py
Last active October 22, 2020 21:31
Hacky DNS over HTTPS (DoH) proxy server in python
#!/usr/bin/env python3.6
# Based on pared down version of https://github.com/samuelcolvin/dnserver
# Uses cloudflare-dns.com for DoH, and their 1.1.1.1 DNS as fallback
import logging
import os
import signal
import requests
from time import sleep

Keybase proof

I hereby claim:

  • I am grahamw on github.
  • I am grahamw (https://keybase.io/grahamw) on keybase.
  • I have a public key ASD7A98pX2HxPnzsIWgP9n105hntd2nSa01LB4BBjhZGuQo

To claim this, I am signing this object: