Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'rubygems'
require 'typhoeus'
100000.times do |t|
Thread.new do
puts "requesting - #{t}"
@req = Typhoeus::Request.new("http://#{ARGV[0]}:#{ARGV[1]}",
:method => :post,
@blakesmith
blakesmith / .palletservicesvirtualbox.clj
Created March 30, 2012 12:11
jclouds null pointer exception
{:vb {:provider "virtualbox"
:images {:ubuntu-10-10 {:description "Ubuntu 10.10 64bit"
:uuid "ea8d17cd-d532-4ce4-82de-d201d773f9d1"
:os-family :ubuntu
:os-version "10.10"
:os-type-id "Ubuntu"
:os-64-bit true
:sudo-password "superduper"
:no-sudo false
:username "user"
(ns letterleaf-provision.core
(:use [clojure.tools.cli])
(:require [pallet.core :as core]
[pallet.compute :as compute]
[pallet.phase :as phase]
[pallet.crate.java :as java]
[pallet.crate.automated-admin-user :as automated-admin-user]))
(defn service [provider]
(compute/service provider))
09:52:56.252 [main] INFO pallet.compute.vmfest - No :default-bridged-interface defined. Will chose from these options: en1: AirPort
09:52:56.255 [main] INFO pallet.compute.vmfest - No Local Interface defined. Using vboxnet0
09:52:56.271 [main] INFO pallet.compute.vmfest - Loaded images: (:ubuntu-10-10-64bit-server :ubuntu-10-10)
09:52:56.272 [main] INFO pallet.compute.vmfest - Using 'local' networking via interface 'vboxnet0' as defaults for new machines
09:52:56.331 [main] DEBUG pallet.compute.vmfest - loaded model :micro = {:cpu-count 1, :storage [{:devices [nil nil nil nil], :name "IDE Controller", :bus :ide}], :boot-mount-point ["IDE Controller" 0], :memory-size 512}
09:52:56.332 [main] DEBUG pallet.compute.vmfest - loaded model :small = {:cpu-count 1, :storage [{:devices [nil nil nil nil], :name "IDE Controller", :bus :ide}], :boot-mount-point ["IDE Controller" 0], :memory-size 1024}
09:52:56.332 [main] DEBUG pallet.compute.vmfest - loaded model :medium = {:cpu-count 2, :storage [{:devices [nil nil n
letterleaf-provision.core=> (change 1 :vb)
12:47:26.987 [Thread-2] INFO pallet.compute.vmfest - No :default-bridged-interface defined. Will chose from these options: en1: AirPort
12:47:26.987 [Thread-2] INFO pallet.compute.vmfest - No Local Interface defined. Using vboxnet0
12:47:26.987 [Thread-2] INFO pallet.compute.vmfest - Loaded images: (:ubuntu-10-10-64bit-server :ubuntu-10-10)
12:47:26.987 [Thread-2] INFO pallet.compute.vmfest - Using 'local' networking via interface 'vboxnet0' as defaults for new machines
12:47:26.988 [Thread-2] DEBUG pallet.compute.vmfest - loaded model :micro = {:cpu-count 1, :storage [{:devices [nil nil nil nil], :name "IDE Controller", :bus :ide}], :boot-mount-point ["IDE Controller" 0], :memory-size 512}
12:47:26.988 [Thread-2] DEBUG pallet.compute.vmfest - loaded model :small = {:cpu-count 1, :storage [{:devices [nil nil nil nil], :name "IDE Controller", :bus :ide}], :boot-mount-point ["IDE Controller" 0], :memory-size 1024}
12:47:26.988 [Thread-2] DEBUG pallet.compute.vmfest
user@192.168.56.105's password:
Linux ubuntu 2.6.35-22-server #35-Ubuntu SMP Sat Oct 16 22:02:33 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.10
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
System information as of Sat Mar 31 10:59:28 PDT 2012
System load: 0.0 Processes: 71
require 'rubygems'
require 'wirble'
#require 'interactive_editor'
Wirble.init
Wirble.colorize
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
require 'logger'
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
remote-file tmp-dir/nginx-0.7.65.tar.gz...
md5sum: tmp-dir/nginx-0.7.65.tar.gz: No such file or directory
tmp-dir/nginx-0.7.65.tar.gz.new: No such file or directory
mv: cannot stat `tmp-dir/nginx-0.7.65.tar.gz.new': No such file or directory
mv: cannot stat `tmp-dir/nginx-0.7.65.tar.gz.new': No such file or directory
09:25:54.391 [clojure-agent-send-off-pool-0] INFO pallet.execute - Output: 192.168.56.106
- retrieves files from the web
i whiptail - Displays user-friendly dialog boxes from s
i whois - an intelligent whois client
i A x-ttcidfont-conf - TrueType and CID fonts configuration for X
i A x11-common - X Window System (X.Org) infrastructure
i A x11proto-core-dev - X11 core wire protocol and auxiliary heade
i A x11proto-input-dev - X11 Input extension wire protocol
i A x11proto-kb-dev - X11 XKB extension wire protocol
i A xauth - X authentication utility
(def cassandra-conf "conf/cassandra/cassandra.yaml")
(def cassandra-yaml-defaults
{:cluster-name "My Cluster"
:initial-token "0"
:partitioner :random
:data-file-directories ["/var/lib/cassandra/data"]
:commit-log-dir "/var/lib/cassandra/commitlog"
:saved-caches-dir "/var/lib/cassandra/saved_caches"
:seeds ["127.0.0.1"]