Skip to content

Instantly share code, notes, and snippets.

'HTTP_USER_AGENT': 'SAMSUNG-SGH-E250/1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 UP.Browser/6.2.3.3.c.1.101 (GUI) MMP/2.0 (compatible; Googlebot-Mobile/2.1; +http://www.google.com/bot.html)'
@smn
smn / gist:829176
Created February 16, 2011 10:44
MNO-south-africa.py
import yaml
config = """
2771:
27710: MTN
27711: VODACOM
27712: VODACOM
27713: VODACOM
27714: VODACOM
27715: VODACOM
@smn
smn / gql-githubarchive.sql
Created September 4, 2012 08:16
Google BigQuery for githubarchive.com dataset for top 100 GitHub pushers from South Africa
/* top 100 repos for South African GitHub users by number of pushes */
SELECT actor_attributes_login, repository_name, count(repository_name) as pushes, repository_description, repository_url
FROM [githubarchive:github.timeline]
WHERE (actor_attributes_location CONTAINS 'South Africa') OR
(actor_attributes_location CONTAINS 'ZA') OR
(actor_attributes_location CONTAINS 'RSA')
GROUP BY actor_attributes_login, repository_name, repository_description, repository_url
ORDER BY pushes DESC
LIMIT 100
bla bla bla
diff --git a/Vagrantfile b/Vagrantfile
index a3535ac..3f38ce7 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -1,12 +1,111 @@
-Vagrant::Config.run do |config|
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
- config.vm.box = "precise32"
OperationalError: could not connect to server: Connection refused
Is the server running on host "prd-db01.praekeltfoundation.org" (10.65.19.192) and accepting
TCP/IP connections on port 5432?
puts :hi
@smn
smn / gist:5450190
Created April 24, 2013 07:07
Testing 09a79f8dc3
puts :foo
@smn
smn / .slate
Created May 7, 2013 12:03
ShiftIt key-bindings for Slate
# Key bindings for Slate to match ShiftIt's defaults.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Push Bindings
bind right:ctrl;alt;cmd push right bar-resize:screenSizeX/2
bind left:ctrl;alt;cmd push left bar-resize:screenSizeX/2
bind up:ctrl;alt;cmd push up bar-resize:screenSizeY/2
diff --git a/README.rst b/README.rst
index 345bdca..73634c8 100644
--- a/README.rst
+++ b/README.rst
@@ -20,8 +20,8 @@ You'll find the docs in `docs/_build/index.html`
You can contact the Vumi development team in the following ways:
- * via *email* by joining the the `vumi-dev@googlegroups.com`_ mailing list
- * on *irc* in *#vumi* on the `Freenode IRC network`_