Skip to content

Instantly share code, notes, and snippets.

View allquixotic's full-sized avatar
🎯
Focusing

Sean McNamara allquixotic

🎯
Focusing
View GitHub Profile
@allquixotic
allquixotic / bookmarklet.js
Last active February 2, 2017 22:59 — forked from appel/bookmarklet.js
Turbolinks.js bookmarklet (via CDNJS)
javascript:(function()%7Bfunction callback()%7BTurbolinks.start()%7Dvar s%3Ddocument.createElement("script")%3Bs.src%3D"https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fturbolinks%2F5.0.0%2Fturbolinks.min.js"%3Bif(s.addEventListener)%7Bs.addEventListener("load"%2Ccallback%2Cfalse)%7Delse if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
@allquixotic
allquixotic / gist:6194351
Last active December 20, 2015 20:59 — forked from hay/gist:1351230
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
#!/bin/bash
directory=$(pwd)
pattern=$(awk -vORS=" " -v q="'" '{ print q $1 q }' .gitignore | sed 's/,$/\n/')
echo zip -r ignored $directory -i $pattern
zip -r ignored $directory -i $pattern
#!/usr/bin/env python
import sys
from datetime import datetime
import subprocess
DB_LOGIN = 'root'
DB_PASSWD = 'XXXX'
VAULT_NAME = 'backup_sunny'
HOSTNAME = 'Sunny'