I hereby claim:
- I am miguelcnf on github.
- I am miguelcnf (https://keybase.io/miguelcnf) on keybase.
- I have a public key whose fingerprint is DE51 BEDD F9AA 2BB8 325C B6D0 ED05 4013 98CE 07D3
To claim this, I am signing this object:
| #!/usr/bin/env perl | |
| # | |
| # Usage: ssh-deploy-key -h (--hostsfile) PATH_TO_HOSTS_FILE | |
| # -p (--pubkeyfile) PATH_TO_PUBKEY_FILE | |
| # [ -u (--user) USER ] | |
| # | |
| # Expects --hostsfile to contain 1 host per line | |
| # Assumes current user if --user is not given | |
| # |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| boxes = { | |
| :tomcat => { | |
| :ipaddress => "172.31.254.110", | |
| :role => "application" | |
| }, | |
| :mysql => { | |
| :ipaddress => "172.31.254.120", |
| $ cat /.ssh/config | |
| Host * | |
| ServerAliveInterval 60 | |
| StrictHostKeyChecking no | |
| UserKnownHostsFile /dev/null | |
| Host nat*.eu1.dev.foo.bar.com | |
| ProxyCommand none | |
| IdentityFile /Users/foo/.ssh/id_dsa_bar | |
| User ec2-user |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| ###### | |
| # CPU | |
| ###### | |
| if [ $# -lt 2 ] | |
| then | |
| echo "Missing arguments" | |
| echo "Usage:" |
| require 'chef/provisioning' | |
| with_driver 'aws' | |
| with_machine_options :bootstrap_options => { | |
| :security_group_ids => ["#{ENV['AWS_SECURITY_GROUP']}"], | |
| :key_name => "#{ENV['AWS_KEY_NAME']}", | |
| :image_id => "#{ENV['AWS_IMAGE_ID']}" | |
| }, | |
| :ssh_username => "#{ENV['AWS_SSH_USERNAME']}" |
| #!/usr/bin/env bash | |
| DST_IP=XXX.XXX.XXX.XXX | |
| SRC_IP=$(/sbin/ip -f inet addr | grep inet | grep -v 127.0.0.1 | awk -F ' ' '{print $2}' | awk -F '/' '{print $1}') | |
| PACKET_LOSS=$(/bin/ping -w 4 -q $DST_IP | tail -2 | awk -F ' ' '{print $6}' | awk -F '%' '{print $1}' | grep -v '^$') | |
| SANITIZED_DST_IP="${DST_IP//./_}" | |
| SANITIZED_SRC_IP="${SRC_IP//./_}" | |
| METRIC_PREFIX="" |
| #!/usr/bin/env node | |
| var fs = require('fs'); | |
| fs.readFile('urandomStrings', 'utf8', function (err,data) { | |
| if (err) { | |
| return console.log(err); | |
| } else { | |
| console.time('concat'); | |
| var string = ''; |
| reporting-disabled = true | |
| [admin] | |
| bind-address = ":8083" | |
| enabled = true | |
| [cluster] | |
| shard-writer-timeout = "5s" | |
| [continuous_queries] |
| { nodes: 42444, | |
| time: Mon Jul 06 2015 16:36:48 GMT+0100 (WEST), | |
| size_bytes: 7244456, | |
| size: '6.91 mb' } | |
| { nodes: 45852, | |
| time: Mon Jul 06 2015 16:36:48 GMT+0100 (WEST), | |
| size_bytes: 7755120, | |
| size: '7.4 mb' } | |
| { num_full_gc: 145, | |
| num_inc_gc: 105, |