Smile every time you sudo

If you want your terminal prompt to look like this every time you sodo, please continue reading. note: i did on ubuntu so for other flavor, file path might be slightly different step 1. download this amazing ascii art text and move to /etc/sudoers.d/sudoers.lecture ❯ curl -O https://caferock.org/chris/groot.txt ❯ sudo cp groot.txt /etc/sudoers.d/sudoers.lecture step 2. edit /etc/sudoers (or /etc/sudoers.d/privacy) Defaults lecture = always Defaults lecture_file = /etc/sudoers.d/sudoers.lecture Let’s see this magnificent art <3 # reset timestamp ❯ sudo -k # some sudo command ❯ sudo -l Cheers!

February 18, 2021 · 1 min · Naoko Reeves

Pretty JSON in Sublime on Linux

I’ve been using JSONLint for every JSON prettifier needs. This site is super because it even format invalid JSON. For example, standard JSON prettifier won’t prettify JSON with key or value enclosed in single quote but this site does but having your local editor do quick prettifier if you have valid JSON or willing to quickly fix with find and replace. Sublime is my go to text editor - taking note, prettify JSON etc. So let’s do that real quick. ...

May 14, 2020 · 1 min · Naoko Reeves