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
root@irbis ~ # ./dn42_countroute | |
IPv4 | |
273 gre_dn42_tobee | |
178 dn42_ffbi | |
66 dn42_hexa | |
21 dn42_barnslig | |
8 gre_dn42_mortzu | |
7 dn42_docsteel | |
7 dn42_pyropeter | |
7 dn42_unbedenkli |
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
KEY | |
luchse sind halt tolle katzen | |
6c75636873652073696e642068616c7420746f6c6c65206b61747a656e | |
MSG | |
luchse luchsen luchsig in luxemburg umher | |
6c7563687365206c75636873656e206c75636873696720696e206c7578656d6275726720756d686572 | |
HMAC SHA3-224: 32 04 e3 2d bb b7 33 45 43 fe 11 cd 73 8d d5 21 25 b5 a1 88 70 38 fb c1 07 f9 21 c5 | |
HMAC SHA3-256: 3f 8c 69 1e 77 be 44 7d 4e cd cf 0d 61 f2 8b 9c 8c 00 67 f6 fd d8 22 46 4b 9d a3 69 f3 c2 85 2b |
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
#!/usr/bin/env python3 | |
import os | |
import subprocess | |
import json | |
import datetime | |
class ldict(dict): | |
def __missing__(self, key): | |
return 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
$fn=200; // hurr. durr. | |
difference(){ | |
intersection(){ | |
cylinder(h=10,r1=2, r2=4); | |
translate([0,0,0]) sphere(r=6); | |
} | |
translate([-1,-1,0]) cube([2,2,2.5]); | |
} |
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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
<@feuerrot> otr info | |
<@root> private keys: | |
<@root> [email protected]/jabber - DSA | |
<@root> 5B3E8729 B6D1D4F6 59873F6D 8034389A 6DC03C36 | |
-----BEGIN PGP SIGNATURE----- | |
Version: GnuPG v1 |
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
#!/usr/bin/env python3 | |
import sys | |
import subprocess | |
reloadtime = 30 | |
args = dict(ac='Aachen',d='Duesseldorf',e='Essen',do='Dortmund') | |
key = sys.argv[1] | |
def geturl(city): |
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
function is_freifunk() { | |
return (net ~ 10.0.0.0/8) && (net.len >= 16); | |
} | |
function is_pi() { | |
return net ~ [ | |
192.175.48.0/24, | |
217.115.14.32/28, | |
37.1.89.192/26, | |
46.4.248.192/27, |
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
#!/usr/bin/env sh | |
echo ' IPv4' | |
ip r | cut -d' ' -f 5 | grep dn42 |perl -MList::Util=sum -E 'my %cnt; $fmt = "%3d %s\n"; while (<>) { chomp; $cnt{$_}++ }; for my $k (reverse sort { $cnt{$a} <=> $cnt{$b} || -($a cmp $b) } keys %cnt) { printf($fmt, $cnt{$k}, $k) } printf($fmt, sum(values %cnt), "total"); printf($fmt, scalar keys %cnt, "peerings")' | |
echo | |
echo ' IPv6' | |
ip -6 r | cut -d' ' -f 5 | grep dn42 |perl -MList::Util=sum -E 'my %cnt; $fmt = "%3d %s\n"; while (<>) { chomp; $cnt{$_}++ }; for my $k (reverse sort { $cnt{$a} <=> $cnt{$b} || -($a cmp $b) } keys %cnt) { printf($fmt, $cnt{$k}, $k) } printf($fmt, sum(values %cnt), "total"); printf($fmt, scalar keys %cnt, "peerings")' |
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
root@pardus ~ # ./dn42_countroute | |
93 dn42_fritz | |
82 dn42_mortzu | |
65 dn42_ffbi | |
38 dn42_pyropeter | |
21 dn42_barnslig | |
15 dn42_crest | |
4 dn42_docsteel | |
4 dn42_thomas | |
4 dn42_mirsal |
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
root@pardus ~ # ./dn42_countroute | |
95 dn42_fritz | |
82 dn42_mortzu | |
67 dn42_ffbi | |
39 dn42_pyropeter | |
21 dn42_barnslig | |
15 dn42_crest | |
4 dn42_docsteel | |
4 dn42_ffrl | |
4 dn42_thomas |