Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sean McNamara allquixotic

🎯
Focusing
  • GDIT
  • Maryland, USA
View GitHub Profile
@allquixotic
allquixotic / bookmarklet.js
Last active Feb 2, 2017 — forked from appel/bookmarklet.js
Turbolinks.js bookmarklet (via CDNJS)
View bookmarklet.js
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)()
View backup_glacier.py
#!/usr/bin/env python
import sys
from datetime import datetime
import subprocess
DB_LOGIN = 'root'
DB_PASSWD = 'XXXX'
VAULT_NAME = 'backup_sunny'
HOSTNAME = 'Sunny'
View gist:6195836
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
View gist:6194351
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
View gist:4964713
#!/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