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
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % |
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 | |
# For Ubuntu. Probably works elsewhere too. | |
# This script downloads the Raspbian file system into ~/rpi/chroot-raspbian-armhf | |
# It also chroots you into the directory, so you can act as a Raspbian user. | |
# This was all taken from here: http://superpiadventures.com/2012/07/development-environment/ | |
mkdir -p ~/rpi | |
cd ~/rpi |
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
#-------------------------------------------------------------------- | |
# $Id: screenrc,v 1.7 2007/10/08 19:01:09 drscream Exp $ | |
# Copyright 2007 Frubar Network (drscream@frubar.net) | |
#-------------------------------------------------------------------- | |
# DEFAULT | |
shell -$SHELL | |
autodetach on | |
defutf8 on | |
deflogin off |
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
<?php | |
header('Content-Type: text/plain'); | |
$url = 'http://' . $_SERVER['HTTP_HOST']; | |
$url .= dirname($_SERVER['REQUEST_URI']); | |
$url .= '/slow.php?sleep='; | |
$urls = array( | |
$url . 250, | |
$url . 750, |
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 | |
# This script makes a HandmadeHero directory and populates it as a git repo with the supplied .zip file. | |
# Example: ./hh_to_git.sh handmade_hero_065_source.zip | |
args=("$@") | |
if [ ${#args[@]} -ne 1 ] | |
then | |
echo "Need one argument: the source zip file." |