Skip to content

Instantly share code, notes, and snippets.

View retr0h's full-sized avatar
💭
(✖╭╮✖)

נυαη נυαηѕση retr0h

💭
(✖╭╮✖)
  • Los Angeles, CA
  • 23:33 (UTC -12:00)
View GitHub Profile
@retr0h
retr0h / gist:6647272
Created September 21, 2013 04:40 — forked from mloberg/gist:3750653
#!/bin/sh
CHECKSUM=$1
FILE=$2
if [[ -z "$CHECKSUM" ]]; then
echo "Usage: $0 md5 file"
exit 1
elif [[ -z "$FILE" ]]; then
echo "Usage: $0 md5 file"
#
# Author:: Joshua Timberman (<joshua@opscode.com>)
# Copyright:: Copyright (c) 2011 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@retr0h
retr0h / gist:1164269
Created August 23, 2011 03:23 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: Architect for AT&T
Favorite Python project: OpenStack (nova/glance)
Favorite Conference: Farmhouse Conf (http://farmhouse.la/conf)
Python Experience Level: Intermediate to Advanced
::AppConfig = ApplicationConfiguration.new("main.yml", "main_local.yml")
AppConfig.use_environment!(Rails.env)
## main.yml
defaults: &defaults
one: won
two: too
web_service:
url: http://foo
port: 80
@retr0h
retr0h / ghkey.rb
Created June 18, 2009 05:00 — forked from fcoury/ghkey.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'octopi'
require 'choice'
include Octopi
Choice.options do
header ''
@retr0h
retr0h / gist:66008
Created February 17, 2009 21:47 — forked from amikula/gist:65995
# Module for re-running commands from the history in irb and its ilk (script/console)
# Usage:
# history => view the history
# history 7 => rerun line 7 in the history
# history /foo/ => rerun the last line in the history matching /foo/
#
# Just add this code into your ~/.irbrc.
# NOTE: Readline support is required for this to work.
module HistoryRepeats
class << self
@retr0h
retr0h / gist:32421
Created December 5, 2008 18:00 — forked from jashmenn/gist:6206
# == WHAT
# Simple script for growl notifications in irssi
#
# == WHO
# Nate Murray 2008
#
# == CONFIG
# /SET growl_on_regex [regex]
# /SET growl_channel_regex [regex]
#