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
ChrisTimperley / install-docker-elementary-loki.sh
Last active May 23, 2019
Installs Docker on Elementary OS 0.4 (Loki)
View install-docker-elementary-loki.sh
#!/bin/bash
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo rm -f /etc/apt/sources.list.d/docker.list
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -u -cs) \
stable"
sudo apt-get update
sudo apt-get purge lxc-docker
@zhy0
zhy0 / ubuntu-cli-install-android-sdk.sh
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.
View ubuntu-cli-install-android-sdk.sh
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# 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
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
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
View ReadNfcUIDActivity.java
// 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 -->
<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
@BlakeGardner
BlakeGardner / Install HTTPie.md
Last active Sep 12, 2019
Install HTTPie Mac OS X
View Install HTTPie.md

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.

HTTPie

The easy way

brew install httpie
@doobeh
doobeh / example.html
Last active Jun 1, 2019 — forked from anonymous/siecje.py
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">
</form>
@tsabat
tsabat / zsh.md
Last active Oct 9, 2019
Getting oh-my-zsh to work in Ubuntu
View zsh.md

Prereq:

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 https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
@borismus
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.