Skip to content

Instantly share code, notes, and snippets.

View ainth's full-sized avatar

Allen Hebden ainth

View GitHub Profile
@ainth
ainth / chef-client failure
Created August 6, 2011 00:02
chef-rvm issues
[Fri, 05 Aug 2011 23:58:09 +0000] INFO: *** Chef 0.10.0 ***
[Fri, 05 Aug 2011 23:58:09 +0000] INFO: Run List is [recipe[build-essential], recipe[chef-rvm]]
[Fri, 05 Aug 2011 23:58:09 +0000] INFO: Run List expands to [build-essential, chef-rvm]
[Fri, 05 Aug 2011 23:58:09 +0000] INFO: Starting Chef Run for naughtybeaver
[Fri, 05 Aug 2011 23:58:10 +0000] INFO: Loading cookbooks [build-essential, chef-rvm]
[Fri, 05 Aug 2011 23:58:10 +0000] WARN: Missing gem 'rvm'
[Fri, 05 Aug 2011 23:58:10 +0000] INFO: Missing gem 'rvm'
[Fri, 05 Aug 2011 23:58:10 +0000] ERROR: Running exception handlers
[Fri, 05 Aug 2011 23:58:10 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[Fri, 05 Aug 2011 23:58:10 +0000] ERROR: Exception handlers complete
@ainth
ainth / gist:6214775
Created August 12, 2013 20:22
Trying to figure out a break before strategy for ftcolumnflow.
function _addFlowedElement(element, index) {
var originalPadding, existingPadding, totalElementHeight,
desiredElementHeight, newPadding, overflow, loopCount,
nextElement = element.nextSibling,
prevElement = element.previousSibling;
// Check if it's necessary to sanitize elements to conform to the baseline grid
if (config.standardiseLineHeight) {
@ainth
ainth / install-pre-push.sh
Last active September 3, 2015 15:01 — forked from stefansundin/install-pre-push.sh
Git pre-push hook to prevent force pushing the master branch.
#!/bin/sh
# This script will install a Git pre-push hook that prevents force pushing the master branch.
# Install in current Git repo:
# curl -fL https://goo.gl/TgTP60 | sh
# Uninstall:
# rm .git/hooks/pre-push
# in each repository that you've added this to.
GITROOT=`git rev-parse --show-toplevel 2> /dev/null`
//
// YouTubeMusic.plist
// BeardedSpice
//
// Created by Jose Falcon on 12/15/13.
// Updated by Alin Panaitiu on 3/2/18.
// Copyright (c) 2013 Tyler Rhodes / Jose Falcon. All rights reserved.
//
BSStrategy = {
@ainth
ainth / git yolo with style
Last active March 21, 2022 20:43 — forked from joeblau/git yolo
git yolo command
alias gityolo='git commit -am "DEAL WITH IT 😎" && git push -f origin master'