Wes Winham winhamwr@gmail.com
There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.
#!/usr/bin/env | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install git-core -y | |
sudo apt-get install emacs23 emacs-goodies-el -y | |
cd /tmp | |
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb |
import sublime, sublime_plugin, subprocess | |
class TidyXmlCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
if self.view.sel()[0].size() > 0: | |
self.cursor = None | |
for region in self.view.sel(): | |
self.format(edit, region) | |
else: | |
self.cursor = self.view.sel()[0] |
;;; http://pastie.org/paste/asset/188795/puppet-mode.el | |
;;; | |
;;; puppet-mode.el | |
;;; | |
;;; Author: lutter | |
;;; Description: A simple mode for editing puppet manifests | |
;;; | |
(defconst puppet-mode-version "0.1") |
#!/usr/bin/env | |
# setup_base_ruby_box.sh | |
sudo apt-get update -y | |
sudo apt-get install build-essential zlib1g-dev libssl-dev libreadline-dev git-core curl libyaml-dev libcurl4-dev libsqlite3-dev apache2-dev -y | |
sudo rm -rf /opt/vagrant_ruby | |
curl --remote-name http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar zxf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194/ | |
./configure | |
make |
Wes Winham winhamwr@gmail.com
There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.
# Original from http://snippets.dzone.com/posts/show/4468 by MichaelBoutros | |
# | |
# Optimized version which uses to_yaml for content creation and checks | |
# that models are ActiveRecord::Base models before trying to fetch | |
# them from database. | |
namespace :db do | |
namespace :fixtures do | |
desc 'Dumps all models into fixtures.' | |
task :dump => :environment do | |
models = Dir.glob(RAILS_ROOT + '/app/models/**.rb').map do |s| |