Skip to content

Instantly share code, notes, and snippets.

View jmwenda's full-sized avatar

Jude Mwenda jmwenda

View GitHub Profile
@jmwenda
jmwenda / gist:2008550
Created March 9, 2012 20:37
kml to svg
import mapnik
import cairo
m = mapnik.Map(15000, 15000, "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs") # end result: OpenStreetMap projection
m.background = mapnik.Color(0, 0, 0, 0)
bbox = mapnik.Envelope(-10000000, 2000000, -4000000, -19000000) # must be adjusted
m.zoom_to_box(bbox)
s = mapnik.Style()
@jmwenda
jmwenda / NOTES.md
Created January 17, 2018 04:35 — forked from DenisIzmaylov/NOTES.md
Step By Step Guide to Configure a CoreOS Cluster From Scratch

Step By Step Guide to Configure a CoreOS Cluster From Scratch

This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.

Content

@jmwenda
jmwenda / index.html
Last active September 19, 2017 10:01
<html>
<body>
<svg width="1000" height="500" xmlns="http://www.w3.org/2000/svg"><g transform="translate(.5,.5)"><g class="cell" transform="translate(694,186)"><rect width="148" height="309" style="fill: rgb(191, 105, 105); fill-opacity: 1; stroke: rgb(255, 255, 255);"></rect><title>Arborist Dead Dying Hazardous Tree: 129</title><text x="74" y="154.5" dy=".35em" text-anchor="middle" style="font-size: 11px; font-family: Arial, Helvetica;">Arborist Dead Dying Hazardous Tree</text></g><g class="cell" transform="translate(283,174)"><rect width="169" height="102" style="fill: rgb(191, 116, 105); fill-opacity: 1; stroke: rgb(255, 255, 255);"></rect><title>Plumbing Single Family/Duplex: 49</title><text x="84.5" y="51" dy=".35em" text-anchor="middle" style="font-size: 11px; font-family: Arial, Helvetica;">Plumbing Single Family/Duplex</text></g><g class="cell" transform="translate(702,5)"><rect width="140" height="181" style="fill: rgb(191, 127, 105); fill-opacity: 1; stroke: rgb(255, 255, 255);"></rect><title>HVAC Si
// javascript code
//
// script_name: Drum beat (no loops)
//
// author: The EarSketch Team
//
// description: Musical repetition created without code loops
//
//
//
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e016530488a7 dokku/my-new-app:latest "/start web" 7 minutes ago Up 7 minutes my-new-app.web.1
200a90c8c2af dokku/judemwenda:latest "/start web" 3 hours ago Up 3 hours judemwenda.web.1
d2e819ecfaa8 postgres:9.6.1 "/docker-entrypoin..." 5 hours ago Up 5 hours 5432/tcp dokku.postgres.judemwenda
0815de5df377 sameersbn/bind:latest "/sbin/entrypoint...." 6 weeks ago Up 2 days 53/tcp, 0.0.0.0:53->53/udp, 0.0.0.0:10000->10000/tcp bind
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g-fips 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to gitlab.com [52.167.219.168] port 22.
debug1: Connection established.
debug1: identity file /home/dokku/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dokku/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/dokku/.ssh/id_dsa type -1
git push dokku master
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
Total 0 (delta 0), reused 0 (delta 0)
To dokku@server.com:judemwenda
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@server.com:judemwenda'
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Emigrate</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="css/game.css" type="text/css" />
<script src="js/game.js"></script>