Skip to content

Instantly share code, notes, and snippets.

@roflmao
roflmao / gist:5293963
Last active December 15, 2015 17:09
raspberry pi wifi keepalive script
#!/usr/bin/perl
# NAME wifi-check.pl
# AUTHOR Kronalias
# PROVIDES Checks to see if WiFi has a network IP and if not restarts WiFi
#
# CRONTAB Run wifi-check.pl every minute
# */1 * * * * /home/pi/my/scripts/wifi-check.pl >> /mnt/ramdisk/wifi-check.log
#
# HISTORY
HTTP/1.1 500 Internal Server Error
Vary: Accept-Encoding
Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact)
Date: Mon, 07 Oct 2013 10:08:29 GMT
Content-Type: text/html
Content-Length: 1009
<html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br><pre>[{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},
{webmachine_decision_core,resource_call,1,
[{file,"src/webmachine_decision_core.erl"},
On tap at CROW:
1. Scream Ale
2. India Vienna Lager
3. Dead Canary Lager (Keller/Zwickelbier)
4. Crow Experimental IPA #4 (KIWI HOPS)
5. Last of the Kakako
6. Black CROW lager
7. Flying Couch Bastard (Amber Ale)
8. Red Rice Ale
ub vcl_recv {
if (req.backend.healthy) {
set req.grace = 5m;
} else {
set req.grace = 1h;
}
if ( req.url ~ "/static/" ) {
unset req.http.Cookie;
mark_position=0
mark_encrypted=·

Keybase proof

I hereby claim:

  • I am roflmao on github.
  • I am roflmao (https://keybase.io/roflmao) on keybase.
  • I have a public key ASC3dvuxtu220TjdCKKEa2z7xQYyu-SG5DuN7vMI6-sVwgo

To claim this, I am signing this object:

@roflmao
roflmao / index.pug
Created September 9, 2020 11:46
Only CSS: Usually Button
a.horizontal
span.text Horizontal
a.vertical
span.text Vertical