Skip to content

Instantly share code, notes, and snippets.

View rec's full-sized avatar
🥝
coding

Tom Ritchford rec

🥝
coding
View GitHub Profile
@rec
rec / keypresses.py
Last active December 20, 2015 21:09
How many extra keypresses on an old-style cell phone keyboard?
# How many extra keypresses does it take to type alphabetic characters on an
# old-style cell phone keyboard?
# https://www.facebook.com/zorikh.lequidre/posts/10151583168686662
# The result: 1.14908 extra keypresses "wasted" each time!
# Frequency table from here: http://en.wikipedia.org/wiki/Letter_frequency
frequencies = {
'a': 0.08167,
'b': 0.01492,
@rec
rec / airtime-ubuntu.md
Last active July 15, 2017 15:18
Installing SourceFabric's Airtime on a clean Ubuntu server running Virtualmin.

Installing SourceFabric's Airtime on a clean Ubuntu server running Virtualmin.

I'm documenting my experience installing SourceFabric's open source radio station manager Airtime on a clean server Ubuntu 12.04 LTS (Precise Pangolin) server running the popular Virtualmin open-source domain manager.

Virtualmin is sufficiently generic that I imagine the results will be useful to anyone trying to install Airtime on Ubuntu 12.04.

Before you start.