Skip to content

Instantly share code, notes, and snippets.

View owenkellogg's full-sized avatar
🛩️
Deep house disco, hyper-efficient money.

Owen Kellogg owenkellogg

🛩️
Deep house disco, hyper-efficient money.
  • Andorra
View GitHub Profile
@owenkellogg
owenkellogg / whiteboardCleaner.md
Created August 16, 2019 10:58 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

---
- name: Deploy new site release
user: deployer
hosts: all
tasks:
- name: Fetch repo updates
git: >
repo=git@github.com:my/repo.git
@owenkellogg
owenkellogg / Berksfile
Last active August 29, 2015 14:07 — forked from amoslanka/Berksfile
vagrant, chef, berkshelf, graphite, statsd
site :opscode
cookbook 'apt'
cookbook 'statsd', git: 'https://github.com/librato/statsd-cookbook.git'
cookbook 'graphite', git: 'https://github.com/hw-cookbooks/graphite.git'
#!/usr/bin/env ruby
require 'open-uri'
require 'JSON'
require 'digest/sha2'
require 'pry'
require 'bigdecimal'
require 'bitcoin' # Because I need to cheat every now and then
# Usage:
# gem install pry json ffi ruby-bitcoin
.button{
width: 65%;
margin: 100px 15% 20px 15%;
font-size: 3em;
background: white;
color: #2e3242;
text-align: center;
padding: 2.5%;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
$(document).ready(function(){
window.RecentlyViewed = (function(){
recent_ads = (function(){
var list = [];
$.each( $("#recently_viewed li"), function(i, li){
list.push( new RecentAd($(li).attr('id')) );
});
/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2010, IBM Corporation
*/
package com.phonegap;
import java.io.BufferedReader;
@owenkellogg
owenkellogg / spec_helper.rb
Created April 16, 2012 18:58 — forked from sethbro/spec_helper.rb
Rails unit, functional and integration tests in Minitest spec format.
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rubygems'
gem 'minitest'
require 'minitest/autorun'
require 'action_controller/test_case'
require 'miniskirt'
require 'capybara/rails'
@owenkellogg
owenkellogg / gist:1431591
Created December 4, 2011 23:09 — forked from Gregg/gist:968534
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this screencast if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent then a phone call or screen sharing.