If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
# Description: | |
# This script receives pages in the formats | |
# /usr/bin/curl -d host="$HOSTALIAS$" -d output="$SERVICEOUTPUT$" -d description="$SERVICEDESC$" -d type=service -d state="$SERVICESTATE$" $CONTACTADDRESS1$ | |
# /usr/bin/curl -d host="$HOSTNAME$" -d output="$HOSTOUTPUT$" -d type=host -d state="$HOSTSTATE$" $CONTACTADDRESS1$ | |
# | |
# Author: | |
# oremj | |
irc = require('irc') |
wget https://github.com/downloads/github/hubot/hubot-1.1.9.tar.gz | |
tar zxvf hubot-*.tar.gz | |
cd hubot | |
vim Procfile | |
app: bin/hubot -a gtalk -n Hubot | |
vim bin/hubot | |
#npm install | |
#heroku logs will be more silence the error if remove the npm install from bin/hubot | |
git init |
#!/bin/sh | |
# linux firewall/forwarding | |
modprobe iptable_nat | |
echo 1 | tee /proc/sys/net/ipv4/ip_forward | |
iptables -t nat -A POSTROUTING -s 10.10.10.1/2 -o eth0 -j MASQUERADE | |
# install openvpn | |
apt-get update && apt-get install -y openvpn | |
cd /etc/openvpn/ | |
INSTANCE=$(curl http://169.254.169.254/latest/meta-data/public-hostname) | |
openvpn --genkey --secret ${INSTANCE}.key |
app = node[:rails][:app] | |
rails_base app[:name] do | |
ruby_ver app[:ruby_ver] | |
gemset app[:gemset] | |
end | |
%w{config log pids cached-copy bundle system}.each do |dir| | |
directory "#{app[:app_root]}/shared/#{dir}" do | |
owner app[:deploy_user] |
INSTALL | |
======= | |
$ gem install rspec | |
RSPEC-RAILS | |
=========== | |
RAILS-3 | |
======= |
It is generally desirable to group all the hosts for a specific service into a single dashboard view. For example, all the web servers are in single view while all the database servers are in another view.
This is usually not an issue when you are sending custom metrics using Riemann client. However, there are cases where you are using something that you do not control how the metrics are being sent. i.e., Riemann-tools.
Since Riemann-tools scripts are application agnostic, in order for the dashboard view to group hosts, we must inject some application specific information into the tags field. Tags is a collection of arbitrary strings. In the case of Riemann-tools scripts you can pass in arbitrary strings on the command line.
riemann-health --host 127.0.0.1 --tag "prod" --tag "webserver"
13:37:29 [ops01] cookbooks $ knife environment show _default | |
chef_type: environment | |
cookbook_versions: {} | |
default_attributes: {} | |
description: The default Chef environment | |
json_class: Chef::Environment | |
name: _default | |
override_attributes: {} | |
[ops01] cookbooks $ knife cookbook show shibboleth |
#!/usr/local/bin/bash | |
VBoxManage clonehd ubuntu_11_10_gold.vdi ubuntu_11_10_tmp.vdi | |
VBoxManage createvm --name "tmp" --ostype "Ubuntu" -register | |
VBoxManage modifyvm "tmp" --memory 4096 --boot1 dvd | |
VBoxManage storagectl "tmp" --name "IDE Controller" --add ide | |
VBoxManage storageattach "tmp" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium ubuntu_11_10_tmp.vdi | |
VBoxManage modifyvm "tmp" --nic1 bridged --nictype1 82543GC --bridgeadapter1 em0 | |
VBoxHeadless -s "tmp" -n |
#!/usr/local/bin/bash | |
VBoxManage clonehd ubuntu_11_10_gold.vdi ubuntu_11_10_tmp.vdi | |
VBoxManage createvm --name "tmp" --ostype "Ubuntu" -register | |
VBoxManage modifyvm "tmp" --memory 4096 --boot1 dvd | |
VBoxManage storagectl "tmp" --name "IDE Controller" --add ide | |
VBoxManage storageattach "tmp" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium ubuntu_11_10_tmp.vdi | |
VBoxManage modifyvm "tmp" --nic1 bridged --nictype1 82543GC --bridgeadapter1 em0 | |
VBoxHeadless -s "tmp" -n |