Skip to content

Instantly share code, notes, and snippets.

@jblaine
jblaine / gist:5554618
Created May 10, 2013 14:08
Parenting
Me: "What did you do at the playground? What games did you play?"
Sophia: "I don't know."
Me: "You were playing with Dutchie under the pirate ship, mama was saying...?"
Sophia: "Yeah!"
Jessica: "What were you guys doing under there?"
Sophia: "I don't know..."
Jessica: "It looked like you were sleeping or playing a sleeping game..."
Sophia: "Yeah!"
Jessica: "What was that game called?"
Sophia: "Sleeping under the pirate ship."
# mounts/recipes/default.rb
if node['platform'] == "solaris2"
raise "#{cookbook_name}::#{recipe_name} no mount resource provider for Solaris (bug CHEF-2824)"
end
#!/bin/sh
some_command &&
some-other-command-too &&
last_command
default_attributes (
:yum => {
:proxy => "http://gatekeeper.our.org:80"
},
:netgroups => {},
:openssh => {
:server => {
:x11_forwarding => "yes"
}
}
@jblaine
jblaine / gist:4676267
Created January 30, 2013 19:55
RHEL5 postfix
Installing : postfix 3/3
postfix: fatal: file /etc/postfix/main.cf: parameter mail_owner: unknown user name value: postfix
warning: user postfix does not exist - using root
warning: user postfix does not exist - using root
warning: user postfix does not exist - using root
warning: user postfix does not exist - using root
warning: user postfix does not exist - using root
warning: user postfix does not exist - using root
warning: user postfix does not exist - using root
warning: user postfix does not exist - using root
@jblaine
jblaine / gist:4638352
Created January 25, 2013 22:07
MD code GH render bug

According to http://daringfireball.net/projects/markdown/syntax, a code block ends when it encounters a line with no leading whitespace. As you can see below, github is clumping consecutive code blocks together when separated by a blank line with no leading space.

Some code. There should be a separation between this line and the other code block below.

Some code. The blank line above has no leading space in the editor.

@jblaine
jblaine / gist:4541572
Created January 15, 2013 20:07
for Dean and Justin
Broadcast Message at 15:04 ...
*** Shutdown message for geeky from cookson@geeky ***
geeky going down in 5 minutes
...The Internet is rebooting to clear Derek's Butt off of Jeremy's head.
Be right back.
Broadcast Message at 15:08 ...
usage: qstat [options]
[-ext] view additional attributes
[-explain a|c|A|E] show reason for c(onfiguration ambiguous), a(larm), suspend A(larm), E(rror) state
[-f] full output
[-F [resource_attributes]] full output and show (selected) resources of queue(s)
[-g {c}] display cluster queue summary
[-g {d}] display all job-array tasks (do not group)
[-g {t}] display all parallel job tasks (do not group)
[-help] print this help
[-j job_identifier_list ] show scheduler job information
@jblaine
jblaine / gist:4531928
Created January 14, 2013 17:57
collectd 5.2.0 build fail - Ubuntu 12
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -g -O2 -c -o libcollectdclient_la-network_buffer.lo `test -f 'network_buffer.c' || echo './'`network_buffer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -g -O2 -c network_buffer.c -fPIC -DPIC -o .libs/libcollectdclient_la-network_buffer.o
network_buffer.c:109:3: error: unknown type name ‘gcry_cipher_hd_t’
network_buffer.c: In function ‘have_gcrypt’:
network_buffer.c:131:3: error: implicit declaration of function ‘gcry_control’ [-Werror=implicit-function-declaration]
network_buffer.c:131:17: error: ‘GCRYCTL_SET_THREAD_CBS’ undeclared (first use in this function)
network_buffer.c:131:17: note: each undeclared identifier is reported only once for each function it appears in
root@ip-10-212-75-158:~# export JAVA_HOME=/opt/java/jdk1.7.0_10
root@ip-10-212-75-158:~# ls $JAVA_HOME
bin include LICENSE release THIRDPARTYLICENSEREADME.txt
COPYRIGHT jre man src.zip
db lib README.html THIRDPARTYLICENSEREADME-JAVAFX.txt
root@ip-10-212-75-158:~# service hadoop-0.20-mapreduce-tasktracker start
+======================================================================+
| Error: JAVA_HOME is not set and Java could not be found |
+----------------------------------------------------------------------+
| Please download the latest Sun JDK from the Sun Java web site |