Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am clayton on github.
  • I am claytonlz (https://keybase.io/claytonlz) on keybase.
  • I have a public key ASAt1nwofY68INXpqvbj7EAYtv4CLNi9hzkLEYsQ1vUzHgo

To claim this, I am signing this object:

@clayton
clayton / gist:648e8bd5b768cd513a28
Created July 12, 2015 07:55
Building on SOLID foundations - Steve Freeman & Nat Pryce - Breakout Session from Software Architect 2013
https://www.youtube.com/watch?v=6Bia81dI-JE
Building on SOLID foundations - Steve Freeman & Nat Pryce
10:00 - Ravioli Code
12:15 - Spaghetti and Meatballs
* Brittle event flow tying objects together
13:30 - Tangle of Wires
* You can wiring your objects together, using DI, but everything
is just tangled together with all of this wiring between objects
@clayton
clayton / gist:6527445
Created September 11, 2013 18:07
nginx log rotation for passenger
/usr/local/nginx/logs/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
@clayton
clayton / ffmpeg-install.sh
Created August 9, 2013 18:55
Install FFMPEG on OS X with HomeBrew to convert Mp4 to WebM
# Installation
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid
# Easy Peasy
ffmpeg -i video.mp4 video.webm
@clayton
clayton / my_acceptance_test_spec.rb
Created April 14, 2011 18:21
Supporting gist for
# https://github.com/thoughtbot/capybara-webkit/issues/14
feature "My Feature", "Description", :js => true do
background do
# some setup
visit my_starting_path
end
context "Story Name" do
context "When I follow path A" do
Process: webkit_server [46084]
Path: /Users/integrum/.rvm/gems/ruby-1.9.2-p136@bookmans/gems/capybara-webkit-0.1.6/bin/webkit_server
Identifier: webkit_server
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ruby [46071]
Date/Time: 2011-04-14 11:05:21.759 -0700
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6
//
// dice.h
// craps
//
// Created by Clayton Lengel-Zigich on 7/26/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
@interface Dice : NSObject
desc "Show ps"
task :ps do
run 'ps ax' do | channel, stream, data |
puts data if stream == :out
if stream == :err
puts "[err: #{channel[:host]}] #{data}"
break
end
end
end
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
- Afghanistan
- Aland Islands
- Albania
- Algeria
- American Samoa
- Andorra
- Angola
- Anguilla
- Anonymous Proxy
- Antarctica