This file contains 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
--- a/Makefile.in 2013-08-28 18:56:54.000000000 +0200 | |
+++ b/Makefile.in 2013-08-28 18:56:25.000000000 +0200 | |
@@ -29,6 +29,7 @@ | |
rm -rf *.o *.core core.* core | |
install: bgpq3 | |
+ if test ! -d @prefix@/bin; then mkdir -p @prefix@/bin; fi | |
${INSTALL} -c -s -m 755 bgpq3 @bindir@ | |
if test ! -d @prefix@/man/man8 ; then mkdir -p @prefix@/man/man8 ; fi | |
${INSTALL} -m 644 bgpq3.8 @prefix@/man/man8 |
This file contains 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
#!/usr/bin/env pypy | |
# route-map calculator generator | |
# Job Snijders - April 1st, 2014 | |
import random | |
answers = {} | |
def add_or_not(x, y): | |
global answers |
This file contains 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
Index: src/rpsl/rpsl.y | |
=================================================================== | |
--- src/rpsl/rpsl.y (revision 341) | |
+++ src/rpsl/rpsl.y (working copy) | |
@@ -914,6 +914,9 @@ | |
| as_expr_term KEYW_EXCEPT as_expr_factor { | |
$$ = new FilterEXCEPT($1, $3); | |
} | |
+| as_expr_term OP_AND OP_NOT as_expr_factor { | |
+ $$ = new FilterEXCEPT($1, $4); |
I hereby claim:
- I am job on github.
- I am jobsnijders (https://keybase.io/jobsnijders) on keybase.
- I have a public key whose fingerprint is 3DA2 D3B4 CD6C DB13 FAF4 0CA9 C57E 21E2 7E5B EC10
To claim this, I am signing this object:
This file contains 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
#!/usr/bin/env python | |
import re | |
regex_from_hell = """^([0-9]|[1-8][0-9]|9[0-9]|[1-8][0-9]{2}|9[0-8][0-9]|99[0-9]|[1-8][0-9]{3}|9[0-8][0-9]{2}|99[0-8][0-9]|999[0-9]|[1-8][0-9]{4}|9[0-8][0-9]{3}|99[0-8][0-9]{2}|999[0-8][0-9]|9999[0-9]|[1-8][0-9]{5}|9[0-8][0-9]{4}|99[0-8][0-9]{3}|999[0-8][0-9]{2}|9999[0-8][0-9]|99999[0-9]|[1-8][0-9]{6}|9[0-8][0-9]{5}|99[0-8][0-9]{4}|999[0-8][0-9]{3}|9999[0-8][0-9]{2}|99999[0-8][0-9]|999999[0-9]|[1-8][0-9]{7}|9[0-8][0-9]{6}|99[0-8][0-9]{5}|999[0-8][0-9]{4}|9999[0-8][0-9]{3}|99999[0-8][0-9]{2}|999999[0-8][0-9]|9999999[0-9]|[1-8][0-9]{8}|9[0-8][0-9]{7}|99[0-8][0-9]{6}|999[0-8][0-9]{5}|9999[0-8][0-9]{4}|99999[0-8][0-9]{3}|999999[0-8][0-9]{2}|9999999[0-8][0-9]|99999999[0-9]|[1-3][0-9]{9}|4[01][0-9]{8}|42[0-8][0-9]{7}|429[0-3][0-9]{6}|4294[0-8][0-9]{5}|42949[0-5][0-9]{4}|429496[0-6][0-9]{3}|4294967[01][0-9]{2}|42949672[0-8][0-9]|429496729[0-5]):([0-9]|[1-8][0-9]|9[0-9]|[1-8][0-9]{2}|9[0-8][0-9]|99[0-9]|[1-8][0-9]{3}|9[0-8][0-9]{2}|99[0-8][0-9]|999[0-9]|[1-8][0-9]{4}|9[0-8][0-9]{3}|9 |
This file contains 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/bash | |
# script maintained by Job Snijders job@ntt.net | |
# Lock | |
LOCKFILE="/var/lock/`basename $0`" | |
LOCKFD=99 | |
_lock() { flock -$1 $LOCKFD; } | |
_no_more_locking() { _lock u; _lock xn && rm -f $LOCKFILE; } | |
_prepare_locking() { eval "exec $LOCKFD>\"$LOCKFILE\""; trap _no_more_locking EXIT; } |
This file contains 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
$ ./rpsldbdumpdiff /tank/irr/.zfs/snapshot/20191128-0000/rr.ntt.net/afrinic.db /tank/irr/.zfs/snapshot/20191128-1203/rr.ntt.net/afrinic.db | |
DEL | |
key-cert: X509-43 | |
method: X509 | |
owner: /C=MU/ST=Plaine Wilhelms/L=Ebene/O=AFRINIC/OU=Apps unit/CN=Simon Seruyinda/EMAILADDRESS=simon@afrinic.net | |
fingerpr: D4:13:11:E1:8B:F9:09:3B:C7:33:2F:77:A8:5D:E9:68 | |
certif: -----BEGIN CERTIFICATE----- | |
certif: MIIEFTCCAv2gAwIBAgIUb6bYT14wkhsprCsA2gnI+7eNj98wDQYJKoZIhvcNAQEL | |
certif: BQAwgZkxCzAJBgNVBAYTAk1VMRgwFgYDVQQIDA9QbGFpbmUgV2lsaGVsbXMxDjAM |
This file contains 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
job@anton ~$ time rpki-client -j ./output-rpki-client.json | |
rpki-client: /var/cache/rpki-client/rpki.ripe.net/ta/ripe-ncc-ta.cer: RFC 6487 section 4.8.6: CRL: no CRL distribution point extension | |
rpki-client: /var/cache/rpki-client/rpki.afrinic.net/repository/AfriNIC.cer: RFC 6487 section 4.8.6: CRL: no CRL distribution point extension | |
rpki-client: /var/cache/rpki-client/rpki.afrinic.net/repository/member_repository/F367890A/D5950BFE814611E98A26EC23F8AEA228/2DD43A5EA98511E99FCBF40FF8AEA228.roa: RFC 6482: uncovered IP: 196.60.32.0/24 | |
rpki-client: ...inheriting from: /var/cache/rpki-client/rpki.afrinic.net/repository/afrinic/DV2bCS_jnIf5O8uUysP2yR0WyOs.cer | |
rpki-client: ...inheriting from: /var/cache/rpki-client/rpki.afrinic.net/repository/04E8B0D80F4D11E0B657D8931367AE7D/afrinic-ca.cer | |
rpki-client: ...inheriting from: /var/cache/rpki-client/rpki.afrinic.net/repository/AfriNIC.cer | |
rpki-client: /var/cache/rpki-client/rpki.apnic.net/repository/apnic-rpki-root-iana-origin.cer: RFC 6487 section 4.8.6: CRL: no CRL d |