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:

unset DOCKER_TLS_VERIFY

Keybase proof

I hereby claim:

  • I am SebAshton on github.
  • I am sebashton (https://keybase.io/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
SebAshton / 01_README.md
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
SebAshton / Sublime Packages
Created June 17, 2015 17:11
My Sublime Text Packages
{
"in_process_packages":
[
],
"installed_packages":
[
"All Autocomplete",
"ApacheConf.tmLanguage",
"BracketHighlighter",
"CoffeeScript",
@SebAshton
SebAshton / .bash_profile
Created March 26, 2015 08:57
My bash_profile
# https://github.com/sstephenson/rbenv#basic-github-checkout
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
# http://notes.torrez.org/2013/04/put-a-burger-in-your-shell.html
export PS1="\e[38;5;204m[mac: \w]\e[39m 🍔 "
# http://osxdaily.com/2012/02/21/add-color-to-the-terminal-in-mac-os-x/
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
var elements = document.getElementsByClassName('js-unfollow')
for(var i=0; i<elements.length; i++) {
elements[i].click()
}
{
"bold_folder_labels": true,
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"fade_fold_buttons": false,
"file_exclude_patterns":
[
".DS_Store",
".gemtags",
".gitkeep",
".tags",
@SebAshton
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)
else
amount = amount + 9 - (amount % 9)
end
amount