Skip to content

Instantly share code, notes, and snippets.

View ukanga's full-sized avatar

Ukang'a Dickson ukanga

View GitHub Profile
@ukanga
ukanga / SpotifyWhitelist
Created December 12, 2020 12:23 — forked from captainhook/SpotifyWhitelist
Spotify whitelist, Pi-hole compatible. Original source: https://github.com/x0uid/SpotifyAdBlock
# Spotify's Anti-Adveritsing blocking servers, tricking services to stop music services (DONT BLOCK THESE!):
gcdn.2mdn.net
r9---sn-n4v7kn76.c.2mdn.net
gew1-accesspoint-b-zzfg.ap.spotify.com
ns1.p23.dynect.net
ns3.p23.dynect.net
ns4.p23.dynect.net
dns1.p07.nsone.net
dns2.p07.nsone.net
dns3.p07.nsone.net
@ukanga
ukanga / draft-becoming-odk-tool.md
Last active July 25, 2018 03:42
Draft guidelines on something becoming an ODK tool

Draft guidelines on something becoming an ODK tool

  • The code MUST BE used as a pipeline in the processing of the ODK XForm schema or ODK submission data at any point - from form design to data export. For example, the code may be used to create an XForm, or converting XML submission data to a different format.
  • The code MUST BE useful to 3 or more organizations within the ODK community.
  • There MUST BE willingness within the developer community to continue contributing and supporting the project. The community is willing to define a roadmap with issues to complete the transformation of the tool to a desired stable state and a minimal set of ODK processes.
  • Version Control: The code MUST BE under version control preferably using git e.g. on Github. This should allow public review of the code, public contribution to the project.
  • Bug/Issue Tracking: The code MUST HAVE issues tracking supported for bugs, feature request discussions.
  • Documentation: The code MUST HAVE at least 80% do
@ukanga
ukanga / relative_paths.xml
Last active August 28, 2018 08:30
XForm XML with relative paths
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Relative Paths in repeats</h:title>
<model>
<instance>
<data id="relative_paths">
<Z/>
<section jr:template="">
<AA/>
@ukanga
ukanga / for_loop_w_relative_paths.xml
Last active August 28, 2018 06:40
XForm XML for loop with relative paths
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>For loop with relative path</h:title>
<model>
<instance>
<forloop id="for_loop_w_relative_paths">
<for-block jr:template="">
<input/>
<done/>
@ukanga
ukanga / calculate_w_relative_paths.xml
Created April 10, 2018 15:30
XForm XML calculate with relative paths
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Paths in a calculate within a repeat are relative.</h:title>
<model>
<instance>
<data id="calculate_w_relative_paths">
<rep jr:template="">
<crop/>
<a/>
@ukanga
ukanga / choice_filter_w_relative_paths.xml
Created April 10, 2018 15:25
XForm with choice filter using relative paths
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Choice filter uses relative path</h:title>
<model>
<itext>
<translation default="true()" lang="default">
<text id="static_instance-crop_list-2">
<value>Kale</value>
</text>

Keybase proof

I hereby claim:

  • I am ukanga on github.
  • I am ukanga (https://keybase.io/ukanga) on keybase.
  • I have a public key ASD9Qs6pS7ddQwWQd3DLwXozp__jD4a4coeK7zrjsYVgZAo

To claim this, I am signing this object:

@ukanga
ukanga / .Xdefaults
Created September 18, 2016 18:35 — forked from yevgenko/.Xdefaults
URxvt settings with solarized theme
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
---
title: "Example of using Ona.R"
author: Ukang'a Dickson
date: "`r format(Sys.time(), '%B %d, %Y')`"
output: html_document
---
An example of using ona.R.
Load ona.R library.
@ukanga
ukanga / ssh-copy-id
Created February 23, 2012 19:02 — forked from ambethia/ssh-copy-id
`ssh-copy-id` on OS X
sudo curl "http://gist.github.com/raw/372696/bffde4ea5cf23eebd8b0f4ee15708a0a9d0af7f5/ssh-copy-id" -o /usr/local/sbin/ssh-copy-id
sudo chmod +x /usr/local/sbin/ssh-copy-id