View memory.css
1 2 3 4 5 6 7 8 9 10
table.matrix,tbody.matrix {
border-style:double;
border-width:3px;
border-color:#000000;
border-spacing:0;
padding:0;
margin:0;
background-color:#aaffff;
}
table.matrix td {
View pedantically_commented_playbook.yml
1 2 3 4 5 6 7 8 9 10
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
View functions.php
1 2 3 4 5 6 7 8 9 10
<?php
/**
* Usage:
* Paste a gist link into a blog post or page and it will be embedded eg:
* https://gist.github.com/diije/5805069
*
* If a gist has multiple files you can select one using a url in the following format:
* https://gist.github.com/diije/5805069?file=embed-gist.php
*/
View myservice.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
 
### BEGIN INIT INFO
# Provides: myservice
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Put a short description of the service here
# Description: Put a long description of the service here
View 0_reuse_code.js
1 2
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View nodejs-cheatsheet.js
1 2 3 4 5 6 7 8 9
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
 
 
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
 
View vagrant.py
1 2 3 4 5 6 7 8 9
#!/usr/bin/env python
# Adapted from Mark Mandel's implementation
# https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py
import argparse
import json
import paramiko
import subprocess
import sys
 
View osx-setup.md

Setup Mac OS X (Yosemite)

1. Run Software Update

Make sure everything is up to date.

2. Install Xcode and its "Command Line Tools"

  1. Go to App Store and install Xcode.
View gist:03f45e5d24be523b5c50
1 2 3 4 5 6 7 8 9 10
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
 
function get_pwd() {
print -D $PWD
}
 
function battery_charge() {
Something went wrong with that request. Please try again.