Skip to content

Instantly share code, notes, and snippets.

View sindastra's full-sized avatar
👩‍💻
Busy

Sindastra sindastra

👩‍💻
Busy
View GitHub Profile
@sindastra
sindastra / teamspeak.service
Created April 26, 2020 00:17
TeamSpeak3 systemd service file tested with TeamSpeak version 3.12.1
[Unit]
Description=TeamSpeak3 Server
Wants=network-online.target
After=syslog.target network.target local-fs.target
[Service]
WorkingDirectory=/home/ts3server/teamspeak3-server_linux_amd64
User=ts3server
Group=ts3server
Type=forking
@sindastra
sindastra / de-All
Last active September 6, 2019 06:24
Scan file for DVB-T2 in Germany including all possible frequencies (can be used with tvheadend)
[CH21: DE_ALL]
DELIVERY_SYSTEM = DVBT2
FREQUENCY = 474000000
BANDWIDTH_HZ = 8000000
CODE_RATE_HP = AUTO
CODE_RATE_LP = AUTO
MODULATION = QAM/AUTO
TRANSMISSION_MODE = AUTO
GUARD_INTERVAL = AUTO
HIERARCHY = AUTO
@sindastra
sindastra / rules-v6.sh
Last active January 24, 2019 05:33
Some default iptables (v6) rules to start with.
*filter
# Allows all loopback (lo0) traffic and drop all traffic to ::1 that doesn't use lo0
-A INPUT -i lo -j ACCEPT
-A INPUT ! -i lo -d ::1 -j REJECT
# Accepts all established inbound connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Allows all outbound traffic
@sindastra
sindastra / rules-v4.sh
Last active January 24, 2019 05:31
Some default iptables (v4) rules to start with.
*filter
# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0
-A INPUT -i lo -j ACCEPT
-A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT
# Accepts all established inbound connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Allows all outbound traffic
@sindastra
sindastra / RealTimeIsUniversal_x32.reg
Created August 26, 2018 12:04
Reg-edit to tell Windows 10 that the hardware clock is using UTC. Useful when dual-booting with *nix systems!
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
@sindastra
sindastra / cap2hccap.c.patch
Created April 9, 2016 19:29
cap2hccap.c patch for OSX
--- cap2hccap.c 2012-06-30 07:53:03.000000000 +0200
+++ cap2hccap-osx.c 2016-04-09 21:09:59.000000000 +0200
@@ -7,6 +7,11 @@
#include <sys/types.h>
#include <string.h>
#include <libgen.h>
+
+#ifdef __APPLE__
+ #include <limits.h>
+#endif