Skip to content

Instantly share code, notes, and snippets.

Moved to a repo: https://github.com/olivergondza/bash-strict-mode/blob/master/strict-mode.sh
@olivergondza
olivergondza / logging.properties
Created February 5, 2018 08:41
Turn on Java logging from console
# java -Djava.util.logging.config.file=logging.properties ...
handlers=java.util.logging.ConsoleHandler
.level=FINEST
java.util.logging.ConsoleHandler.level=FINEST
@ashwin
ashwin / long-command-notification.sh
Last active November 21, 2018 13:55
Show notification in Ubuntu when long duration command finishes execution in fish shell
### Notify on long command completion
# If commands runs >= 10 seconds, notify user on completion
if test $CMD_DURATION
if test $CMD_DURATION -gt (math "1000 * 10")
set secs (math "$CMD_DURATION / 1000")
notify-send "$history[1]" "Returned $status, took $secs seconds"
end
end