My personal scripts for installation via brew tap (http://brew.sh)
Tap this repository:
$ brew tap rogeriopradoj/bin
Notify from your Terminal (iTerm2) using terminal-notifier
$ brew install rogeriopradoj/bin/notify
$ something-time-consuming; notify #notifies: Done
# or
$ something-time-consuming; notify "a message" #notifies: a message
Create a utf8 version of any file, prepending a _ (underline) in the generated file
$ brew install rogeriopradoj/bin/utf8
$ utf8 text.txt # not-utf8, i.e. iso-8859-1
# DONE
#
# Final Encoding: utf-8
# Final file: _text.txt
# Original Encoding: iso-8859-1
Update and upgrade [oh-my-zsh], [homebrew], [cask], [mas], [composer]
$ brew install rogeriopradoj/bin/upall
$ upall
# upall: [oh-my-zsh] Upgrading
# .
# upall: [homebrew] Updating
# .
# upall: [homebrew] Upgrading all formulas
# .
Fix broken .apps in Catalina OS patched with Dosdude tools
$ brew install rogeriopradoj/bin/fix-app-catalina-dosdude
$ fix-app-catalina-dosdude -a applicationName
#Example: ./bin/fix-app-catalina-dosdude -a "Google Chrome"
#Password:
#/Applications/Google Chrome.app: replacing existing signature
Run fix-app-catalina-dosdude in several apps in a row
$ brew install rogeriopradoj/bin/fixappall
Ensure that you have a $HOME/.fixappall
file (POSIX-like), filled with app names, one by row, that will be fixed, i.e.:
Google Chrome
Microsoft Teams
Microsoft Edge
LastPass
Brave Browser
In the end, run:
$ fixappall
# Password:
# /Applications/Google Chrome.app: replacing existing signature
# /Applications/Microsoft Teams.app: replacing existing signature
# /Applications/Microsoft Edge.app: replacing existing signature
# /Applications/LastPass.app: replacing existing signature
Extract using ocr text from a image
brew install rogeriopradoj/bin/ocr-image-to-txt
$ ocr-image-to-txt
# > Total images: 1
# .
# > Image source: /Users/rogeriopradoj/contribs/homebrew-bin/Comprovante_2019-05-01_110608 copy.jpeg
# > Txt output: Comprovante_2019-05-01_110608 copy.jpeg.txt
# .
# Tesseract Open Source OCR Engine v4.0.0 with Leptonica
# Warning: Invalid resolution 0 dpi. Using 70 instead.
# Estimating resolution as 321
#
# DONE
# ---
# or
# ---
# > Total images: 0
# .
# > No image files in this folder, /Users/rogerio/contribs,
# > using pattern, @(*.jpg|*.jpeg|*.png)
# .
#
# DONE
#
Git: Checkout to main branch, pull from upstream repo and prune staled branches
$ brew install rogeriopradoj/bin/gitupdate
$ gitupdate
# checkout to main branch
# Switched to branch 'master'
# Your branch is up to date with 'origin/master'.
#
# pull from origin
# ..
# Fast-forward
#
# fetch pruning