Skip to content

Instantly share code, notes, and snippets.

View KBalderson's full-sized avatar

Kyle Balderson KBalderson

  • Chagrin Falls, OH
View GitHub Profile
@KBalderson
KBalderson / Production Application Warning.user.js
Created April 22, 2019 22:47
Production Application Warning.user.js
// ==UserScript==
// @name Production Application Warning
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://order.universitytees.com/*
// @match https://order.717ink.com/*
// @match https://order.onpointpromos.com/*
// @match http://sosa.717ink.com/*
@KBalderson
KBalderson / README.md
Last active February 7, 2018 16:23
Muck - A simple bash script to run your Procfile in tmux

Muck

Prerequisites

  • tmux: brew install tmux
  • a .muck configuration file

Configuration

~/.muck Should be a YAML file.

Keybase proof

I hereby claim:

  • I am kbalderson on github. * I am kbalderson (https://keybase.io/kbalderson) on keybase. * I have a public key ASCLkaE2Ejqrtk8QfQN9clws2Susmj7jr-BsjlTTaLjvBAo To claim this, I am signing this object:
@KBalderson
KBalderson / script.js
Created January 26, 2017 18:46
Production Application Warning Box
// ==UserScript==
// @name Production Application Warning
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://order.universitytees.com/*
// @match https://order.717ink.com/*
// @match https://order.onpointpromos.com/*
// @match http://sosa.717ink.com/*
@KBalderson
KBalderson / README.md
Last active April 15, 2016 15:33
Getting Rails Records by name in Cucumber (even if they don't have a name)

Usage

Given(/^... named "(.*)"$/) |name|
  Thing.create name: name
  add_named_record name: name, record: thing
end

Given(/^... named "(.*)" has stuff$/) |name|
 thing = fetch_named_record name: name
@KBalderson
KBalderson / wait_for_angular.rb
Created February 10, 2016 15:22
Wait for angular (1.x) http requests to finish, based in part, on thoughtbot's approach to jQuery ajax requests.
# features/support/wait_for_angular.rb
module WaitForAngularSync
def wait_for_angular_sync
Timeout.timeout(Capybara.default_max_wait_time) do
loop until finished_all_angular_async_requests?
end
end
def finished_all_angular_async_requests?
@KBalderson
KBalderson / 1 README.md
Last active November 8, 2015 05:30
Use DevDocs.io as the documentation URL for investigate.vim

Steps

  1. Install investigate.vim
  2. Append the contents of the included .vimrc to your own .vimrc file
  3. Profit!
defaults: &defaults
host: 192.168.33.30:9200
development:
<<: *defaults
test:
<<: *defaults
production:
@KBalderson
KBalderson / gist:10754130
Created April 15, 2014 18:08
Movable Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "opscode-ubuntu-12.04"
config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box"
module Jekyll
class LessConverter < Converter
safe true
priority :high
def setup
return if @setup
require 'less'
@setup = true
rescue LoadError