Skip to content

Instantly share code, notes, and snippets.

View jlank's full-sized avatar

John Lancaster jlank

  • SADA Systems | OrgFunder
  • Washington DC
View GitHub Profile
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
  1. Open the /etc/apt/sources.list.d/docker.list file in your favorite editor. If the file doesn’t exist, create it.
  2. Remove any existing entries. Add:

Keybase proof

I hereby claim:

  • I am jlank on github.
  • I am david_buoy (https://keybase.io/david_buoy) on keybase.
  • I have a public key ASBnInN4O0dngJ1-J1FBdba8DVDMG-DiQltbw6XZL29zAQo

To claim this, I am signing this object:

@jlank
jlank / GIF-Screencast-OSX.md
Last active September 4, 2015 02:03 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

sudo apt-get install curl vim git -y && git clone https://github.com/jlank/dotfiles ~/.dotfiles && mkdir -p ~/.vim/{backup,swap}s && . ~/.dotfiles/source_me && cd /vagrant/
@jlank
jlank / dot
Created February 7, 2014 21:34
set up me files
#!/bin/bash
git clone https://github.com/jlank/dotfiles ~/.dotfiles && mkdir -p ~/.vim/{backup,swap}s && . ~/.dotfiles/source_me
@jlank
jlank / GBP.markdown
Created January 29, 2014 00:43
A Pen by John Lancaster.

GBP

A Great British Pound coin spinning, created with 3D transforms and animation in CSS. I was reminded of old PS1 loading screens, where they just spun the disc forever, and never actually loaded a game. Perhaps that was just my experience.

Webkit only for now, just because.

A Pen by John Lancaster on CodePen.

License.

@jlank
jlank / es.sh
Last active December 18, 2015 11:18
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless curl -y
cd /usr/local/share
sudo wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.1.tar.gz
sudo tar -xf elasticsearch-0.90.1.tar.gz
sudo rm elasticsearch-0.90.1.tar.gz
sudo mv elasticsearch-* elasticsearch
@jlank
jlank / gist:5767973
Created June 12, 2013 18:44
Automatic HTTP OPTIONS for Expressjs routes... place after all other routes. Doesn't fully conform to the protocol spec per: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html w/r/t the `Max-Forwards` header. Would also like to add helper to automagically render a response body per: http://zacstewart.com/2012/04/14/http-options-method.html ..…
app.options('*', function (req, res) {
var path = req.originalUrl;
var allow = [];
for (var opt in app.routes) app.routes[opt].forEach(findRoutes);
function findRoutes (route) {
if (path.match(route.regexp)) allow.push(opt.toUpperCase());
}
var a = {
valueOf: function () {
return 100;
},
toString: function () {
return '__test';
}
};
// in this operation
@jlank
jlank / gist:5021363
Created February 23, 2013 21:15
starting httpd with puppet
file { '/etc/passwd':
owner => 'root',
group => 'root',
mode => '0644',
}
package { httpd: ensure => installed; }
service { "httpd":
enable => "true",