Skip to content

Instantly share code, notes, and snippets.

View postwait's full-sized avatar

Theo Schlossnagle postwait

View GitHub Profile
Have you ever wondered … “Does God really care about the details of my business – including its profitability, its value, maybe even its sale some day? Does He really care about me, its CEO?”
If you’ve ever asked yourself these questions, you’re not alone. Increasingly in the past year, CEOs and business owners have been talking about this with one another, and many are surprised by the answers they are discovering.
If this resonates with you, please visit me on LinkedIn and read “God’s Bigger Story for CEOs and Your Role In It”. Also check out the Faithful CEO Roundtable description in the Experience section.
If you are still intrigued, join us for a Faithful CEO Roundtable on February 13th as 12 CEOs and business owners gather informally over breakfast. We will discuss our experience of, or desire for, God involving Himself in the details of our businesses. For some, this will be the first time they have talked about this topic with other CEOs. Some will come with questions. Others will come with storie
Have you ever wondered … “Does God really care about the details
of my business – including its profitability, its value, maybe
even its sale some day? Does He really care about me, its CEO?”
If you’ve ever asked yourself these questions, you’re not
alone. Increasingly in the past year, CEOs and business owners
have been talking about this with one another, and many are
surprised by the answers they are discovering.
If this resonates with you, please visit me on LinkedIn and read
sub combo {
my $hash = shift;
my %hashcopy = %$hash;
my $list = shift || [];
my $s = shift || {};
my @k = (keys %hashcopy);
if(scalar(@k) == 0) { push @$list, $s; return; }
my $arr = $hashcopy{@k[0]};
delete $hashcopy{@k[0]};
for my $v (@$arr) {
diff --git a/src/modules/external.c b/src/modules/external.c
index 6996446..fad38d1 100644
--- a/src/modules/external.c
+++ b/src/modules/external.c
@@ -310,7 +310,9 @@ static int external_handler(eventer_t e, int mask,
}
while(data->cr->stderrlen_sofar < (int)data->cr->stderrlen) {
int stderrlen = (int)data->cr->stderrlen;
- if(stderrlen > data->cr->stderrlen_sofar) goto widowed; /* overflow */
+ if((stderrlen - data->cr->stderrlen_sofar) < 0 ||
diff --git a/src/modules/external.c b/src/modules/external.c
index 6996446..fa2c859 100644
--- a/src/modules/external.c
+++ b/src/modules/external.c
@@ -310,7 +310,9 @@ static int external_handler(eventer_t e, int mask,
}
while(data->cr->stderrlen_sofar < (int)data->cr->stderrlen) {
int stderrlen = (int)data->cr->stderrlen;
- if(stderrlen > data->cr->stderrlen_sofar) goto widowed; /* overflow */
+ if((stderrlen - data->cr->stderrlen_sofar) < 0 ||
@postwait
postwait / gist:9933630
Created April 2, 2014 13:03
keybase.md
### Keybase proof
I hereby claim:
* I am postwait on github.
* I am postwait (https://keybase.io/postwait) on keybase.
* I have a public key whose fingerprint is A667 1CDA A10A E767 10E7 B8D0 60AA 581B B81B 9391
To claim this, I am signing this object:
feea0f69 lwp_park (0, 0, 0)
fee9aed5 mutex_lock_impl (d3939120, 0, 7a3, 518941d, 5b, d38a3f84) + 291
fee9b7ef mutex_lock (d3939120) + 19
d392531d pkcs11_close_common (d393911c, d3939120, 0, d3911e00) + 21
d39253c2 pkcs11_close_urandom (d3912260, d03f06c8, cebe201c, d38ac779, d390f3c4, 0) + 26
d38ac80c finalize_common (1) + a1
d38ac923 softtoken_fini (feffb0a4, cebe2088, fefd213b, feffc8c0, 0, d3940818) + 4b
d38f238a _fini (feffc8c0, 0, d3940818, f, d03f06f0, fee1d23c) + 1a
fefd213b call_fini (feffc8c0, d03f06c8, d39a0bf8, 0) + b3
fefd8727 remove_hdl (d3940cc0, d39a0bf8, 0, fefd4225, fef14000, d16c6240) + 744
{
"status": "active",
"target": "192.168.0.@@OCTET@@",
"timeout": 10,
"metrics": [
{
"status": "active",
"name": "in_errors",
"type": "numeric"
},
#!/bin/sh
OCTET=$1
IFACE=$2
sed -e "s/@@OCTET@@/$OCTET/g" -e "s/@@IFACE@@/$IFACE/g;" < sp.json > sp.tmp.json
curl -s -H'Accept: application/json' -H'X-Circonus-Auth-Token: derp-derpderp' -H'X-Circonus-App-Name: curl' -XPOST -Tsp.tmp.json 'https://api.circonus.com/check_bundle?duplicate=1'
<nodes write_copies="3">
<node id="b7cc243f-85fa-4031-b69e-d6b9ed537093"
address="192.168.13.70"
apiport="8112"
port="8112"
weight="85"/>
<node id="696fc43d-4cc8-4209-97da-f2ede7dcbc45"
address="192.168.13.71"
apiport="8112"
port="8112"