Skip to content

Instantly share code, notes, and snippets.

View aklef's full-sized avatar
🏠
DM me! I'm working from home

Andréas aklef

🏠
DM me! I'm working from home
View GitHub Profile
@aklef
aklef / cf-ddns.sh
Last active October 17, 2016 03:51 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS updater for BSD Bash
#!/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]"
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active October 22, 2024 19:31
Cloudflare API v4 Dynamic DNS Update in Bash
#!/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)
@adulau
adulau / test-ntp.py
Created January 24, 2014 13:46
test-ntp.py - Test a set of IP addresses for active NTP services
#!/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"
#