This file contains hidden or 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
| 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) { |
This file contains hidden or 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
| 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 || |
This file contains hidden or 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
| 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 || |
This file contains hidden or 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
| ### 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: |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| { | |
| "status": "active", | |
| "target": "192.168.0.@@OCTET@@", | |
| "timeout": 10, | |
| "metrics": [ | |
| { | |
| "status": "active", | |
| "name": "in_errors", | |
| "type": "numeric" | |
| }, |
This file contains hidden or 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 | |
| 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' |
This file contains hidden or 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
| <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" |
This file contains hidden or 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
| diff --git a/src/LuaJIT/src/lj_alloc.c b/src/LuaJIT/src/lj_alloc.c | |
| index cd8dfc1..992d792 100644 | |
| --- a/src/LuaJIT/src/lj_alloc.c | |
| +++ b/src/LuaJIT/src/lj_alloc.c | |
| @@ -177,7 +177,7 @@ static LJ_AINLINE int CALL_MUNMAP(void *ptr, size_t size) | |
| #if LJ_64 | |
| /* 64 bit mode needs special support for allocating memory in the lower 2GB. */ | |
| -#if defined(MAP_32BIT) | |
| +#if defined(MAP_32BIT) && !defined(BROKEN_MMAP_HINTS) |
This file contains hidden or 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
| --- umem.c Wed Nov 27 16:09:41 2013 | |
| +++ /var/tmp/umem.c Tue Dec 9 19:22:36 2014 | |
| @@ -2363,7 +2363,7 @@ | |
| else | |
| mdb_printf("%3d", i); | |
| - mdb_printf(" %0?p %0?p %16llx %0?p\n", addr, b->bc_addr, | |
| + mdb_printf(" %0?p %0?p %16llx %0?l#r\n", addr, b->bc_addr, | |
| b->bc_timestamp, b->bc_thread); |