This file contains hidden or 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
| #!/bin/bash | |
| curl -# $* | ruby -e "require 'rubygems';require 'json';require 'awesome_print'; ap JSON.parse(STDIN.gets)" |
This file contains hidden or 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
| Noah Coffey (@noahwesley) built a great little tool (http://quitgodaddy.com) to help people | |
| move their domains off GoDaddy by reminding them before the expiration dates. | |
| I have a whole bunch of domains on 1&1 (another horrible company) and wanted to use Noah's tool. | |
| He was kind enough to provide the proper format and I wrote a quick script to pull all my domains | |
| off the 1&1 admin page. | |
| How to use: | |
| Navigate to your domains page. Select 100 domains on a page. You'll have to do the following |
This file contains hidden or 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
| #!/bin/bash | |
| apt-get install ssh build-essential | |
| wget http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise_1.8.7-2011.03_i386_ubuntu10.04.deb | |
| dpkg -i ruby-enterprise_1.8.7-2011.03_i386_ubuntu10.04.deb | |
| gem install chef --no-ri --no-rdoc |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Google Maps Quickstart</title> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
| <style type="text/css"> | |
| html { height: 100% } | |
| body { height: 100%; margin: 0px; padding: 0px } | |
| #map_canvas { height: 100% } | |
| </style> |
This file contains hidden or 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
| require File.dirname(__FILE__) + '/config/environment' | |
| run ActionController::Dispatcher.new |
This file contains hidden or 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
| class GenerateAnonymousUsers < ActiveRecord::Migration | |
| def self.up | |
| User.reset_column_information | |
| puts Order.where(:user_id => nil).where(:state != "balance_due").count.to_s + " remaining..." | |
| Order.where(:user_id => nil).where(:state != "balance_due").each do |order| | |
| user = User.anonymous! | |
| user.email ||= order.email | |
| puts user.login | |
| user.save! | |
| order.update_attribute_without_callbacks("user_id", user.id) |
NewerOlder