Skip to content

Instantly share code, notes, and snippets.

View someara's full-sized avatar

Sean OMeara someara

View GitHub Profile
derpy:~$ cat wtf.txt
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
{
"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",
# orchestration, yo
service "myservice" do
action node['cerkberk']['myservice']['status']
end
derpy:~$ gem search -r knife-vsphere
*** REMOTE GEMS ***
knife-vsphere (0.4.0)
https://github.com/ezrapagel/knife-vsphere
@someara
someara / gist:5254661
Created March 27, 2013 14:37
crying sneak a river
# 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/
execute "do a thing" do
command "/path/to/binthing args"
not_if "test -f /tmp/foobar"
only_if "ps -ef | grep bob"
end
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)
# Managed by Chef for <%= node['hostname'] %>
Alias / /srv/apache/myface/
<Directory /srv/apache/myface >
Options FollowSymLinks +Indexes
Allow from All
</Directory>
/* A table for myface users */
CREATE TABLE users
(
id CHAR (32) NOT NULL,
PRIMARY KEY(id),
user_name VARCHAR(64),
neck_beard INTEGER
);
@someara
someara / gist:4740767
Last active December 12, 2015 07:58 — forked from jtimberman/gist:3088517
% 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