Skip to content

Instantly share code, notes, and snippets.

Tim Akinbo takinbo

Block or report user

Report or block takinbo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am takinbo on github.
  • I am takinbo (https://keybase.io/takinbo) on keybase.
  • I have a public key whose fingerprint is DF7F B883 8949 37A9 ABAA 27F5 AB3B B959 BC3F 6CED

To claim this, I am signing this object:

View onename.io
Verifying that +takinbo is my Bitcoin username. You can send me #bitcoin here: https://onename.io/takinbo
@takinbo
takinbo / kannel.conf
Created Mar 11, 2015
sample kannel.conf for docker image
View kannel.conf
group = core
admin-port = 13000
admin-password = ***
admin-allow-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
smsbox-port = 13001
group = smsbox
bearerbox-host = bearerbox
sendsms-port = 13013
View UnicodeEncodeError.py
# in case you ever come across a similar error in python:
#
# UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
# position 2: ordinal not in range(128)
#
# simply use these
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
@takinbo
takinbo / spomskyd_install.sh
Created May 9, 2009
installing spomskyd on Ubuntu
View spomskyd_install.sh
#!/bin/sh
sudo apt-get install build-essential
sudo apt-get install ruby
sudo apt-get install rubygems
sudo apt-get install ruby1.8-dev
# if the following doesn't work (Debian systems for example) use
# sudo gem install rubygems-update
# /var/lib/gems/1.8/bin/update_rubygems
sudo gem update --system
sudo gem sources -a http://gems.github.com/
View domain_available.sh
#!/bin/sh
# Invocation: ./domain_available.sh domain.com email@yourcompany.com
# Could be configured with cron to alert you when a domain is available.
MAILTO=$2
DOMAIN=$1
STATUS=`whois $DOMAIN | grep 'Status:' | awk -F ' ' '{ print \$2; }'`
STATUS=${STATUS:="available"}
View locations.diff
diff --git a/apps/bednets/constants.py b/apps/bednets/constants.py
index 20709dd..0f33557 100644
--- a/apps/bednets/constants.py
+++ b/apps/bednets/constants.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# vim: ai et sts=4 sw=4 ts=4
-from reporters.models import Location
+from locations.models import Location
View gist:340277
#!/usr/bin/php
<?php
// A git pre-commit script for drupal-based repositories
$output = array();
$return = 0;
exec('git rev-parse --verify HEAD 2> /dev/null', $output, $return);
$against = $return == 0 ? 'HEAD' : '4b825dc642cb6eb9a060e54bf8d69288fbee4904';
View gist:430017
#! /bin/sh
### BEGIN INIT INFO
# Provides: mongodb
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the mongodb data-store
# Description: starts mongodb using start-stop-daemon
@takinbo
takinbo / post.py
Created Jul 21, 2010
Scraping script for Nigeriapostcodes.com
View post.py
#!/usr/bin/env python
import sys
import re
from datetime import datetime
import csv
from BeautifulSoup import BeautifulSoup
import urllib2
from urllib import urlencode
from time import sleep
You can’t perform that action at this time.