diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..75fd2b8 Binary files /dev/null and b/.DS_Store differ diff --git a/List Filter Images/redact.png b/List Filter Images/redact.png new file mode 100644 index 0000000..79a69d3 Binary files /dev/null and b/List Filter Images/redact.png differ diff --git a/info.plist b/info.plist index 94cbf89..21da5d4 100644 --- a/info.plist +++ b/info.plist @@ -208,6 +208,7 @@ echo -n $dest {"imagefile":"20.png","title":"urlencode","arg":"pbpaste | python3 -c 'import sys; import urllib.parse; print(urllib.parse.quote(sys.stdin.read()))'","subtitle":"Url encode"}, {"imagefile":"json.png","title":"json","arg":"./to_json.sh","subtitle":"Convert to nice json"}, {"imagefile":"b64.png","title":"base64","arg":"./base64.sh","subtitle":"Convert to and from base64"}, + {"imagefile":"redact.png","title":"redact","arg":"./redact.sh","subtitle":"Remove sensitive information"}, {"imagefile":"update.png","title":"update","arg":"update","subtitle":"Update to the latest and greatest"} ] keyword @@ -455,7 +456,7 @@ echo -n $dest ~/bin:~/.local/bin:~/.brew/opt/coreutils/libexec/gnubin:~/.brew/opt/make/libexec/gnubin:~/.brew/opt/grep/libexec/gnubin:~/.brew/opt/findutils/libexec/gnubin:~/Library/Python/3.7/bin:~/.brew/opt/python/libexec/bin:~/.brew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin::~/.brew/opt/fzf/bin version - 0.2.4 + 0.3.0 webaddress https://github.com/mhristof/alfred-pbpaste diff --git a/redact.sh b/redact.sh new file mode 100755 index 0000000..a6cbac1 --- /dev/null +++ b/redact.sh @@ -0,0 +1,17 @@ +#! /usr/bin/env bash + +pbpaste | while IFS= read line; do + aws_key=$(echo $line | grep -oP '(?