Skip to content

Instantly share code, notes, and snippets.

#///
Likestripes
Cold Open
Sign In -> Logged In
Sign Up
Fill out form -> Settings
Logged In
Settings
@tdonia
tdonia / keybase.md
Created November 9, 2016 19:39
keybase.md

Keybase proof

I hereby claim:

  • I am tdonia on github.
  • I am tdonia (https://keybase.io/tdonia) on keybase.
  • I have a public key whose fingerprint is C98B ED91 0D2C 85EA 1737 9E09 83ED E368 3E34 1153

To claim this, I am signing this object:

@tdonia
tdonia / gist:3295367
Created August 8, 2012 14:17
varnish mobile filter
# Rutine to try and identify device
sub identify_device {
# Default to thinking it's a PC
set req.http.X-Device = "pc";
if (req.http.User-Agent ~ "iP(hone|od)" || req.http.User-Agent ~ "Android" ) {
# It says its a iPhone, iPod or Android - so let's give them the touch-site..
set req.http.X-Device = "mobile";
}
}