Skip to content

Instantly share code, notes, and snippets.

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

Mik Szillat nomaster

🏳️‍🌈
Chaos Penguin
View GitHub Profile
@nomaster
nomaster / override.conf
Created June 7, 2019 22:28
Certbot with Nginx
# /etc/systemd/system/certbot.service.d/override.conf
[Service]
ExecStart=/usr/bin/certbot renew --webroot -w /opt/observium/html
ExecStartPost=/usr/sbin/nginx -s reload
@nomaster
nomaster / default.pa
Last active January 25, 2020 23:46
PulseAudio config for @chaosdorf
load-module module-native-protocol-tcp auth-anonymous=true
load-module module-alsa-sink device=plughw:UMC1820
load-module module-stream-restore
load-sample-dir-lazy /home/alarm/samples/
set-default-sink alsa_output.plughw_UMC1820
play-sample win31 alsa_output.plughw_UMC1820
@nomaster
nomaster / config.properties
Created March 14, 2020 10:03
UniFi office.nomaster.cc
config.system_cfg.1=ebtables.101.cmd=-t nat -I GUESTIN 1 -p IPv6 -d b4:fb:e4:24:0a:f1 -j ACCEPT
config.system_cfg.2=ebtables.102.cmd=-t nat -I GUESTIN 3 -p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type router-solicitation -j ACCEPT
config.system_cfg.3=ebtables.103.cmd=-t nat -I GUESTIN 4 -p IPv6 --ip6-proto ipv6-icmp --ip6-icmp-type neighbour-advertisement -j ACCEPT
config.system_cfg.4=ebtables.104.cmd=-t nat -I GUESTIN 5 -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 b4:fb:e4:24:0a:f1 -j ACCEPT
@nomaster
nomaster / jitsi.freifunk-duesseldorf.de.conf
Last active May 15, 2021 14:04
Nginx configuration for Jitsi Meet Server
server_names_hash_bucket_size 64;
types {
application/wasm wasm;
}
server {
listen 45.151.166.22:80;
listen [2001:678:b7c::22]:80;
server_name jitsi.freifunk-duesseldorf.de;
@nomaster
nomaster / certbot.service
Last active March 20, 2020 08:44
systemd service for certbot
[Unit]
Description=Renew Let's Encrypt certificates
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/certbot-auto renew
ExecStartPost=/usr/bin/systemctl reload nginx.service
@nomaster
nomaster / [email protected]
Created April 4, 2020 10:53
Use socat to translate TCP6 to TCP4
[Unit]
Description=socat
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/socat TCP6-LISTEN:%i,reuseaddr,fork,bind=[::] TCP4:127.0.0.1:%i
Restart=on-abort
[Install]
@nomaster
nomaster / scapy3
Last active April 17, 2020 17:26
Test raw traffic towards UDP port 10000
send(IP(dst="45.151.166.22")/UDP(dport=10000)/Raw(load="Test4"))
send(IPv6(dst="2001:678:b7c::22")/UDP(dport=10000)/Raw(load="Test6"))
@nomaster
nomaster / gist:def275fd7edcef43228cd6e5aae9828c
Last active July 10, 2020 21:25
Enable IPv6 on Cisco IOS
# logon to the device
enable
configure
sdm prefer dual-ipv4-and-ipv6 default
exit
reload
# logon again
enable
configure
@nomaster
nomaster / config.properties
Created August 30, 2020 11:19
Client Isolation on UniFi wireless access points
config.system_cfg.1=wireless.1.l2_isolation=enabled
config.system_cfg.2=wireless.2.l2_isolation=enabled
config.system_cfg.3=wireless.3.l2_isolation=enabled
config.system_cfg.4=wireless.4.l2_isolation=enabled
@nomaster
nomaster / sip-communicator.properties
Created September 13, 2020 20:14
Jitsi Meet Stats
org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_INTERVAL=1000
org.jitsi.videobridge.STATISTICS_TRANSPORT=muc,colibri,pubsub
org.jitsi.videobridge.rest.private.jetty.port=8080
org.jitsi.videobridge.rest.private.jetty.host=0.0.0.0