Skip to content

Instantly share code, notes, and snippets.

View SebAshton's full-sized avatar
Eating Cake

Seb Ashton SebAshton

Eating Cake
View GitHub Profile

Yay Docker for Mac is here! As of last night we all - not just Rory 'Bleeding Edge' MacDonald - can run Docker Natively on OSX without VB.

To update is simple... Install this DMG. If you want to preserve any db's export them first!

It will be super helpful an pull in your default box into your new set up (if you want it to).

Then unset the docker-machine envs:


Keybase proof

I hereby claim:

  • I am SebAshton on github.
  • I am sebashton ( on keybase.
  • I have a public key whose fingerprint is 36D6 78FE 8C76 1940 D630 DAA2 3E81 046F E168 DEAD

To claim this, I am signing this object:

SebAshton /
Last active May 26, 2016 21:52
Icomoon Icon Helper for Middleman (will probably work with Rails too)

Usage for middleman

  • Add helper to lib/helpers and rename icon_helpers.rb
  • Using Icomoon download your icons in SVG format.
  • Add to the extracted zip to lib/assets
  • Into config.rb add:
    • require 'lib/helpers/icon_helpers'
    • helpers IconHelpers
  • You can now use<%= icon_tag(symbol: 'facebook') %> in your template
SebAshton / Sublime Packages
Created June 17, 2015 17:11
My Sublime Text Packages
"All Autocomplete",
SebAshton / .bash_profile
Created March 26, 2015 08:57
My bash_profile
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PS1="\e[38;5;204m[mac: \w]\e[39m 🍔 "
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
var elements = document.getElementsByClassName('js-unfollow')
for(var i=0; i<elements.length; i++) {
"bold_folder_labels": true,
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"fade_fold_buttons": false,
SebAshton / gist:d258bbae7f40fa0132ba
Created August 1, 2014 17:16
round number to the nearest 5 or 9
def round_price(price)
amount = price.ceil()
if amount % 10 < 5
amount = amount + 5 - (amount % 5)
amount = amount + 9 - (amount % 9)