1
https://gist.github.com/3144842
2
https://gist.github.com/3144998
3
https://gist.github.com/3145089
4
https://gist.github.com/3145226
5
https://gist.github.com/3145525
6
https://gist.github.com/3145551
7
https://gist.github.com/3145587
8
https://gist.github.com/3145608
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
export DEBIAN_FRONTEND=noninteractive | |
HOSTNAME=${1} | |
DOMAINNAME=${2} | |
PUPPET_MANIFEST=${3} | |
PUPPETMASTER_IP=${4} | |
FQDN=${HOSTNAME}.${DOMAINNAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build | |
IMAGEID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1) && sudo docker build -t $IMAGEID . | |
# Run new container | |
CONTAINER_ID=$(sudo docker run -t -d -p 0.0.0.0:81:80 $IMAGEID) | |
# Login into running container | |
FULL_CONTAINER_ID=$(sudo docker ps -a -notrunc -q | grep -F $CONTAINER_ID) && sudo lxc-attach -n $FULL_CONTAINER_ID /bin/bash | |
# Container stdout |
A quick comparison/ benchmark between Hogan, Dust, doT and underscore
Developed by Twitter (same team as Bootstrap), use exactly the same syntax as Mustache, but more performant and more stuff available server side.
My name is {{ name }}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"use_channel":true, | |
"allow_empty_post_data":true, | |
"app_id":"edaded98-5119-4c8a-afc1-de722da03562", | |
"url":"http://chromecast.redbull.tv/receiver.php", | |
"dial_enabled":true | |
}, | |
{ | |
"use_channel":true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Shell script that configures mate-terminal to use solarized theme | |
# colors. (I simply replaced in the original script every occurence | |
# of "gnome-terminal" with "mate-terminal" and every occurcence | |
# of "gconftool-2" with "mateconftool-2"; reverse these changes if | |
# using gnome and rename the script to its original name: "solarize" | |
# | |
# Written for Ubuntu 11.10, untested on anything else. (actually tested | |
# also on ArchLinux, seems to work fine here, tweak it to your needs :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Shell script that configures gnome-terminal to use solarized theme | |
# colors. Written for Ubuntu 11.10, untested on anything else. | |
# | |
# Solarized theme: http://ethanschoonover.com/solarized | |
# | |
# Adapted from these sources: | |
# https://gist.github.com/1280177 | |
# http://xorcode.com/guides/solarized-vim-eclipse-ubuntu/ |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// post serialized no-script clone back to debugger | |
if(true){ // this is just to be able to toggle the dumping off easily | |
(function noscriptDump(){ | |
var clone = document.documentElement.cloneNode(true); | |
var elms = clone.getElementsByTagName('script') | |
while(elms.length){ | |
elms[elms.length-1].parentNode.removeChild(elms[elms.length-1]); | |
} | |
var html = clone.outerHTML; | |
var x = new XMLHttpRequest(); |