Skip to content

Instantly share code, notes, and snippets.

View wkf's full-sized avatar
🤝

Will Farrell wkf

🤝
View GitHub Profile
@wkf
wkf / gist:5658578
Last active November 16, 2023 09:22
Use gstreamer to generate raw LPCM audio files
requirements:
brew: http://mxcl.github.io/homebrew/
xquartz: https://xquartz.macosforge.org/landing/
brew install mad
brew install gstreamer
brew install gst-plugins-base
brew install gst-plugins-good
brew install gst-plugins-ugly

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@wkf
wkf / gist:6582275
Created September 16, 2013 15:35
Trigonometry in stylus
pi = 3.14159265359
factorial(n)
if n is 1
n
else
n * factorial(n - 1)
radians(n)
n * pi / 180
require 'rubygems'
require 'fog'
require 'zerigo_dns'
# A simple script to help you leave zerigo behind
# it relies on the excellent fog library http://fog.io/dns/
# It copies all of your Zerigo zones to DNSimple
# It is currently targeting DNSimple but fog supports many other
@wkf
wkf / .vimrc
Created January 12, 2014 19:31
My .vimrc
set nocompatible " be iMproved
set shell=/bin/bash
set backspace=indent,eol,start
if $TERM == "xterm-256color" || $TERM == "screen-256color" || $COLORTERM == "gnome-terminal"
set t_Co=256
endif
set list
set listchars=tab:>-,trail:.,extends:#,nbsp:.
# name: wkf
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for FISH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
## Set this options in your config.fish (if you want to :])
set nocompatible " be iMproved
set shell=/bin/bash
set backspace=indent,eol,start
if $TERM == "xterm-256color" || $TERM == "screen-256color" || $COLORTERM == "gnome-terminal"
set t_Co=256
endif
set list
set listchars=tab:>-,trail:.,extends:#,nbsp:.
_ = require('lodash')
_.mixin({
acts: function(object, mixin) {
_.extend(object.prototype, mixin.prototype);
}
});
function Thing() {}
section: screens
desktop:
laptop:
end
section: aliases
desktop:
Williams-Mac-Pro.local
laptop:
will.local
#!/usr/bin/env ruby
require 'logger'
require 'timeout'
def trap_signal(s)
Signal.trap s do
Signal.trap('INT', 'IGNORE')
Signal.trap('TERM', 'IGNORE')
raise Interrupt