Skip to content

Instantly share code, notes, and snippets.

View abrkn's full-sized avatar

Andreas Brekken abrkn

View GitHub Profile
/**
* KineticJS Line Extension
* Compatible with KineticJS JavaScript Library v3.8.0
* Author: Mateusz Sokoła, modified by Greg Zoller (arrow heads)
* Copied to gist by Andreas Brekken <[email protected]>
* Date: Mar 12 2012
*/
///////////////////////////////////////////////////////////////////////
// Line
# install_chef_server.sh
#
# From list post by John Merrells <[email protected]>
# Modified by Mike Bailey <[email protected]>
logfile="/root/log.txt"
echo "-----" >> $logfile
# New sources.list
cat > /etc/apt/sources.list << EOF
@abrkn
abrkn / gist:8972942
Last active August 29, 2015 13:56 — forked from heumn/gist:8955387
Parse.Cloud.job("testImageCompression", function(request, response) {
console.log("Posting HTTP request");
Parse.Cloud.httpRequest({
method: 'POST',
url: 'https://api.kraken.io/v1/url',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
@abrkn
abrkn / zsh.md
Created August 7, 2014 11:15 — forked from tsabat/zsh.md
@abrkn
abrkn / nfs-mount-boot2docker.sh
Last active August 29, 2015 14:17 — forked from sirkkalap/nfs-mount-boot2docker.sh
Use NFS for boot2docker
#!/usr/bin/env bash
############################################################################
#
# Use NFS for boot2docker
#
# See: https://quip.com/EDYLAAfuup5M (no login needed)
# See also: https://github.com/boot2docker/boot2docker/issues/587#issuecomment-66935011
# See also: http://support.apple.com/en-us/HT202243
# See also: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/exports.5.html