- ice_nine: Deep freeze ruby objects
- Values: Simple immutable value objects for ruby
- immutable_attributes: specify attributes within an ActiveRecord model that can be set but not modified
- hamster: Efficient, Immutable, Thread-Safe Collection classes for Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remote_file "/tmp/nix-1.5.1-x86_64-linux.tar.bz2" do | |
source "http://hydra.nixos.org/build/4253979/download/1/nix-1.5.1-x86_64-linux.tar.bz2" | |
notifies :run, "execute[untar nix]", :immediately | |
end | |
execute "untar nix" do | |
cwd "tmp" | |
command "tar -jxf /tmp/nix-1.5.1-x86_64-linux.tar.bz2 -C /" | |
action :nothing | |
notifies :run, "execute[nix-finish-install]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"username": "YOUR_JIRA_NAME", "pw": "YOUR_JIRA_PW"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: apache | |
# Recipe:: default | |
# | |
# Copyright 2012, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
package "apache2" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
recipe_path = ARGV[0] | |
if recipe_path.nil? | |
STDERR.puts "usage: chef-apply RECIPE_FILE" | |
exit 1 | |
end | |
recipe_path = File.expand_path(recipe_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default[:graphite][:storage_aggregation] => [ | |
{ | |
:sum => { | |
:pattern=> "\.count$", | |
:xFilesFactor => "0", | |
:aggregationMethod => "sum" | |
} | |
}, | |
{ | |
:avg => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libs = ARGV.size == 0 ? all_gems : ARGV | |
list = | |
libs. | |
forkify(16){|lib| puts "#{ lib }..."; [lib, polluted_by(lib)]}. | |
sort_by{|pair| pair.last} | |
list.each do |lib, polluted| | |
puts "polluted_by('#{ lib }') #=> #{ polluted }" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/source/javascripts/github.js b/source/javascripts/github.js | |
index 678775a..bc4c9bd 100644 | |
--- a/source/javascripts/github.js | |
+++ b/source/javascripts/github.js | |
@@ -3,22 +3,22 @@ var github = (function(){ | |
var i = 0, fragment = '', t = $(target)[0]; | |
for(i = 0; i < repos.length; i++) { | |
- fragment += '<li><a href="'+repos[i].url+'">'+repos[i].name+'</a><p>'+repos[i].description+'</p></li>'; | |
+ fragment += '<li><a href="'+repos[i].html_url+'">'+repos[i].name+'</a><p>'+repos[i].description+'</p></li>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookbook "java" do | |
configuration("openjdk") { runtimes [] } | |
configuration("oracle") { runtimes [] } | |
runtimes [] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# # Mac OS X 10.7/10.8 (Lion/Mountain Lion) Bootstrapping | |
# | |
# ## Pre-requisites | |
# | |
# 1. Set your hostname: In **System Preferences** go to **Sharing** and enter | |
# the name in **Computer Name** | |
# 2. Run **Software Update** and reboot if necessary |