Skip to content

Instantly share code, notes, and snippets.

namenode = search(:node, "chef_environment:#{node.chef_environment} AND role:hadoop_namenode_server").first
vars = { :options => node[:hadoop][:core_site] }
vars[:namenode_ip] = namenode[:ipaddress] if namenode
template "/etc/hadoop-#{node[:hadoop][:version]}/conf.chef/core-site.xml" do
mode 0750
owner "hdfs"
group "hdfs"
action :create
# Paul Rudd isn't a douchebag
#
# load up celery man please
# can i get a printout of oyster smiling?
# do we have any new sequences?
# can i see a flarhgunnstow?
module.exports = (robot) ->
robot.respond /load up celery man please/i, (msg) ->
msg.send "http://www.simpleindustries.com/wp-content/uploads/2010/05/paul_sequence1.png"
# http://twistedmind.com/bundle-exec-bash-shortcut
bundle_commands=( rake spec rspec cucumber cap watchr rails rackup )
function run_bundler_cmd () {
if [ -e ./Gemfile ]; then
echo "bundle exec $@"
bundle exec $@
else
echo "$@"
$@
fi
@ivey
ivey / whats_so_cool_about_mlkshk.txt
Created July 5, 2011 14:11
What's so cool about mlkshk?
<ivey> it's a nice photo sharing site, but has just enough community
stuff (stars, re-posting) and lightweight groups that it's
hitting the sweet spot
<ivey> and there's no sense of "only post your own stuff" like flickr
<ivey> so when you see something funny or pretty or awesome or weird,
you can toss it up on mlkshk
At GoPollGo we're changing the way people ask for information on the web, with an innovative data-driven approach to polling. We make heavily intensive reporting and analytics tools simple and easy, & we're looking for relentlessly resourceful hackers to join our team and shape the future.
We're primarily a Ruby environment, using all the modern tools you'd expect, like jQuery and Git. Since we deal with a ton of data, we also use $BIG_DATA_TECH and Protovis to display it.
We are an awesome company with an excellent set of products, and we've built an awesome culture. We are people who can get stuff done and have a good time in the process. We just got some great office space (~1000 sq ft) on California Avenue in Palo Alto as well.
This is a full-time salaried position with generous options. You’ll be getting in at the ground floor as one of our first employees. Come join our team with backgrounds at TechCrunch, Lockheed Martin, HP, Data Domain, Storwize, to name a few.
This position is on-site in Palo Al
bash-3.2$ mkdir a
bash-3.2$ mkdir b
bash-3.2$ mkdir a/a1
bash-3.2$ mkdir a/a2
bash-3.2$ mkdir a/a3
bash-3.2$ touch a/a1/f1
bash-3.2$ touch a/a1/f2
bash-3.2$ touch a/a1/f3
bash-3.2$ touch a/a2/f1
bash-3.2$ touch a/a2/f2
(defun intelligent-close ()
"quit a frame the same way no matter what kind of frame you are on"
(interactive)
(if (eq (car (visible-frame-list)) (selected-frame))
;;for parent/master frame...
(if (> (length (visible-frame-list)) 1)
;;close a parent with children present
(delete-frame (selected-frame))
;;close a parent with no children present
(when (y-or-n-p "Quit emacs? ") (save-buffers-kill-emacs)))
From e1812b240cb46f43697002360255e722d13334c6 Mon Sep 17 00:00:00 2001
From: Michael D. Ivey <ivey@gweezlebur.com>
Date: Wed, 16 Feb 2011 22:11:33 -0600
Subject: [PATCH] Handle nickserv'd accounts and private channels
---
src/douglbutt.conf-sample | 2 ++
src/douglbutt/_douglbutt.py | 9 +++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
[alias]
st = status
stat = status
ci = commit
co = checkout
pick = cherry-pick
lh = !git-lh
sh = !git-sh
lg = log -p
@ivey
ivey / foo.php
Created November 24, 2010 18:19
<?php
$a = "test";
$b = "another";
$c = "just";
print "this is $c $b $a";
?>