Skip to content

Instantly share code, notes, and snippets.

Remember that in addition to the prior instructions, when writing queries and code examples, please adhere to the following guidelines:
General:
- Database access is done using Ash 3.0/AshPostgres resources
- Don't use Ash resources for in memory data structures unless specified
- Only implement coding standards for new/modified code unless explicitly specified
- Minimal comments (only notable/counter-intuitive), no module level or function level docs
- Always Remove any unused aliases
@pinetops
pinetops / centos_rvm_chef_bootstrap.rb
Created November 30, 2011 13:04
Centos/RVM chef bootstrap template
# Based on ubuntu version from http://www.agileweboperations.com/chef-rvm-ruby-enterprise-edition-as-default-ruby
# Tested on Centos 5.6
bash -c '
if [ ! -f /usr/local/bin/chef-client ]; then
# yum install -y git curl gcc gcc-c++ zlib-devel openssl-devel readline-devel flex bison libxml2-devel libxslt-devel zlib-devel
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel git
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
(
cat <<'EOP'