I hereby claim:
- I am backslash7 on github.
- I am backslash (https://keybase.io/backslash) on keybase.
- I have a public key whose fingerprint is C8F5 79F8 E19D FDFF E145 D260 C1D3 8EAC 3AC2 9B3A
To claim this, I am signing this object:
| #!/usr/bin/env nft -f | |
| flush ruleset | |
| table inet raw { | |
| include "set_country_RU_v4.nft" | |
| include "set_country_RU_v6.nft" | |
| chain prerouting { | |
| type filter hook prerouting priority raw; policy accept; |
| ; Assign this context to your incoming SIP trunk settings | |
| [custom-get-did-from-sip] | |
| exten => _X.,1,Noop(Fixing DID using information from SIP TO header) | |
| exten => _X.,n,NOOP(Header is: ${SIP_HEADER(TO)}) | |
| exten => _X.,n,Set(pseudodid=${SIP_HEADER(TO)}) | |
| exten => _X.,n,Set(pseudodid=${CUT(pseudodid,@,1)}) | |
| exten => _X.,n,Set(pseudodid=${CUT(pseudodid,:,2)}) | |
| exten => _X.,n,Noop(Pseudo DID is: ${pseudodid}) | |
| exten => _X.,n,Goto(from-trunk,${pseudodid},1) |
| from binascii import hexlify | |
| from struct import pack | |
| from time import sleep | |
| from datetime import datetime | |
| import socket | |
| ts_header = 0x47401410 | |
| table_id = 0x70 | |
| pointer_field = 0x00 | |
| flags_plus_length= 0x7005 |
I hereby claim:
To claim this, I am signing this object:
| function quickhack_fix_gallery( $query ) { | |
| if ( $query->get( 'post_type', '' ) == 'attachment' ) { | |
| $query->set( 'post_status', 'inherit' ); | |
| } | |
| } | |
| add_action( 'pre_get_posts', 'quickhack_fix_gallery', 99 ); |
| <?php | |
| header( 'Content-type: application/json;' ); | |
| // Change it according to your nagios.cfg | |
| $data = file_get_contents( '/var/ramdrive/objects.cache' ); | |
| $matches = array(); | |
| $object_matches = array(); | |
| $output = array(); | |
| preg_match_all( '/(?|define (?<section>\w+) \{\n([^\}]+)+)/i', $data, $matches ); |