Skip to content

Instantly share code, notes, and snippets.

@atonse
atonse / chef_solo_bootstrap.sh
Last active December 11, 2015 09:58 — forked from ryanb/chef_solo_bootstrap.sh
Ubuntu 12.04 LTS, Ruby 1.9.3p374
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev lib64readline-gplv2-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p374.tar.gz
tar -xvzf ruby-1.9.3-p374.tar.gz
cd ruby-1.9.3-p374/
./configure --prefix=/usr/local
make
make install
/**
This groovy script will take a CSV file that represents the data
in a database. The first row should be the name of the columns and
all other rows should represent the data you wish to insert.
*/
// Setup basic information
numColumns = 6
tableName = "TABLE_NAME"