Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard Banasiak banasiak

View GitHub Profile
@banasiak
banasiak / DefaultKeyBindings.dict
Last active Oct 29, 2018 — forked from Jimbly/DefaultKeyBindings.dict
Mac OSX keybindings to more closely match Windows
View DefaultKeyBindings.dict
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more closely
match default behavior on Windows systems.
You must log out and back in to see these changes.
Here is a rough cheatsheet for syntax.
Key Modifiers
^ : Ctrl
$ : Shift
@banasiak
banasiak / update-digitial-ocean-dns.sh
Created Sep 13, 2018 — forked from kenmickles/update-digitial-ocean-dns.sh
Shell script to dynamically update a Digital Ocean DNS record
View update-digitial-ocean-dns.sh
#!/bin/bash
TOKEN="Get token from https://cloud.digitalocean.com/settings/applications"
DOMAIN=example.com
RECORD_ID=12345
IP=`curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'`
# to get record id:
# curl -X GET -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN" "https://api.digitalocean.com/v2/domains/$DOMAIN/records"
You can’t perform that action at this time.