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
@SebAshton
SebAshton / github-badges.md
Last active September 28, 2018 01:09
Available Github Badges
Badge Description Free for OSS Languages
Coveralls Code Coverage Yes Ruby, Python, PHP, Node, C/C++, Java, Scala, Go
Gemnasium Dependancy Monitoring Yes Ruby (RubyGems), Node (NPM)
Crate Num of Downloads ? Python
Brakeman Security Yes RoR
Code Climate Code Review Yes Ruby, Javascript
Version Badge Package Version Yes Ruby, Python, Node
Travis CI Continuous Integration Yes C/C++, Clojure, Erlang, Go, Groovy, Haskell, Java, Jav
@SebAshton
SebAshton / active_admin_ckeditor_patch.css.scss
Last active November 1, 2017 11:54
CSS to temporarily fix styling of CKeditor in active admin
.active_admin .cke {
display: inline-block;
}
.active_admin .cke_button_label {
display: none;
padding-left: 3px;
margin-top: 1px;
line-height: 17px;
vertical-align: middle;
@SebAshton
SebAshton / gist:3423778
Created August 22, 2012 08:34
AppleScript for Vagrant up

#Usage

  • Launch Automator (Applications > Utilities > Automator)
  • Select Utilities from the Library
  • Drag "Run AppleScript" into workflow
  • Paste and edit the below as appropriate.

###The AppleScript

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
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
width="350px" height="337px" viewBox="0 0 350 337" enable-background="new 0 0 350 337">
<path d="M175,0C78.35,0,0,75.44,0,168.5C0,261.561,78.35,337,175,337c96.648,0,175-75.439,175-168.5C350,75.44,271.649,0,175,0zM74.335,233.809c-13.046-18.656-20.662-41.125-20.662-65.31c0-64.665,54.444-117.087,121.604-117.087c23.469,0,45.378,6.407,63.96,17.495l-80.597,81.999l-0.016,69.188l-3.125,1.031l-36.429-32.053l-20.125,20.125l0.023,11.082
l-11.148,0.043L74.335,233.809z M175.277,285.587c-23.613,0-45.649-6.487-64.306-17.702l75.832-75.83c-2.675-7.136-4.169-17.584-4.169-24.188c0-20.694,13.308-51.532,51.01-51.532c8.807,0,17.646,2.264,23.783,5.095l18.563-18.564c13.187,18.721,20.892,41.311,20.892,65.635C296.882,233.166,242.438,285.587,175.277,285.587z"/>
<path fill="#EE1C4E" d="M76.733,118.809l57.972,51.309v-50.034h22.678v99.501l-1.56,0.567l-57.829-51.876v51.026h-22.82v-99.926L76.733,118.809z"/>
<path fill="#EE1C4E" d="M282.827,169.551c0,21.262-11.622,51.
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="350px" height="337px" viewBox="0 0 350 337" enable-background="new 0 0 350 337" xml:space="preserve">
<g>
<path d="M175,0C78.35,0,0,75.44,0,168.5C0,261.56,78.35,337,175,337c96.649,0,175-75.44,175-168.5C350,75.44,271.649,0,175,0z
M74.335,233.809c-13.046-18.657-20.662-41.126-20.662-65.31c0-64.665,54.444-117.087,121.604-117.087
c23.468,0,45.378,6.407,63.96,17.495l-80.597,81.999l-0.016,69.188l-3.125,1.031l-36.428-32.053l-20.125,20.125l0.023,11.082
l-11.148,0.043L74.335,233.809z M175.277,285.587c-23.614,0-45.65-6.487-64.306-17.702l75.832-75.831
@SebAshton
SebAshton / gist:7167923
Last active December 26, 2015 14:48
proper numbering of nested ol's
<!doctype html>
<html lang="en">
<head>
<title>Nested ol numbering</title>
<style>
ol {
list-style-type: none;
counter-reset: level1;
}
ol li:before {