Skip to content

Instantly share code, notes, and snippets.

@bradleybluebean
bradleybluebean / dnsupdate.py
Created May 3, 2018 22:17 — forked from pklaus/dnsupdate.py
dnsupdate is meant to replace nsupdate, the standard DDNS update tool created by BIND authors ISC. While nsupdate does the job it is awkward to wrap in scripts and its usage in general is just not very intuitive. dnsupdate is meant to work well from the command line or from scripts and easy to use. It also does some nice things like automaticall…
#!/usr/bin/env python2.7
# Matt's DNS management tool
# Manage DNS using DDNS features
#
# See http://planetfoo.org/blog/archive/2012/01/24/a-better-nsupdate/
#
# Usage: dnsupdate -s server -k key -t ttl add _minecraft._tcp.mc.example.com SRV 0 0 25566 mc.example.com.
# -h HELP!
# -s the server
# -k the key
@bradleybluebean
bradleybluebean / gist:2ee0beee490da6c76271
Last active September 18, 2017 00:10
Share byobu (tmux version) paste buffer with X clipboard
# Add the following line to your byobu keybindings.tmux file (~/.byobu/keybindings.tmux).
# This will set the key combo ctrl-a, b (control plus 'a', then 'b') to copy the current byobu/tmux paste buffer to the X/Gnome clipboard.
# This example uses parcellite to manage the X/Gnome clipboard so that, obviously, must be installed too.
# parcellite might be able to be replaced with another tool like xsel but that hasn't been tested yet.
bind b run-shell "tmux show-buffer | parcellite > /dev/null >&1"