Travel with AI

In the past two months, I’ve been traveling through South Korea, Qatar, and Turkey. Along the way, I found AI tools surprisingly useful and want to share a few practical ways I’ve been using them. It feels like we’re witnessing a kind of paradigm shift in how we travel.

Read More...


Myth of Optimization

I always tried to optimize my way of organizing tasks.

Back in junior and high school, I used notebooks. Around 2014, during college, I switched to using Google Sheets. In 2018, I turned to Evernote. Then, in 2021, after entering the workforce, I began using Notion.

In late 2022, I took it a step further — I tried to manage everything using tools I built from scratch.

Read More...




Matsu Kaliu

Last month, my wife and I spent about 2 weeks in Matsu, where time seemed to be frozen on the island. The pace was slow enough to ride a bike on the road at 25 km/hr without any other vehicles around, feeling the wind gently brush through the face.

I found it very correct to bring the book “Four Thousand Weeks” to Matsu. I slowly read this book during the travel. The book discusses the concept of “life is enough for everyone”, we just have to enjoy the moment and don’t blame ourselves too much.

Read More...




GPG AES 256 encrypt and decrypt

Encrypt

1
2
3
4
5
6
gpg --cipher-algo AES256 \
--no-symkey-cache \
--batch --pinentry-mode loopback \
--passphrase "STRONG_PASSWORD" \
--output ENCRYPTED_FILENAME --symmetric FILENAME

Decrypt

1
2
3
4
gpg --no-symkey-cache \
--batch --pinentry-mode loopback \
--passphrase "STRONG_PASSWORD" \
--output DECRYPTED_FILENAME --decrypt ENCRYPTED_FILENAME

Option explanation

If directly using gpg -c XXX and gpg -d XXX the gpg-agent will prompt the password asking dialog.

See GPG manual:

1
2
3
4
If this command is used with --batch, --pinentry-mode has been set to loopback,  and  one  of
the passphrase options (--passphrase, --passphrase-fd, or --passphrase-file) is used, the
supplied passphrase is used for the new key and the agent does not ask for it. To create a
key without any protection --passphrase '' may be used.

So just set it with --batch and --pinentry-mode loopback, then can use the --passphrase.

--no-symkey-cache to disable symmetric key cached and --cipher-algo to set algorithm.

Read More...