Skip to content

Instantly share code, notes, and snippets.

View courtneyfaulkner's full-sized avatar

Courtney Faulkner courtneyfaulkner

View GitHub Profile
@courtneyfaulkner
courtneyfaulkner / 1_install_docker.sh
Last active February 14, 2017 18:42
Docker Data Center Setup
#! /bin/bash
# run on all nodes
# https://docs.docker.com/cs-engine/1.13/
curl -s 'https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e' | sudo apt-key add --import
sudo apt-get update && sudo apt-get install apt-transport-https
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
echo "deb https://packages.docker.com/1.13/apt/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update && sudo apt-get install docker-engine
@courtneyfaulkner
courtneyfaulkner / 0_reuse_code.js
Created August 22, 2014 16:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@courtneyfaulkner
courtneyfaulkner / devices.c
Created December 11, 2013 22:20
List OpenCL platforms and devices
#include <stdio.h>
#include <stdlib.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
int main() {
@courtneyfaulkner
courtneyfaulkner / gist:235332
Last active November 24, 2015 07:31 — forked from matthewmccullough/gist:47267
Show Git dirty status in your Unix bash prompt, show ls color, simple tree
#!/bin/sh
source /usr/local/etc/bash_completion.d/git-completion.bash
source /usr/local/etc/bash_completion.d/git-flow-completion.bash
source /usr/local/etc/bash_completion.d/git-prompt.sh
export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=256"
export CLICOLOR=1