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
#!/bin/bash | |
# parameters | |
DOMAIN="sub.example.org" | |
USERNAME="" | |
PASSWORD=$FRITZ_PASSWORD | |
PRIVATE_KEY="~/.acme.sh/$DOMAIN/$DOMAIN.key" | |
FULLCHAIN="~/.acme.sh/$DOMAIN/fullchain.cer" | |
CERTPASSWORD="" | |
HOST=http://fritz.box |
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
function newLog(oldLog) { | |
return function() { | |
var args = Array.prototype.slice.call(arguments, 0); | |
document.getElementById('console-log').innerText += args.join(" ") + "\n"; | |
oldLog.apply(this, args) | |
} | |
} | |
console.log = newLog(console.log) | |
console.error = newLog(console.error) |
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
# add it to your ~/.gitconfig as an alias: | |
[alias] | |
timetrack = "!f() { \ | |
git --no-pager log \ | |
--date=iso \ | |
--since="${1-2 months}$" \ | |
"${2}" \ | |
--date-order \ | |
--full-history \ |