Skip to content

Instantly share code, notes, and snippets.

@ryin
ryin / tmux_local_install.sh
Last active October 2, 2024 14:23
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
@ryin
ryin / .tmux.conf
Created July 14, 2012 06:12
tmux 1.6 configuration file
set -g default-terminal "screen-256color"
# set window notifications
setw -g monitor-activity on
set -g visual-activity on
# set vi keybindings
set-window-option -g mode-keys vi
# remap PREFIX to C-a
@ryin
ryin / verify_redemption.sh
Created October 4, 2013 16:56
Retrieve iTunes receipt
#!/bin/bash
base64 -D <(echo $1) | curl -d @- https://buy.itunes.apple.com/verifyReceipt