Skip to content

Instantly share code, notes, and snippets.

@netravnen
netravnen / Public_Time_Servers.md
Last active November 13, 2020 22:44 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

  • time.google.com
  • time1.google.com
  • time2.google.com
  • time3.google.com
  • time4.google.com

Cloudflare NTP [AS13335]:

@netravnen
netravnen / rslsync-ufw.sh
Last active January 29, 2024 11:59 — forked from auipga/rslsync-ufw.sh
Help configuring ufw for Resilio Sync (rslsync)
#!/bin/bash
# Author: https://gist.github.com/auipga/
# Based on:
# Sync (outdated?): https://kb-archive.getsync.com/kbs/1.3.5/kb/hc/en-us/articles/210153106-Ports-and-protocols-used-by-Resilio-Connect.html
# Resilio Connect: https://help.getsync.com/hc/en-us/articles/204754759-What-ports-and-protocols-are-used-by-Sync-
# todo: read sync.conf from resilio server, parse json, fill IPs dynamically
# todo: delete duplicate rules as 'host' returns multiple IPs for resilios domains
@netravnen
netravnen / gen-ubuntu-sources-list.py
Last active August 7, 2018 09:29 — forked from JonasGroeger/gen-ubuntu-sources-list.py
Generates '/etc/apt/sources.list' compatible lists for Ubuntu releases
#!/usr/bin/env python3
import argparse
import getpass
import os
import time
import sys
import lsb_release
# Only LTS release codenames will be listed here - https://wiki.ubuntu.com/Releases
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Syntax: $_ USER[ USER[ ...]]" >&2
exit 1
fi
exit_code=0
for user in "$@"; do
home="/home/$user"