Skip to content

Instantly share code, notes, and snippets.

View densone's full-sized avatar

Sean Carey densone

View GitHub Profile
File.open("/etc/dat_list", "r") do |dat_file|
dat_file.each do |s3_path|
exec "s3cmd rm s3://puppies/#{s3_path}"/
end
end
2012-11-09 17:02:16.602 UTC [error] <0.6140.0> webmachine error: path="/bcx-development/"
{error,{error,function_clause,[{riak_cs_s3_response,api_error,[<<"{\"phase\":0,\"error\":\"undef\",\"input\":\"{ok,{r_object,<<48,111,58,41,129,227,92,64,239,117,30,47,20,7,41,49,212,149,20>>,<<\\\"upload-test/33782.1352151006.118\\\">>,[{r_content,{dict,4,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[],[],[],[],[],[],[[<<\\\"X-Riak-VTag\\\">>,54,102,51,102,73,111,119,52,112,52,113,105,89,116,56,105,88,119,56,108,105,78]],[[<<\\\"index\\\">>]],[[<<\\\"X-Riak-Deleted\\\">>,116,114,117,101]],[[<<\\\"X-Riak-Last-Modified\\\">>|{1352,315201,51287}]],[],[]}}},<<>>}],[{<<230,24,255,53,80,148,42,124>>,{...}}],...},...}\",\"type\":\"error\",\"stack\":\"[{lager,dispatch_log,[warning,riak_cs_utils,map_keys_and_manifests,342,<9830.26847.0>,[{module,riak_cs_utils},{function,map_keys_and_manifests},{line,342},{pid,\\\"<0.26847.0>\\\"}],\\\"Riak CS object list map failed: ~p:~p\\\",[error,badarg],4096]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyLCXNCXqg3SdGTEvs/mPd2O7oZfG1k6eTs6mm/tvdmmhNIXdhJBIvqUe8Jk3xtTe2/j7NSD+RzA4fl6IHvshevxRnM+ttRyWzR32FsdUkWg3wK5bcj+vw52LxmbARm5No8tLcPPPsMkz9+xsCyL782nrf228DE00hFU2r3WgTLjDwxuN+kj2GARe30mZBIvBxZoCF8hIMbDNjZY1fWkqePwWF4EtYtOUx8DcQtHoBCeHJvXpxW6Q5xlXtMaMmWHSR5hxH8MWUNvwbsl5t23TJJ5jL5T7M4hVELq/0m/qCfvupehe3kDJAaR82Md9KumPnIHQJuuHUK/nXAewb/DFN [email protected]
int_nic=90:e2:ba:14:20:54
int_ip=dhcp
int_netmast=
int_network=...
int_gateway=dhcp
[root@d4-ae-52-78-e6-b1 ~]# cat zone.json
{
  "brand": "joyent",
  "zfs_io_priority": 30,
  "quota": 20,
  "nowait": true,
  "dataset_uuid": "37e6af92-daf0-11e0-ac11-473ca1173ab0",
  "max_physical_memory": 256,
  "alias": "zone70",
  "nics": [
undefined:2
  "brand": "joyent",
^
SyntaxError: Unexpected token  
at Object.parse (native)
at /usr/vm/sbin/vmadm:609:28
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)
Vagrant::Config.run do |config|
instances = {
:guttersnipe => {:box => "ubuntu-1104-64", :ip => "10.7.7.69"},
:t1 => {:box => "ubuntu-1104-64", :ip => "10.7.7.10"},
#:t2 => {:box => "solaris-10u9-64", :ip => "10.7.7.11"},
#:t3 => {:box => "centos-57-64", :ip => "10.7.7.12"},
:t4 => {:box => "centos-60-64", :ip => "10.7.7.13"},
}
@densone
densone / jumpstart.rb
Created September 19, 2011 00:59
Jumpstart an Ubuntu Chef Server with Ruby
require 'rubygems'
require 'aws'
require 'net/ssh'
require 'net/http'
require 'logger'
def message_lines
2.times do |x|
puts "****************************************"
end
ArgumentError: wrong number of arguments (1 for 0)
./curbd.rb:66:in `to_json'
./curbd.rb:66:in `GET /v1/users/:username'
/Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:1057:in `call'
/Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:1057:in `compile!'
/Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:643:in `instance_eval'
/Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:643:in `route_eval'
/Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:627:in `route!'
/Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:675:in `process_route'
/Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:672:in `catch'
source 'http://rubygems.org'
gem 'sinatra'
gem 'mongoid','2.0.0.rc.7'
gem 'sinatra-mongoid', :require => 'sinatra/mongoid'
gem 'bcrypt-ruby'
gem 'carrierwave'
gem 'bson_ext'
gem 'json'
gem 'fog'