Skip to content

Instantly share code, notes, and snippets.

@chkorn
chkorn / gist:46c3073edcb4d7ce00694e68781e9c01
Created November 1, 2022 18:48
Unifi Dream Machine (UDM) Dyndns Configuration with INWX
# Unifi uses inadyn to configure dyndns. To Use INWX use this config
Service: dyndns
Hostname: <dynamic-dns-fqdn>
Username: <your-username>
Password: <your-password>
Server: dyndns.inwx.com/\/nic/update?hostname=%h&myip=%i
@chkorn
chkorn / tweetlist.py
Created September 15, 2012 00:37
Dump Tweets from a specified user to commandline in reverse order..
#!/usr/bin/env python
# coding=utf-8
""" This snippet dumps as many status updates from a given user as possible.
The output matches the IFTTT reciepe #36991's output and is intended to create
the initial dataset for the Evernote Note. The enml-editor might be of help...
Script requires pytz and tweepy."""
import tweepy
@chkorn
chkorn / cycles.sh
Created August 15, 2011 06:16
Load Cycle Count Cacti Script
#!/bin/sh
smartctl -a /dev/$1 | grep Load_Cycle_Count | awk '{printf "cycles:" $10 " "'}
@chkorn
chkorn / backupbackup.sh
Created August 14, 2011 04:27
Make a rsync backup of my TimeMachine Backups to circumvent dataloss due to "faulty" backups
#!/bin/sh
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the