Skip to content

Instantly share code, notes, and snippets.

View cheeseplus's full-sized avatar
🎯
Focusing

Seth Thomas cheeseplus

🎯
Focusing
View GitHub Profile
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
  <service name='site/set-hostname' type='service' version='0'>
    <create_default_instance enabled='true'/>
    <single_instance/>
    <dependency name='network' grouping='require_all' restart_on='error' type='ser
vice'>
      <service_fmri value='svc:/milestone/network:default'/>
    </dependency>
require 'formula'
class TmuxIterm2 < Formula
url 'https://iterm2.googlecode.com/files/tmux-for-iTerm2-20120203.tar.gz'
sha1 'b0c78e3f142cc735f0518951c04eab947ca7c95b'
head 'git://tmux.git.sourceforge.net/gitroot/tmux/tmux'
depends_on 'pkg-config' => :build
depends_on 'libevent'
gem install therubyracer
Fetching: ref-1.0.2.gem (100%)
Fetching: therubyracer-0.11.4.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
checking for main() in -lpthread... yes
creating Makefile
@cheeseplus
cheeseplus / gist:5092141
Created March 5, 2013 17:30
rubyracerp-ext-v8 makefile
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
n=$(NULLCMD)
ECHO1 = $(V:1=@$n)
ECHO = $(ECHO1:0=@echo)
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
n=$(NULLCMD)
ECHO1 = $(V:1=@$n)
ECHO = $(ECHO1:0=@echo)
@cheeseplus
cheeseplus / gist:7866088
Last active December 30, 2015 18:09
test-kitchen and FreeBSD not playing nice
cheeseplus at hanuman in ~/projects/cookbooks/riak on sgt-freebsd*
$ kitchen test default-freebsd
-----> Starting Kitchen (v1.1.0)
-----> Cleaning up any prior instances of <default-freebsd-92>
-----> Destroying <default-freebsd-92>...
Finished destroying <default-freebsd-92> (0m0.00s).
-----> Testing <default-freebsd-92>
-----> Creating <default-freebsd-92>...
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-freebsd-9.2'...
@cheeseplus
cheeseplus / gist:7866128
Created December 9, 2013 01:22
kitchen log for FreeBSD boot
---- Begin output of vagrant up --no-provision --provider=virtualbox ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-freebsd-9.2'...
Progress: 10%
Progress: 20%
Progress: 30%
Progress: 50%
Progress: 70%
Progress: 90%
[default] Matching MAC address for NAT networking...
{riak_kv, [
{add_paths, [
"/usr/lib/riak-cs/lib/riak_cs-1.4.1/ebin"
]},
@cheeseplus
cheeseplus / gist:9175683
Created February 23, 2014 19:04
smartos omnibus chef fail
[health_check] Executing `find /opt/chef/ -type f | xargs ldd > ldd.out 2>/dev/null`
[health_check] *** Health Check Failed, Summary follows:
[health_check] *** The following Omnibus-built libraries have unsafe or unmet dependencies:
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/readline.so
[health_check] *** The following Omnibus-built binaries have unsafe or unmet dependencies:
[health_check] *** The following libraries cannot be guaranteed to be on target systems:
[health_check] --> /lib/64/libtermcap.so.1
[health_check] --> /lib/64/libcurses.so.1
[health_check] *** The precise failures were:
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/readline.so
## curl the raw version of this gist like this:
## curl -s -L https://gist.github.com/bixu/5316445/raw/[revision]/ruby-2.0.0-p0+on+smartos | bash
pkgin -y install build-essential libyaml readline libxml2 libxslt
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile