View private.xml
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Easy access for Umlauts</name> | |
<identifier>private.easy_umlaut_access</identifier> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::A, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L, | |
KeyCode::U, ModifierFlag::OPTION_L, KeyCode::A, ModifierFlag::SHIFT_L | |
</autogen> |
View coffeescript-homebrew
# Install Homebrew | |
ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go) | |
# Follow on-screen instructions (X11 isn't necessary for this if it shows as not installed) | |
brew install node | |
# Open .bashrc and add this line (create .bashrc if its not in your home directory already) |
View list_comprehensions.rs
#![feature(macro_rules)] | |
/// MIT license etc. etc. | |
/// | |
/// Experimenting with Python-like list comprehensions. | |
/// | |
/// An attempt to explore the possibility space for ergonomic improvements | |
/// in Rust that can come post v1.0. Notice that there are not type declerations. | |
/// Aside from the "c!" macro invocation, Rust allows for an exact copy of the | |
/// Python comprehension syntax. |
View xlwt - excel colors generator
"""Build an .xls file with all background colors vs patterns possibilities""" | |
import xlwt | |
wb = xlwt.Workbook() | |
ws = wb.add_sheet("Colors") | |
ws.write(0, 0, "Colors/Patterns") | |
for pat_index in range(0, 16): | |
ws.write(0, pat_index + 1, str(pat_index)) |
View tmux__CentOS__build_from_source.sh
# Steps to build and install tmux from source. | |
# Takes < 25 seconds on EC2 env [even on a low-end config instance]. | |
VERSION=2.7 | |
sudo yum -y remove tmux | |
sudo yum -y install wget tar libevent-devel ncurses-devel | |
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz | |
tar xzf tmux-${VERSION}.tar.gz | |
rm -f tmux-${VERSION}.tar.gz | |
cd tmux-${VERSION} |