Skip to content

Instantly share code, notes, and snippets.

View michaelgold's full-sized avatar

Michael Gold michaelgold

View GitHub Profile
@font-face {
font-family: 'Source Code Pro Powerline FontAwesome';
font-style: normal;
font-weight: normal;
src: local('Source Code Pro Powerline FontAwesome'), url('https://raw.githubusercontent.com/gabrielelana/awesome-terminal-fonts/patching-strategy/patched/SourceCodePro%2BPowerline%2BAwesome%2BRegular.ttf') format('truetype');
}
body {
font-family: 'Source Code Pro Powerline FontAwesome' !important;
}
@michaelgold
michaelgold / 01-run.sh
Created April 7, 2016 14:50
docker hosted dokku
# add your public ssh keys to data/ssh
mkdir -p data/{apps,config,ssh,storage}
# build the image and tag it
docker build -t dokku/dokku:dokku-test .
# run the image
docker run \
-e "TRACE=1" \
-p "2222:22" \
@michaelgold
michaelgold / dokku_on_digital_ocean.md
Created April 6, 2016 01:16 — forked from henrik/dokku_on_digital_ocean.md
Notes from running Dokku on Digital Ocean.

My notes for Dokku on Digital Ocean.

Commands

Install dokku-cli (gem install dokku-cli) for a more Heroku-like CLI experience (dokku config:set FOO=bar).

# List/run commands when not on Dokku server (assuming a "henroku" ~/.ssh/config alias)
ssh henroku dokku
ssh henroku dokku config:get my-app
@michaelgold
michaelgold / gmailToOmnifocus.js
Last active December 11, 2015 16:38 — forked from al3xandru/gist:1169583
Gmail to Omnifocus Bookmarklet
javascript:(function(){
var enc=encodeURIComponent,
w=window,
frames=w.frames,
d=document,
tn=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),
pu=w.location.href,
isGMail=w.location.host.match(/mail\.google\.com/),
tt=pt=d.title,
subjSpans=d.getElementsByClassName("hP"),i,url;