This file contains 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
#/etc/nagios-plugins/config/check_aws | |
# | |
# | |
# 'check_aws' command definition | |
define command{ | |
command_name check_ec2 | |
command_line /usr/lib/nagios/plugins/check_aws | |
} |
This file contains 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
description "nginx http daemon" | |
start on runlevel [2] | |
stop on runlevel [016] | |
console owner | |
exec /opt/nginx/sbin/nginx -g "daemon off;" | |
respawn |
This file contains 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 'fog' | |
compute = Fog::Compute.new(:provider => 'VirtualBox') | |
server = compute.servers.create(:name => 'lucid', :os => 'Ubuntu') | |
medium = compute.mediums.create(:device_type => :hard_disk, :location => '/Users/geemus/geemus/virtualbox_poc/lucid.vmdk', :read_only => false) | |
storage_controller = server.storage_controllers.create(:bus => :sata, :name => 'sata') | |
storage_controller.attach(medium, 0) |
This file contains 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
IMPORTANT: this is outdated, go to https://github.com/netroy/Lockets | |
"npm install socket-io" & you are ready to go |
This file contains 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
(defn iota [t nxt stop y] | |
(take-while stop (iterate #(t (nxt %)) y))) | |
(iota identity inc #(< % 10) 1) | |
(def upto (fn [end start] | |
(iota identity inc #(< % end) start))) | |
(def downto (fn [end start] | |
(iota identity dec #(> % end) start))) |