Skip to content

Instantly share code, notes, and snippets.

Aaron Gustafson aarongustafson

Block or report user

Report or block aarongustafson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aarongustafson / gist:9600892
Created Mar 17, 2014
Command line stuff I can never remember
View gist:9600892
# Laravel
php -dmemory_limit=1G /usr/local/bin/composer install
php -dmemory_limit=1G /usr/local/bin/composer update
php -dmemory_limit=1G /usr/local/bin/composer require SOMETHING
php artisan package:install lucadegasperi/oauth2-server-laravel
# Git - Remove a folder without deleting locally
git rm -r --cached folder_name
# heroku
View gruntfile.js
module.exports = function(grunt){
pkg: grunt.file.readJSON('package.json'),
compass: {
dev: {
options: {
config: 'config.rb'
aarongustafson / SassMeister-input.scss
Created May 1, 2014
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
// Hacking made easy
// ---
// A couple of Sass functions
// To ease the pain of dealing
// With special values for IE
View fonts.js
// test for font-face version to load via Data URI'd CSS
// Basically, load WOFF unless it's android's default browser, which needs TTF, or ie8-, which needs eot
var fonts = ns.files.css.fontsWOFF,
ua = win.navigator.userAgent;
// android webkit browser, non-chrome
if( ua.indexOf( "Android" ) > -1 && ua.indexOf( "like Gecko" ) > -1 && ua.indexOf( "Chrome" ) === -1 ){
fonts = ns.files.css.fontsTTF;
aarongustafson / audio-cnc.html
Created Jun 27, 2014
Audio markup from Code & Creativity
View audio-cnc.html
<audio controls>
<source src="//" type="audio/ogg">
<source src="//" type="audio/mpeg">
<li><a href="//">Ogg Vorbis</a></li>
<li><a href="//">MP3</a></li>
aarongustafson / ATL-bs.html
Created Sep 14, 2014
Some junk the ATL airport WiFi injected into HTML documents.
View ATL-bs.html
<style type="text/css"> #cbtzaorlrxsk { display:none; color:#111; background:#ffffff; text-align:center; border-bottom: 1px solid #666; z-index:10000; position:fixed; width:100%; top:0; } #uuvohxej { display:none; color:#111; background:#fff; border-right: 1px solid #666; z-index:10000; position:fixed; height:100%; left:0; } #pjewsjkezjyvt { display:none; color:#111; background:#fff; border-left: 1px solid #666; z-index:10000; position:fixed; height:100%; right:0; } #unrhenifgwrgnuj { display:none; color:#111; background:#ffffff; text-align:center; border-top: 1px solid #666; z-index:10000; position:fixed; width:100%; bottom:0; } #drfbaxpb { } </style><script language="JavaScript" type="text/javascript"> var c = 0; function waitForPageRender() { c = c + 1; var t=setTi
aarongustafson / webmention_count.html
Created Nov 18, 2014
Jekyll Plugin examples
View webmention_count.html
{% webmention_count YOUR_URL %}
View css-filter.html
<link rel="stylesheet" href="simple.css">
<link rel="stylesheet" href="complex.css" media="only screen">
View scroll-snap-points.css
.container {
width: 500px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
/* Set up points to which scrolling will snap */
-ms-scroll-snap-points-x: snapInterval(0px, 100%);
/* Require that scrolling always end at a snap point */
-ms-scroll-snap-type: mandatory;
aarongustafson / equal.css
Last active Aug 29, 2015
Quantity Queries - some bits and bobs from Haydon Pickering’s article (
View equal.css
li:nth-last-child(6):first-child ~ li {
color: green;
You can’t perform that action at this time.