From 5ac60b4ae6e3d27559b5aa8c6eba0c2711bc8341 Mon Sep 17 00:00:00 2001 From: trimstray Date: Wed, 2 Oct 2019 07:43:43 +0200 Subject: [PATCH] minor fix (b>); add revisionist.go - signed-off-by: trimstray --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5bd1ba5..3070163 100644 --- a/README.md +++ b/README.md @@ -839,7 +839,7 @@ performance of any of your sites from across the globe.
  :small_orange_diamond: how-web-works - based on the 'What happens when...' repository.
  :small_orange_diamond: HTTPS in the real world - great tutorial explain how HTTPS works in the real world.
  :small_orange_diamond: Gitlab and NFS bug - how we spent two weeks hunting an NFS bug in the Linux kernel.
-  :small_orange_diamond: Gitlab melts down/b> - postmortem on the database outage of January 31 2017 with the lessons we learned.
+  :small_orange_diamond: Gitlab melts down - postmortem on the database outage of January 31 2017 with the lessons we learned.
  :small_orange_diamond: How To Become A Hacker - if you want to be a hacker, keep reading.
  :small_orange_diamond: Operation Costs in CPU - an infographics which should help to estimate costs of certain operations in CPU clocks.
  :small_orange_diamond: Let's Build a Simple Database - writing a sqlite clone from scratch in C.
@@ -1446,7 +1446,8 @@ sort -nr | nl | head -n 20 ```bash function sterile() { - history | awk '$2 != "history" { $1=""; print $0 }' | egrep -vi "\ + + history | awk '$2 != "history" { $1=""; print $0 }' | egrep -vi "\ curl\b+.*(-E|--cert)\b+.*\b*|\ curl\b+.*--pass\b+.*\b*|\ curl\b+.*(-U|--proxy-user).*:.*\b*|\ @@ -1455,12 +1456,14 @@ curl\b+.*(-u|--user).*:.*\b* wget\b+.*--.*password\b+.*\b*|\ http.?://.+:.+@.*\ " > $HOME/histbuff; history -r $HOME/histbuff; + } export PROMPT_COMMAND="sterile" - ``` + > Look also: [A naive utility to censor credentials in command history](https://github.com/lbonanomi/go/blob/master/revisionist.go). + ###### Quickly backup a file ```bash @@ -1555,6 +1558,7 @@ for i in {1..10} ; do echo $i ; done ```bash unset MAIL; export MAILCHECK=1; export MAILPATH='$FILE_TO_WATCH?$MESSAGE' + ``` ___