Skip to content

Instantly share code, notes, and snippets.

# 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 %
@nsenica
nsenica / init_rootfs.sh
Last active December 6, 2016 07:31 — forked from jeremyckahn/init_rootfs.sh
Setting up Raspbian rootfs on Ubuntu
#!/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
@nsenica
nsenica / .screenrc
Last active August 29, 2015 14:20
The .screenrc I use - credits to its author.
#--------------------------------------------------------------------
# $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
<?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,
@nsenica
nsenica / hh_to_git.sh
Last active August 29, 2015 14:18
HandmadeHero to git
#!/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."