This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "forked" from here, but fork button wasn't working, so copy/pated... | |
// https://gist.github.com/walm/e61b5e44b37a67c6eaa1e7c048ef7bf1 | |
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"regexp" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env zsh | |
if git rev-parse --git-dir > /dev/null 2>&1; then | |
: # This is a valid git repository (but the current working | |
# directory may not be the top level. | |
# Check the output of the git rev-parse command if you care) | |
REMOTE=`git remote -v` | |
BRANCH=`git status` | |
CURPATH=`git rev-parse --show-toplevel` | |
DIR=`pwd` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#note this depends on having the script at the gist below available by calling relapth.sh | |
#https://gist.github.com/cokert/089100625c6ebed2d10650b223cb7ca4 | |
if [ -z $1 ] | |
then | |
echo "destination not supplied" | |
exit 1 | |
fi | |
SRC=${PWD} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/a/12498485/88066 | |
# both $1 and $2 are absolute paths beginning with / | |
# returns relative path to $2/$target from $1/$source | |
source=$1 | |
target=$2 | |
common_part=$source # for now | |
result="" # for now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "TimTom's Mods", | |
"rules": [ | |
{ | |
"description": "Cmd+D == Cmd+L in Chrome Firefox and Safari", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOKEN=<DNSIMPLE-TOKEN> | |
ACCOUNT=<ACCOUNTID> | |
ZONE=<ZONEID-OR-DOMAINNAME> | |
RECORD=<RECORDID> |