Skip to content

Instantly share code, notes, and snippets.

Makhabane Mipi chrismipi

Block or report user

Report or block chrismipi

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
ChrisTimperley /
Last active May 23, 2019
Installs Docker on Elementary OS 0.4 (Loki)
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo rm -f /etc/apt/sources.list.d/docker.list
sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -u -cs) \
sudo apt-get update
sudo apt-get purge lxc-docker
zhy0 /
Last active Oct 8, 2019
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
# Thanks to
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make # NDK stuff
molivier / gist:271bba5d67de1583a8e3
Last active Sep 17, 2019
Set $GOPATH on Mac OSX : bash_profile
View gist:271bba5d67de1583a8e3
# Edit ~/.bash_profile
export GOPATH=/Users/$USER/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile
lym / gist:456ec863d3fc3c63cab4
Created Apr 17, 2015
psycopg: Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
View gist:456ec863d3fc3c63cab4
# Just install libpq-dev
$ sudo apt-get install libpq-dev
// Needed in AndroidManifest:
<!-- Permission for using NFC hardware -->
<uses-permission android:name="android.permission.NFC"/>
<!-- Forcing device to have NFC hardware -->
<uses-feature android:name="android.hardware.nfc" android:required="true"/>
<!-- Registering app for receiving NFC's TAG_DISCOVERED intent -->
<action android:name="android.nfc.action.TAG_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
BlakeGardner / Install
Last active Sep 12, 2019
Install HTTPie Mac OS X
View Install

This is a quick guide on installing HTTPie for Mac OS X systems. This is also useful if you want the python package management utility pip. An installed copy of Homebrew is a prerequisite.


The easy way

brew install httpie
doobeh / example.html
Last active Jun 1, 2019 — forked from anonymous/
Simple example of using a RadioField in Flask-WTForms to generate a form.
View example.html
<form method="post">
{{ form.hidden_tag() }}
{{ form.example }}
<input type="submit">
tsabat /
Last active Oct 9, 2019
Getting oh-my-zsh to work in Ubuntu


apt-get install zsh
apt-get install git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget -O - | zsh
borismus / gist:1032746
Created Jun 18, 2011
Convert a base64 string into a binary Uint8 Array
View gist:1032746
var BASE64_MARKER = ';base64,';
function convertDataURIToBinary(dataURI) {
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length;
var base64 = dataURI.substring(base64Index);
var raw = window.atob(base64);
var rawLength = raw.length;
var array = new Uint8Array(new ArrayBuffer(rawLength));
for(i = 0; i < rawLength; i++) {
You can’t perform that action at this time.