Skip to content

Instantly share code, notes, and snippets.

@pmorton
pmorton / channel_interface.rb
Created June 9, 2012 15:22
Channel Interface
module Channelizer
module Channels
class Base
include Channelizer::Exceptions
include Channelizer::Util::Retryable
# Executes a command on the channel
#
# @param [String] command the command to execute on the channel
# @param [Hash] options the options string to be used in executing the command
@pmorton
pmorton / Campinglist
Created June 1, 2012 00:43
Camping shipping list
Milk
Hamburger + buns
Hotdogs
Fruit
Marshmallows
Hershey's chocolate
Fancy choclate
Ham and/or turkey
Mayo
Mustard
@pmorton
pmorton / ubuntu-12.04-gems.erb
Created May 24, 2012 16:35 — forked from hmalphettes/ubuntu-12.04-gems.erb
Chef bootstrap with RVM on Ubuntu 12.04
bash -c '
UBUNTU_MIRROR=us-west-1.ec2.archive.ubuntu.com.s3.amazonaws.com
RUBY_VERSION=1.9.3-p194
echo "Updating the Ubuntu Mirror Source"
touch /etc/apt/sources.list
if [ "$?" != "0" ]; then
echo "Failed to touch /etc/apt/sources.list. are you root?"
exit 1
@pmorton
pmorton / SecurityAnalyst.md
Created April 11, 2012 15:52
Security Analyst

About Us

Are you interested in working on a brand new product in a billion dollar industry?

Do you thrive in team-based, collaborative environments where everyone contributes to the success of the company?

Would you like to work in an agile, startup-like environment, without the stress of working for an unproven company?

BIA (biaprotect.com) is a successful company that has been around for ten years and is moving into new technologies. This is an exciting time in BIA’s history, as we have an enormous opportunity for growth and innovation. Our work environment is fun and professional, with a focus on turning out a high quality product.

@pmorton
pmorton / headertest.md
Created March 22, 2012 00:34
headertest

Council Bill Number: 117014

Ordinance Number: 123495


AN ORDINANCE related to land use and zoning, amending various chapters of Title 23 of the Seattle Municipal Code (SMC); adding new sections to Chapter 23.45 and recodifying other sections in that chapter; repealing Sections 23.34.016, 23.34.022, 23.45.002, 23.45.004, 23.45.006, 23.45.009, 23.45.010, 23.45.011, 23.45.012, 23.45.014, 23.45.015, 23.45.016, 23.45.017, 23.45.018, 23.45.064, 23.45.066, 23.47A.029, 23.48.031, 23.86.020, and all the exhibits in these Sections; adding Section 23.54.040; amending provisions in SMC Title 25 regarding environmental policies, critical areas, and tree protection; establishing new classifications and standards for lowrise multifamily development; revising lowrise zoning designations and locational criteria for multifamily zones; amending the Official Land Use Map to rezone all property currently in a Lowrise or Lowrise Duplex/Triplex zone to one of three new Lowrise zones; providing for th

@pmorton
pmorton / es.sh
Created March 17, 2012 20:05 — forked from byung82/es.sh
Install ElasticSearch on CentOS 6
cd ~
sudo yum update
sudo yum java-1.6.0-openjdk.i686 -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.6.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
@pmorton
pmorton / remote_syslog
Created March 9, 2012 13:55
remote_syslog init script
#!/bin/bash
#!/bin/bash
#
# remote_syslog Starts remote_syslog.
#
#
# chkconfig: 2345 12 88
# description: Sends log files to a remote syslog server
# run remote_syslog
### BEGIN INIT INFO
@pmorton
pmorton / gist:1608773
Created January 13, 2012 21:23
mingw 32 build patch
diff -r 77b1126b3d6f src/mingwrt.mk
--- a/src/mingwrt.mk Mon Jan 02 11:28:35 2012 +0100
+++ b/src/mingwrt.mk Fri Jan 13 13:22:32 2012 -0800
@@ -9,11 +9,11 @@
$(PKG)_SUBDIR := .
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)-mingw32-dev.tar.gz
$(PKG)_WEBSITE := http://www.mingw.org/
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mingw/MinGW/BaseSystem/RuntimeLibrary/MinGW-RT/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mingw/MinGW/Base/mingw-rt/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS :=
@pmorton
pmorton / gist:1486892
Created December 16, 2011 17:00
COOK-914 Workaround
windows_zipfile "C:\Temp\Somfile" do
path "C:\\Temp\\Somfile" # This is the magic. This will overwrite the default that is currently being set by the name attribute.
source "http://somedomain.foo/somefile.zip"
action :unzip
overwrite true
end