Skip to content

Instantly share code, notes, and snippets.

@chetan
chetan / yardoc_cheatsheet.md
Last active November 4, 2024 05:38
YARD cheatsheet
@sferik
sferik / install-ruby-2.0.0.sh
Created November 5, 2012 02:28
Instructions to install on Ruby 2.0.0 on Mac OS X with homebrew
#!/usr/bin/env sh
brew update
brew install rbenv
brew install ruby-build
brew install openssl
CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` rbenv install 2.0.0-preview1
@hh
hh / user.rb
Created February 12, 2013 00:34
example of created an encrypted data bag contents
require 'chef/knife'
module KnifePlugins
class User < Chef::Knife
deps do
require 'chef/search/query'
require 'chef/shef/ext'
end
banner "knife user"