Skip to content

Instantly share code, notes, and snippets.

Theo Schlossnagle postwait

Block or report user

Report or block postwait

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8834009
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
View gist:8834044
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
View gist:9073497
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) {
View gist:9196621
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 ||
View gist:9196461
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 ||
View gist:9933630
### 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:
View gist:cc887d1d56e512aae39a
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
View gist:0f0e5e79b7cb1226e08c
#!/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'
View gist:485525d68314ea66f845
{
"status": "active",
"target": "192.168.0.@@OCTET@@",
"timeout": 10,
"metrics": [
{
"status": "active",
"name": "in_errors",
"type": "numeric"
},
View gist:3d5e3498ff27f54e51d7
<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"
You can’t perform that action at this time.