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
| var http = require('http'), | |
| faye = require('faye'); | |
| var server = http.createServer(), | |
| bayeux = new faye.NodeAdapter({mount: '/'}); | |
| bayeux.attach(server); | |
| server.listen(process.env.PORT); |
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
| namespace :remote_shell_agent do | |
| module Faye | |
| class Transport::Http < Transport | |
| def request(envelopes) | |
| content = encode(envelopes) | |
| params = build_params(@endpoint, content) | |
| request = create_request(params) |
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
| source 'http://rubygems.org' | |
| gem 'httparty' | |
| gem 'nokogiri' |
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 bash | |
| SUBJECT="DVD is done ripping" | |
| EMAIL="email@gmail.com" | |
| EMAILMESSAGE="./emailmessage.txt" | |
| while [ 1 ] | |
| do | |
| echo "Waiting for new disk.." |
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
| package main | |
| import ( | |
| "bufio" | |
| "code.google.com/p/go.net/websocket" | |
| "github.com/kr/pty" | |
| "io" | |
| "flag" | |
| "fmt" | |
| "log" |
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 'cfoundry' | |
| require 'json' | |
| endpoint = 'https://api.run.pivotal.io' | |
| app_name = 'my_app' | |
| client = CFoundry::Client.get endpoint | |
| client.login :username=> ENV['cf_user'], :password => ENV['cf_pass'] |
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
| source 'https://rubygems.org' | |
| gem 'rack' |
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 'json' | |
| require 'uri' | |
| require 'bundler' | |
| require 'fog' | |
| Bundler.require | |
| Excon.defaults[:ssl_verify_peer] = false |
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 'nokogiri' | |
| require 'open-uri' | |
| require 'net/http' | |
| require 'uri' | |
| require 'fileutils' | |
| server_range = (13..20) |
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 'rbvmomi' | |
| vcenter_host = ARGV[0] | |
| username = ARGV[1] | |
| password = ARGV[2] | |
| dc_name = ARGV[3] | |
| rp_name = ARGV[4] |