Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View someara's full-sized avatar

Sean OMeara someara

View GitHub Profile
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
root@localhost:~# shef -s
loading configuration: none (standalone shef session)
Session type: solo
Loading.[2013-01-19T19:22:31+00:00] INFO: Run List is []
[2013-01-19T19:22:31+00:00] INFO: Run List expands to []
done.
This is shef, the Chef shell.
Chef Version: 10.18.0
http://www.opscode.com/chef
@someara
someara / gist:4552006
Created January 16, 2013 23:28
I got 99 resources in my converge run.
99/99: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_,------,
99/99: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_| /\_/\
0/99: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-^|__( - .-)
0/99: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- "" ""
@someara
someara / gist:4449461
Created January 4, 2013 02:38
ohai slackberry
root@slackberry:~# time ohai
{
"languages": {
"ruby": {
"platform": "arm-linux-eabi",
"version": "1.9.3",
"release_date": "2012-04-20",
"target": "arm-slackware-linux-gnueabi",
"target_cpu": "arm",
"target_vendor": "slackware",
template "/tmp/file1" do
action :create
# mode "00666"
notifies :create, 'template[/tmp/file2]'
end
template "/tmp/file2" do
action :nothing
notifies :run, 'execute[hack the planet]'
end
#
# Cookbook Name:: line
# Recipe:: default
#
# Copyright 2008-2009, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
[root@myface vagrant]# chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json --why-run --color
Starting Chef Client, version 10.16.2
Compiling cookbooks
.................................done.
Converging 108 resources
108/108: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-__,------,
108/108: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-__| /\_/\
0/108: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_~|_( - .-)
0/108: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ "" ""