Skip to content

Instantly share code, notes, and snippets.

http {
# Declare index at http level
index index.html index.php;
server {
# Set IP & Port For Server Block
listen 00.000.000.000:80;
# Set Server Name
server_name www.example.com;
# Redirect WWW to non WWW (http://wiki.nginx.org/Pitfalls)
/* gum - v0.1.0 - 3/08/2012
* https://github.com/rwldrn/dmv (gum)
* Copyright (c) 2012 Rick Waldron <waldron.rick@gmail.com>; Licensed MIT */
(function( window, navigator ) {
// 2012-03-08 Inspired by https://gist.github.com/f2ac64ed7fc467ccdfe3
// If unprefix.js is available, use it.
// https://github.com/rwldrn/unprefix.js
// Otherwise...
if ( !window.unprefix ) {
@jbloetz
jbloetz / pg.sh
Created August 4, 2012 13:35
strong password generator script
#!/bin/bash
export LC_ALL=C
cat /dev/urandom | tr -cd [:graph:] | head -c ${1:-16}
echo