Some notes, mostly hack workarounds, that don’t warrant a full page but I seem to keep forgetting and/or have to search for repeatedly. Sorted loosely by arbitrary category.
Ubuntu (14.04, 16.04)
ip addr flush [ifname], then restart networking to have the changes to
interfaces(5)be applied. Simply restarting networking does not work.
systemctland will disregard upstart scripts. If you have to test upstart scripts, you can pull them out of that directory and run them manually.
journalctl -D /path/to/journal/files– read journal files at specified path
git patchdiffs can be applied with
patch -p1 < patchfile
- To revert to commit hash n: create a branch off of the branch you want to revert,
git revert --no-commit n+1..HEAD, then commit. You can revert a revert, if you need the change back.
git revertasks for a parent, it refers to the branch you’re reverting from.
- vi key-bindings in tmux:
set-window-option -g mode-keys viin .tmux.conf, or set for the session.
- SSL/TLS protocol scanning:
nmap -sV --script ssl-enum-ciphers -p (port) (address)