Skip to content

Instantly share code, notes, and snippets.

View krisarmstrong's full-sized avatar

Kris Armstrong krisarmstrong

View GitHub Profile
@krisarmstrong
krisarmstrong / Top_Public_Time_Servers.md
Last active December 22, 2025 17:19 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

NTP Servers Master List (Zero Data Loss)

Best Practices for Using NTP

  • Use multiple servers: Always configure at least 3–4 servers from different providers to avoid single points of failure.
  • Mix vendors & geographies: Don’t rely solely on one provider (e.g., all Google or all NIST). Spread across commercial, academic, and public pools.
  • Prefer Anycast where possible: For global reach, use pool.ntp.org, time.google.com, ntp.se, etc. These automatically route you to the nearest healthy server.
  • Favor stratum 1/2 servers: Stratum 1 servers are closest to the reference clock; stratum 2 are usually fine and often less overloaded.
  • Regional selection: Pick servers close to your geography (e.g., europe.pool.ntp.org in Europe, north-america.pool.ntp.org in North America).
  • Fallbacks: Include a mix of pool.ntp.org and vendor-specific (Google, Cloudflare, Microsoft) for redundancy.
@krisarmstrong
krisarmstrong / tips.sh
Last active September 12, 2022 13:50
OSX Command Line Tips & Tricks
#!/usr/bin/env bash
# Disable DMG integrity verification process
defaults write com.apple.frameworks.diskimages skip-verify true
# Speed up Time machine backups
sudo sysctl debug.lowpri_throttle_enabled=0
@krisarmstrong
krisarmstrong / gist:3db8167b798963ca4e14b16292a0eed6
Last active January 25, 2023 01:00
Open OVA Files in Parallels
Open OVA/OVF file with VirtualBox
Right click the virtual machine and select 'Clone'
Import the generated .vbox file with Parallels Desktop
@krisarmstrong
krisarmstrong / gist:e67198ef7bbe31c750c6
Created April 1, 2015 17:07
Command line arguments input file and output file along with a help statement
def main(argv):
inputfile = ''
outputfile = ''
try:
opts, args = getopt.getopt(argv,"hi:o:", ["ifile=", "ofile="])
except getopt.GetoptError:
print('test.py -i <inputfile> -o <outputfile>')
sys.exit(2)
for opt, arg in opts:
if opt == '-h':
@krisarmstrong
krisarmstrong / gist:d89a62a9b90e627fec25
Created April 1, 2015 15:48
Determines if a directory is a mount point for a drive Linux
def getmount(path):
path = os.path.abspath(path)
while path != os.path.sep:
if os.path.ismount(path):
return path
path = os.path.abspath(os.path.join(path, os.pardir))
return path
@krisarmstrong
krisarmstrong / gist:a6fff0d44b174376350b
Created April 1, 2015 15:46
Checks for system OS (Linux, Windows, MAC OSX)
system_os = sys.platform
if sys.platform.startswith('win32'):
# Win32-specific code here...
print("DEBUG: Windows Version", system_os)
elif sys.platform.startswith('linux'):
# Linux-specific code here...
print("DEBUG: Linux Version", system_os)
elif sys.platform.startswith("darwin"):
# OSX-specific code here...