Skip to content

Instantly share code, notes, and snippets.

View limpep's full-sized avatar

Mr E limpep

View GitHub Profile
@limpep
limpep / duck.sh
Created January 4, 2020 23:32 — forked from BlackthornYugen/duck.sh
Duckdns cron script
#!/usr/bin/env bash
DUCKPATH=~/duckdns
TOKEN=changeme
DOMAINS=steelcomputers
curl -sSv "https://www.duckdns.org/update?domains=${DOMAINS}&token=${TOKEN}&ip=" \
2>> ${DUCKPATH}/stderr.log \
>> ${DUCKPATH}/stdout.log
printf ' - ' >> ${DUCKPATH}/stdout.log
date >> ${DUCKPATH}/stdout.log