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
# n: Brandon Ruschill | |
# c: github.com/bruschill | |
# t: @bruschill | |
# BASICS (command mode) | |
# never ever use the arrow keys. ever | |
# | |
# k | |
# h l | |
# j |
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/bash | |
if [ -z "$1" ]; then | |
echo "Usage: sudo $0 /dev/sdh1" | |
exit 1; | |
fi | |
dd if=$1 of=/dev/null & pid=$! | |
while true; do | |
ps -p$pid --no-heading || break; | |
echo "-- $(date) ------------------"; |
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
#!/usr/bin/env python | |
""" | |
modded doubledecode.py | |
Seth Malaki (seth d-o-t malaki a-t gmail d-o-t com) | |
mainly this modification aims to replace special characters with html entities instead. | |
Test status: todo/untested. |
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
# mycookbook/recipes/apt_postgresql_ppa.rb | |
# | |
# This recipe should add the sources for | |
# PostgreSQL 9.1 using the PPA available at: | |
# https://launchpad.net/~pitti/+archive/postgresql | |
apt_repository "postgresql" do | |
uri "http://ppa.launchpad.net/pitti/postgresql/ubuntu" | |
distribution node['lsb']['codename'] | |
components ["main"] |