Skip to content

Instantly share code, notes, and snippets.

View adambutler's full-sized avatar

Adam Butler adambutler

View GitHub Profile

Keybase proof

I hereby claim:

  • I am adambutler on github.
  • I am adamb (https://keybase.io/adamb) on keybase.
  • I have a public key whose fingerprint is F8AB 8324 5559 9F51 061C 3978 15A6 5764 AFB5 E6FB

To claim this, I am signing this object:

@adambutler
adambutler / capistrano.md
Last active November 28, 2016 15:16
Gotchas

Assets aren't precompiling on staging / production

In your cap file check that:

set :assets_roles, [:web, :app]            # Defaults to [:web]

Prerequisites

  • Have you checked the wiki?
  • Have you checked for existing issues / pull requests?
  • Add a priority label

Description

[Description of the bug, feature or suggestion]

var presses = 0;
setColor = function(red, green, blue) {
analogWrite(A8, red);
analogWrite(A5, red);
analogWrite(B4, green);
analogWrite(A6, green);
analogWrite(B6, blue);
#!/bin/bash
set -e
TAR=git-lfs-linux-amd64-1.2.0.tar.gz
URL=https://github.com/github/git-lfs/releases/download/v1.2.0/$TAR
if ! [ -e $SEMAPHORE_CACHE_DIR/$TAR ]; then (cd $SEMAPHORE_CACHE_DIR; wget $URL); fi
sudo mkdir -p /opt/git-lfs
sudo tar -xzf $SEMAPHORE_CACHE_DIR/$TAR -C /opt/git-lfs --strip=1
{
"Version": "2016-04-27",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
},
{
"Effect": "Allow",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
i = 100
z = []
i.times do
a = []
while true
c = (0...5).map { (65 + rand(26)).chr }.join
break if a.include? c
var divider, mappedCoords, an, bn, cn, dn, en, fn;
var ref0 = [0, 0]; // upper left corner
var ref1 = [0, 1024]; // lower left corner
var ref2 = [1280, 0]; // upper right corner
var ref3 = [1280, 1024]; // lower right corner
// Tomap -> which are mapped to [ref0, ref1, ref2, ref3, ref4]
var tomap0 = [0, 0]; // upper left corner
var tomap1 = [0, 768]; // lower left corner
@adambutler
adambutler / readme.md
Last active August 29, 2015 14:25
whatthefuckhaveibeenworkingon.sh

example

Install

Add the whatthefuckhaveibeenworkingon function into your .zshrc / .bashrc file.

Usage

whatthefuckhaveibeenworkingon