Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean OMeara someara

View GitHub Profile
View gist:8918731
derpy:~$ cat wtf.txt
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
View gist:6179945
{
"languages": {
"ruby": {
"platform": "arm-linux-eabihf",
"version": "1.9.3",
"release_date": "2012-04-20",
"target": "arm-unknown-linux-gnueabihf",
"target_cpu": "arm",
"target_vendor": "unknown",
"target_os": "linux-eabihf",
View gist:5670945
# orchestration, yo
service "myservice" do
action node['cerkberk']['myservice']['status']
end
View gist:5266325
derpy:~$ gem search -r knife-vsphere
*** REMOTE GEMS ***
knife-vsphere (0.4.0)
https://github.com/ezrapagel/knife-vsphere
@someara
someara / gist:5254661
Created Mar 27, 2013
crying sneak a river
View gist:5254661
# top secret chef docs
# docs
https://github.com/opscode/chef-docs
# hard to find download page
http://www.opscode.com/chef/install/
# complete list of artifacts and checksums
https://opscode-omnitruck-release.s3.amazonaws.com/
View gist:5248007
execute "do a thing" do
command "/path/to/binthing args"
not_if "test -f /tmp/foobar"
only_if "ps -ef | grep bob"
end
View gist:5017999
derpy:~/kitchen/hadoop-demo/cookbooks/hadoop-demo$ berks upload
Using hadoop-demo (0.1.0) at path: '/Users/someara/kitchen/hadoop-demo/cookbooks/hadoop-demo'
Using hadoop (0.10.0) at path: '/Users/someara/src/hadoop'
Using fqdn (0.1.2) at path: '/Users/someara/src/fqdn'
Using yum (2.1.0) at path: '/Users/someara/src/yum'
Using java (1.9.2) at path: '/Users/someara/src/java'
Using emacs (0.8.4)
Using apt (1.9.0)
Using ohai (1.1.8)
Using line (0.2.9)
View gist:4999508
# Managed by Chef for <%= node['hostname'] %>
Alias / /srv/apache/myface/
<Directory /srv/apache/myface >
Options FollowSymLinks +Indexes
Allow from All
</Directory>
View gist:4999463
/* A table for myface users */
CREATE TABLE users
(
id CHAR (32) NOT NULL,
PRIMARY KEY(id),
user_name VARCHAR(64),
neck_beard INTEGER
);
View gist:4740767
% vagrant up --no-provision BOXNAME
% vagrant ssh BOXNAME
vagrant$ export http_proxy="proxy.you.com:8000"
vagrant$ export https_proxy="proxy.you.com:8000"
vagrant$ echo "10.9.8.7 cher-server.your.lap chef-server >> /etc/hosts"
vagrant$ wget -O - http://opscode.com/chef/install.sh | sudo bash
vagrant$ rm /tmp/chef*{rpm,deb}
vagrant$ exit
% vagrant package BOXNAME
% rm -rf ~/.vagrant.d/boxes/BOXNAME