Skip to content

Instantly share code, notes, and snippets.

View soloincc's full-sized avatar
🏠
Working from home

Wangoru Kihara soloincc

🏠
Working from home
View GitHub Profile
@soloincc
soloincc / azizi morogoro results
Created October 22, 2013 00:23
Traceroute results for azizi.ilri.cgiar.org from Morogoro, Tz.
1 75.125.232.57 (75.125.232.57) 0.587 ms 0.516 ms 1.926 ms
2 te1-4.dsr01.hstntx2.networklayer.com (74.55.252.81) 0.664 ms 0.364 ms 0.409 ms
3 ae16.bbr02.sr02.hou02.networklayer.com (173.192.18.236) 0.344 ms ae16.bbr01.sr02.hou02.networklayer.com (173.192.18.232) 0.308 ms 0.284 ms
4 ae3.bbr01.eq01.dal03.networklayer.com (173.192.18.218) 15.413 ms 5.424 ms 5.426 ms
5 ae7.bbr02.eq01.dal03.networklayer.com (173.192.18.209) 7.696 ms ae1.bbr01.tl01.atl01.networklayer.com (173.192.18.135) 30.416 ms 31.787 ms
6 ae1.bbr01.tl01.atl01.networklayer.com (173.192.18.135) 28.415 ms 29.349 ms ae0.bbr01.eq01.wdc02.networklayer.com (173.192.18.152) 44.172 ms
7 eqix-dc5.emirates.com (206.126.237.12) 128.700 ms 126.808 ms 126.582 ms
8 eqix-dc5.emirates.com (206.126.237.12) 126.084 ms 125.779 ms 128.073 ms
9 195.229.2.254 (195.229.2.254) 262.004 ms 260.695 ms 195.229.31.234 (195.229.31.234) 251.228 ms
10 195.229.0.194 (195.229.0.194) 242.439 ms 195.229.3.90 (195.229.3.90) 236.979 ms
@soloincc
soloincc / gist:7113661
Created October 23, 2013 06:46
traceroute dispatcher3
traceroute to dispatcher3.cgnet.com (192.156.137.138), 30 hops max, 60 byte packets
1 10.1.10.1 (10.1.10.1) 6.458 ms 6.972 ms 6.960 ms
2 41.221.34.201 (41.221.34.201) 8.877 ms 9.782 ms 10.233 ms
3 41.221.34.129 (41.221.34.129) 23.589 ms 28.064 ms 31.069 ms
4 41.221.43.225 (41.221.43.225) 28.966 ms 31.753 ms 35.142 ms
5 79.99.199.233 (79.99.199.233) 175.924 ms 176.737 ms 177.995 ms
6 v213.core1.lon1.he.net (216.66.84.101) 177.255 ms 185.532 ms 200.412 ms
7 ldn-b5-link.telia.net (213.248.93.81) 190.855 ms 198.133 ms 200.039 ms
8 cogent-ic-125507-ldn-b4.c.telia.net (213.248.70.238) 188.416 ms cogent-ic-150885-ldn-b5.c.telia.net (213.248.77.134) 190.041 ms 199.481 ms
9 te0-4-0-5.ccr21.lon13.atlas.cogentco.com (154.54.72.186) 192.312 ms te0-5-0-3.mpd21.lon13.atlas.cogentco.com (154.54.74.42) 194.248 ms te0-4-0-5.mpd21.lon13.atlas.cogentco.com (130.117.0.5) 196.488 ms
TLST001,TALQ001
TLST003,TALQ003
TLST004,TALQ004
TLST005,TALQ005
TLST006,TALQ006
TLST007,TALQ007
TLST008,TALQ008
TLST009,TALQ009
TLST010,TALQ010
TLST011,TALQ011
@soloincc
soloincc / mod_pull_odk_submissions.php
Last active June 15, 2016 07:16
mod_pull_odk_submissions.php is part of the Ngombe Planner scripts that is used to pull EADD II longitudinal submissions, submitted to an ODK Aggregate, http://opendatakit.org, process the submissions and merge them to a MySQL database which has data submitted by Ng'ombe Planner, http://np.azizi.ilri.org/ngombeplanner
<?php
define('OPTIONS_COMMON_FOLDER_PATH', '../../common/');
define('OPTIONS_MODULE_EMAIL_CONFIG_FILE', 'np_main.ini');
require_once OPTIONS_COMMON_FOLDER_PATH . 'mod_general_v0.6.php';
require_once 'ngombeplanner_config';
require_once OPTIONS_COMMON_FOLDER_PATH . 'dbmodules/mod_objectbased_dbase_v1.1.php';
/**
@soloincc
soloincc / top_breakdown.html
Last active June 20, 2016 15:13
A standalone script for visualising Kenya's 2016/17 revenue estimates
<!DOCTYPE html>
<!--
This is a standalone script for visualizing Kenya's 2016/17 revenue estimates.
The script has been adapted from Iinteractive Donut Charts, http://bl.ocks.org/erichoco/6694616, by http://bl.ocks.org/erichoco
Copyright (C) 2016 Wangoru Kihara, soloincc@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@soloincc
soloincc / revenue.html
Last active June 20, 2016 15:12
A standalone script for visualizing Kenya's 2016/17 revenue estimates
<!DOCTYPE html>
<!--
This is a standalone script for visualizing Kenya's 2016/17 revenue estimates.
The script has been adapted from Iinteractive Donut Charts, http://bl.ocks.org/erichoco/6694616, by http://bl.ocks.org/erichoco
Copyright (C) 2016 Wangoru Kihara, soloincc@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@soloincc
soloincc / taxes.html
Last active June 20, 2016 15:13
A standalone script for visualising Kenya's 2016/17 revenue estimates
<!DOCTYPE html>
<!--
This is a standalone script for visualising Kenya's 2016/17 revenue estimates.
The script has been adapted from Iinteractive Donut Charts, http://bl.ocks.org/erichoco/6694616, by http://bl.ocks.org/erichoco
Copyright (C) 2016 Wangoru Kihara, soloincc@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@soloincc
soloincc / badili_erpnext_triggers.sql
Last active October 6, 2016 02:57
Triggers for ensuring that ERPNext documents have todays date as the transaction date
-- For the Request for Quotation
create trigger rfq_oninsert before insert on `tabRequest for Quotation` for each row set NEW.transaction_date = curdate();
-- Supplier Quotation
create trigger sqtn_oninsert before insert on `tabSupplier Quotation` for each row set NEW.transaction_date = curdate();
-- Customer Quotation
create trigger qtn_oninsert before insert on `tabQuotation` for each row set NEW.transaction_date = curdate();
-- Sales Order
@soloincc
soloincc / onadata.conf
Last active December 24, 2016 05:26
During the installation of classic ona, this file onadata.conf is missing. Modify and edit appropriately before using it
#!upstart
description "onadata upstart script"
start on (local-filesystems and runlevel [2345])
stop on runlevel [!2345]
respawn
script
exec sudo /usr/local/bin/uwsgi --ini /opt/onadata/uwsgi.ini --env DJANGO_SETTINGS_MODULE=onadata.settings.common
@soloincc
soloincc / celeryd-ona
Created December 24, 2016 05:40
During the installation of classic ona, this file celeryd-ona is missing. Modify and edit appropriately before using it.
# Name of nodes to start, here we have a single node
CELERYD_NODES="w1"
# Where to chdir at start.
CELERYD_CHDIR="/opt/onadata-venv"
# Python interpreter from environment, if using virtualenv
ENV_PYTHON="/opt/onadata-venv/bin/python"
# How to call "manage.py celeryd_multi"