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
(Install Python 2.x at least and optionally set up virtualenv) | |
mkvirtualenv zdeskcfg | |
pip install zdeskcfg | |
wget https://raw.githubusercontent.com/fprimex/zdeskcfg/master/example | |
./example -h |
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
#!/usr/bin/env python | |
import sys | |
import os | |
import urllib2 | |
import json | |
spelunky_app_id = '239350' | |
steam_id_url = 'http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/?key={}&vanityurl={}&format=json' | |
spelunky_url = 'http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001/?appid=' + spelunky_app_id + '&key={}&steamid={}' |
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
(pgrep moxi; pgrep beam.smp; pgrep memcached; pgrep couch_compact; pgrep sigar_port ; pgrep godu) | xargs -n1 -- sh -c 'echo $1; cat /proc/$1/status; cat /proc/$1/limits; cat /proc/$1/smaps; cat /proc/$1/numa_maps; echo' -- | awk '/Name:/,/Swap/' $i | grep -e Name -e Swap |awk '{print $2, $3}' | paste -s -d ' \n' - |
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
#!/bin/sh | |
cbuser=Administrator | |
cbpassword=couchbase | |
cbserver=127.0.0.1 | |
cbport=8091 | |
# default is 50 | |
max_overhead_perc=50 | |
# default is 90 |
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
mkdir -p ~/local/var/lib | |
mkdir ~/local/etc | |
cd ~/local/etc | |
cp -R /etc/zypp . | |
cd ~/local/var/lib | |
cp -R /var/lib/rpm . | |
cd | |
cat >> ~/.bashrc << 'EOF' | |
export PATH="$HOME"/local/usr/bin:"$PATH" |
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
service riak stop | |
# check for and kill any running beam processes | |
cd /var/lib/riak/ | |
rm -rf ring | |
rm -rf leveldb | |
# double check your app.config and vm.args and ensure they have the desired settings |
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
UUID=$(imgadm available | grep smartos64 | head -1 | awk '{print $1}') | |
imgadm import $UUID | |
cat > /zones/myvm.json << EOF | |
{ | |
"alias": "bashodev210", | |
"brand": "joyent", | |
"dataset_uuid": "$UUID", | |
"nics": [ | |
{ | |
"nic_tag": "admin", |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHowOKJnPW9CdEuetu83IzZD5bqZVtA9bx4AuhQA1GPDR0lul4rk8lwlR6/qX2ubeI7jSEnkSuJLNVwIE74zOOPdl0P6EWtcn4KLo4yzDcUM6zZmK4gjZQciNySJ4EmxqXacOCzqi4KPv4F6iNPi+OKGjMjQ8EJGXSB7H+wT5uG5y23p3p8GOJA1GDUcya/z/JTA01J5iixwbfLf3NERI7FEPSg1QKQzdGlpu9+sHfCuF1wbsLW6tGSmRzWGq3geXZ5VHHacqJK0XDeIFYUmPVQ69hPERXv00g320J+zeszwNJxiC3i91vn6gXblcEP5EkiL6wmKpyvtHDT3hyWC4P bwoodruff@basho.com |
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
Host hermes-1 | |
hostname ec2-23-22-173-151.compute-1.amazonaws.com | |
user ubuntu | |
Host hermes-2 | |
hostname ec2-184-72-170-25.compute-1.amazonaws.com | |
user ubuntu | |
Host hermes-3 | |
hostname ec2-107-21-179-43.compute-1.amazonaws.com | |
user ubuntu | |
Host hermes-4 |
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
Host hermes-1 | |
hostname ec2-23-22-173-151.compute-1.amazonaws.com | |
user ubuntu | |
Host hermes-2 | |
hostname ec2-184-72-170-25.compute-1.amazonaws.com | |
user ubuntu | |
Host hermes-3 | |
hostname ec2-107-21-179-43.compute-1.amazonaws.com | |
user ubuntu |