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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'httparty' | |
| require 'pp' | |
| TOKEN = 'token' | |
| class Task | |
| include HTTParty |
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
| # ---------------------------------------------------------------- | |
| # general zsh configuration | |
| # ---------------------------------------------------------------- | |
| # crazy tab completion | |
| autoload -U compinit | |
| compinit | |
| # crazy mad shit | |
| setopt auto_resume auto_cd auto_pushd pushd_to_home pushd_silent pushd_minus |
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
| diff --git a/lib/fog/rackspace/servers.rb b/lib/fog/rackspace/servers.rb | |
| index fffd2fe..223b35e 100644 | |
| --- a/lib/fog/rackspace/servers.rb | |
| +++ b/lib/fog/rackspace/servers.rb | |
| @@ -10,7 +10,7 @@ module Fog | |
| load "fog/rackspace/requests/servers/delete_server.rb" | |
| load "fog/rackspace/requests/servers/get_flavors.rb" | |
| load "fog/rackspace/requests/servers/get_images.rb" | |
| - load "fog/rackspace/requests/servers/get_server_detail.rb" | |
| + load "fog/rackspace/requests/servers/get_server_details.rb" |
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
| # DO NOT MODIFY THIS FILE | |
| module Bundler | |
| file = File.expand_path(__FILE__) | |
| dir = File.dirname(file) | |
| ENV["GEM_HOME"] = dir | |
| ENV["GEM_PATH"] = dir | |
| ENV["PATH"] = "#{dir}/../bin:#{ENV["PATH"]}" | |
| ENV["RUBYOPT"] = "-r#{file} #{ENV["RUBYOPT"]}" |
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
| 1 + 2 = 3 |
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 'foo' |
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
| 1 + 2 = 3 |
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
| hiro➤ file vendor/gems/gems/nokogiri-1.3.3/ext/nokogiri/nokogiri.bundle | |
| vendor/gems/gems/nokogiri-1.3.3/ext/nokogiri/nokogiri.bundle: Mach-O 64-bit bundle x86_64 | |
| hiro➤ uname -m | |
| i386 |
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
| define :foobar do | |
| execute "something" do | |
| command "rm -rf #{params[:name]}" | |
| end | |
| end | |
| foobar "/" do | |
| only_if { false } | |
| end |
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 Collector | |
| @@dependencies = [] | |
| def self.collect(str) | |
| collector = new | |
| collector.instance_eval(str) | |
| collector | |
| end | |
| def initialize |