This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Requirements: ntplib (easy_install ntplib) | |
# | |
# How to use it using GNU parallel (to run in //): | |
# | |
# cut -f1 -d";" ntp-monlist-servers.csv | parallel "python test-ntp.py --ip {1}" | |
# | |
# Software is free software released under the "Modified BSD license" | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# CHANGE THESE | |
auth_email="[email protected]" | |
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings | |
zone_name="example.com" | |
record_name="www.example.com" | |
# MAYBE CHANGE THESE | |
ip=$(curl -s http://ipv4.icanhazip.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# 10/16/2016 | |
# Cloudflare api script written in bash | |
# | |
# Using crontab, you should schedule this to run daily | |
# Something like: 0 */12 * * * (for noon and midnight) | |
# CHANGE THESE | |
cf_email="[email protected]" |