Skip to content

Instantly share code, notes, and snippets.

View jbussdieker's full-sized avatar

Joshua Bussdieker jbussdieker

  • Anchorage, AK
View GitHub Profile

Client Side Errors

Failed to connect to host (could be wrong hostname or firewall issue)

CHECK_NRPE: Socket timeout after 10 seconds.

Was able to connect but the client is not authorized (allow_hosts setting)

CHECK_NRPE: Error - Could not complete SSL handshake.
TMP36 - 5v temperature sensor. 3 pins (Analog) (5v, gnd, and output) $1-$2
HS1101 - Humidity sensor (Analog) $3-$5
DHT22 - Temp/Humidity Sensor (Digital) $3-$6
Size Messages/Second Messages/Hour OnDemand Reservation CPMM (OnDemand) CPMM (Reserved)
m1.small 401 24060 0.044 0.01 1.82876143 0.4156275977 5 shards, 0 replicas 1 sender (5k)
m3.medium 775 46500 0.07 0.018 1.505376344 0.3870967742 5 shards, 0 replicas 1 sender (5k)
m1.medium 804 48240 0.087 0.02 1.803482587 0.4145936982 5 shards, 0 replicas 1 sender (5k)
m1.large 1532 91920 0.175 0.041 1.903829417 0.4460400348 5 shards, 0 replicas 1 sender (5k)
m3.large 1985 119100 0.14 0.037 1.175482788 0.3106633081 5 shards, 0 replicas 1 sender (5k)
m1.xlarge 2086 125160 0.35 0.082 2.796420582 0.6551613934 5 shards, 0 replicas 1 sender (5k)
m3.xlarge 3597 215820 0.28 0.074 1.297377444 0.3428783245 5 shards, 0 replicas 1 sender (5k)
m3.2xlarge 6158 369480 0.56 0.146 1.515643607 0.3951499405 5 shards, 0 replicas 1 sender (5k)
c1.medium 1250 75000 0.13 0.032 1.733333333 0.4266666667 5 shards, 0 replicas 1 sender (5k)
@jbussdieker
jbussdieker / puppet_children.sh
Last active August 29, 2015 14:20
puppet_children
#!/bin/bash
PID=`ps -edf | grep "/usr/bin/ruby1.8 /usr/bin/puppet" | grep -v grep | awk '{print $2}'`
PIDS=`ps -edf | grep $PID | grep -v "/usr/bin/ruby1.8 /usr/bin/puppet" | grep -v grep | awk '{print $2}'`
for PID in $PIDS; do
echo $PID
echo cmdline: "`cat /proc/$PID/cmdline`"
echo cwd: "`ls -la /proc/$PID/cwd`"
if [ "x$1" == "x1" ]; then
kill -9 $PID
@jbussdieker
jbussdieker / apache.pp
Created December 17, 2015 06:06
Config Management Rosetta Stone
# Puppet
class apache {
package { 'apache': }
service { 'apache':
ensure => running,
require => Package['apache']
}
$ bundle exec saltspec -f d
-----> Cleaning up any prior instances of <salt-master-linux>
-----> Destroying <salt-master-linux>...
Finished destroying <salt-master-linux> (0m0.00s).
-----> Testing <salt-master-linux>
-----> Creating <salt-master-linux>...
If you are not using an account that qualifies under the AWS
free-tier, you may be charged to run these suites. The charge
should be minimal, but neither Test Kitchen nor its maintainers
are responsible for your incurred costs.
context 'myservice' do
context 'with pillar data (test-pillar1.sls)' do
describe service('apache') do
it { should be_running }
it { should be_enabled }
end
end
context 'with pillar data (test-pillar2.sls)' do
describe service('httpd') do

Keybase proof

I hereby claim:

  • I am jbussdieker on github.
  • I am jbussdieker (https://keybase.io/jbussdieker) on keybase.
  • I have a public key whose fingerprint is 0202 2A07 9CA0 03AE 9BF9 F115 9807 CF3F 47A7 3EE6

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jbussdieker on github.
  • I am jbussdieker_ms (https://keybase.io/jbussdieker_ms) on keybase.
  • I have a public key whose fingerprint is AAC4 1F7E 85D3 5B3A 4BD0 72F2 9EFC E6F7 E8FE 2F48

To claim this, I am signing this object:

<html>
<head>
<title>Home</title>
<style>
body {
background-color: white;
}
</style>
</head>