Skip to content

Instantly share code, notes, and snippets.

View clux's full-sized avatar
:shipit:

Eirik A clux

:shipit:
View GitHub Profile
@tj
tj / routes.js
Created October 15, 2011 00:23
Express routes
var app = require('../app');
console.log();
app.routes.all().forEach(function(route){
console.log(' \033[90m%s \033[36m%s\033[0m', route.method.toUpperCase(), route.path);
});
console.log();
process.exit();
@bencord0
bencord0 / gist:dd724b35fed2617169c4
Created November 19, 2015 18:34
Selfsigned openssl wildcard oneliner
openssl req -new -newkey rsa:4096 -keyout example.key -nodes -sha512 -batch -subj '/CN=*.example.com/' -x509 -days 28 -out example.pem
@clux
clux / enable-notifications.sh
Last active February 6, 2016 23:14
mass edit .travis.yml
#!/bin/bash
set -e
dir="$1"
cd "$dir"
file=".travis.yml"
# ensure we have an empty staging area before we start committing
cache=$(git diff --cached)
if [[ -n "${cache// }" ]]; then