Skip to content

Instantly share code, notes, and snippets.

View nomaster's full-sized avatar
🏳️‍🌈
Chaos Penguin

Mic Szillat nomaster

🏳️‍🌈
Chaos Penguin
View GitHub Profile
PING google-public-dns-a.google.com (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=54 time=13.8 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=8.63 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=7.99 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=8.23 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=8.86 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=54 time=8.77 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=54 time=9.09 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=54 time=8.94 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=54 time=9.34 ms
@nomaster
nomaster / ethtool.fact
Last active June 26, 2023 10:51
Ansible facts script for ethtool
#!/usr/bin/env python
import json
import subprocess
result = {}
interface_stats = subprocess.check_output("/usr/sbin/ethtool -i eth0", shell=True)
for line in interface_stats.strip().split("\n"):
@nomaster
nomaster / ddorf-diagram.txt
Created February 15, 2016 23:34
Freifunk Düsseldorf AS
+--------------------------+
| Rheinland Backbone |
+----+----------------+----+
| |
+----+---+ +---+----+
| Edge01 | | Edge02 |
+--+-+---+ +-+---+--+
| | | |
| +----------------+ |
| | | |
@nomaster
nomaster / gist:f98881a23ce08898e3b366068de80313
Created August 4, 2016 14:55
Traceroute GarageBilk / Freifunk Düsseldorf
Start: Thu Aug 4 16:55:11 2016
HOST: garageserver Loss% Snt Last Avg Best Wrst StDev
1.|-- 10.1.0.2 0.0% 10 0.3 0.5 0.2 0.8 0.0
2.|-- umcowo.garagebilk.net 0.0% 10 2.1 2.3 1.4 3.8 0.7
3.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
4.|-- 1411J-MX960-01-ae10-1100. 0.0% 10 9.9 19.8 9.0 78.0 20.6
5.|-- b2b-5-147-248-82.unitymed 0.0% 10 20.2 23.8 16.4 36.0 6.1
6.|-- r1fra2.core.init7.net 0.0% 10 21.5 28.0 13.8 90.9 22.7
7.|-- r1fra3.core.init7.net 0.0% 10 16.7 27.9 14.0 52.6 12.6
8.|-- r1lon1.core.init7.net 0.0% 10 40.1 35.9 25.8 79.9 16.6
@nomaster
nomaster / gist:8ec640bc585f5a5a64156cddf01b85dd
Created August 4, 2016 16:12
Traceroute GarageBilk 185.66.193.0
Start: Thu Aug 4 18:11:51 2016
HOST: garageserver Loss% Snt Last Avg Best Wrst StDev
1.|-- 10.1.0.2 0.0% 10 0.3 0.5 0.3 0.8 0.0
2.|-- umcowo.garagebilk.net 0.0% 10 1.1 1.7 1.1 2.7 0.0
3.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
4.|-- 1411J-MX960-01-ae10-1100. 0.0% 10 14.5 14.9 9.9 26.8 4.8
5.|-- 84.116.196.102 0.0% 10 18.2 28.4 16.6 97.8 24.5
6.|-- 84.116.196.29 0.0% 10 26.3 37.5 22.5 66.2 14.5
7.|-- de-fra01b-ri1-ae1-0.aorta 0.0% 10 15.0 20.5 14.1 31.9 5.0
8.|-- 213.46.179.62.aorta.net 0.0% 10 16.3 21.3 15.9 40.6 7.4
@nomaster
nomaster / cupsd.conf
Created October 24, 2016 13:51
Printserver configuration sample
#
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Disable cups internal logging - use logrotate instead
MaxLogSize 0
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
@nomaster
nomaster / icmp.sh
Created May 10, 2017 12:45
Simple wrapper for ping
#!/bin/bash
host=$1
timeout=$2
ping -W $timeout -c 1 $host
@nomaster
nomaster / config.boot
Last active October 5, 2023 07:35
EdgeRouter: DNS forwarding to CloudFlare with DNSSEC
set service dns forwarding name-server 1.1.1.1
set service dns forwarding name-server 1.0.0.1
set service dns forwarding name-server '2606:4700:4700::1111'
set service dns forwarding name-server '2606:4700:4700::1001'
set service dns forwarding options dnssec
set service dns forwarding options trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
set service dns forwarding options trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D
set service dns forwarding options dnssec-check-unsigned
set service dns forwarding options dnssec-timestamp=/config/dnsmasq/dnsmasq.time
@nomaster
nomaster / ethool.fact
Created November 14, 2018 14:19
Python3 version of the ethtool fact script for Ansible
#!/usr/bin/env python3
import subprocess
import json
stats = subprocess.getoutput("/sbin/ethtool -i enp0s3").split("\n")
result = {}
for line in stats:
key, value = line.split(": ")
@nomaster
nomaster / config.properties
Last active December 4, 2023 12:42
IPv6 on UniFi guest wireless network
config.system_cfg.1=ebtables.101.cmd=-t nat -I GUESTIN 1 -p IPv6 -d 06:be:ef:00:00:00/ff:ff:ff:00:00:00 -j ACCEPT
config.system_cfg.2=ebtables.102.cmd=-t nat -I GUESTIN 2 -p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type router-solicitation -j ACCEPT
config.system_cfg.3=ebtables.103.cmd=-t nat -I GUESTIN 3 -p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type neighbour-advertisement -j ACCEPT
config.system_cfg.4=ebtables.104.cmd=-t nat -I GUESTIN 4 -p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type neighbour-solicitation -j ACCEPT
config.system_cfg.5=ebtables.105.cmd=-t nat -I GUESTOUT 1 -p IPv6 -s 06:be:ef:00:00:00/ff:ff:ff:00:00:00 -j ACCEPT