From 0d36f5b7da3f46b9a74cdcac8ecad27c5af0d515 Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 18 Oct 2023 21:55:07 -0600 Subject: [PATCH] basic bitch obfuscation of email, telephone --- src/homebrew/homebrew.html | 6 +++--- src/homebrew/homebrew.sh | 16 ++++++++++++++-- src/homebrew/homebrew.yaml | 6 +++--- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/homebrew/homebrew.html b/src/homebrew/homebrew.html index e063138..bb41fc9 100644 --- a/src/homebrew/homebrew.html +++ b/src/homebrew/homebrew.html @@ -45,14 +45,14 @@ - - contact@blapointe.com + + contact@blapointe.com - + (336) 701-6159 diff --git a/src/homebrew/homebrew.sh b/src/homebrew/homebrew.sh index 5786572..0e7891f 100644 --- a/src/homebrew/homebrew.sh +++ b/src/homebrew/homebrew.sh @@ -7,11 +7,23 @@ if ! which gojq; then go install github.com/itchyny/gojq@latest fi &> /dev/null +html_escape_str() { + local str="$1" + for i in $(seq 0 $(("${#str}"-1))); do + LC_CTYPE=C printf '&#%d;' "'"${1:i:1} + done +} +html_escape_str contact@blapointe.com + while sleep 1; do - date cat ./homebrew.yaml \ + | sed "s/@/$(html_escape_str @ | sed 's/\&/\\\&/g')/g" \ + | sed "s/mailto:/$(html_escape_str mailto: | sed 's/\&/\\\&/g')/g" \ + | sed "s/tel:/$(html_escape_str tel: | sed 's/\&/\\\&/g')/g" \ | gojq --yaml-input . \ | tpl --file homebrew.tmpl \ - > ./homebrew.html + | tee ./homebrew.html \ + > /dev/null + date done diff --git a/src/homebrew/homebrew.yaml b/src/homebrew/homebrew.yaml index 34e8104..77c2ac1 100644 --- a/src/homebrew/homebrew.yaml +++ b/src/homebrew/homebrew.yaml @@ -6,11 +6,11 @@ resume: title: 'Senior Software Engineer' contact: links: - - text: contact@blapointe.com - link: mailto:contact@blapointe.com + - text: 'contact@blapointe.com' + link: 'mailto:contact@blapointe.com' svg: '' - text: (336) 701-6159 - link: tel:3367016159 + link: 'tel:3367016159' svg: '' - text: Provo, UT svg: ''