2025-07-29

Disable key repeating when using vi on Warp terminal

SYSTEM WIDE

$ defaults write -g ApplePressAndHoldEnabled -bool false


ONLY FOR WARP

$ defaults write dev.warp.Warp-Stable ApplePressAndHoldEnabled -bool false


 

2022-11-25

Convert UTF-8 nfd to nfc WHEN adding files into a folder on MacOS

1. when adding files into a folder
/usr/local/bin/convmv -f utf8 -t utf8 --nfc --notest -r /Users/dee/Downloads/
2. select a folder then convert
/usr/local/bin/convmv -f utf8 -t utf8 --nfc --notest -r "$1"

2021-07-01

Remove password from pdf file using ghostscript

Remove password from pdf file using ghostscript
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPDFPassword=PASSWORD -sOutputFile=OUTPUT.pdf -f ENCRYPTED.pdf
Install GhostScript on Mac
$ brew install ghostscript