Finding AWS region closest to your server with a shell script

For something more sophisticated and less manual, use ekalinin/awsping. The below script will ping every region (or a subset of regions) and output the latency. Here’s the full list of AWS regions as of November 2022: Africa (Cape Town): af-south-1 Asia Pacific (Hong Kong): ap-east-1 Asia Pacific (Tokyo): ap-northeast-1 Asia Pacific (Seoul): ap-northeast-2 Asia Pacific… Continue reading Finding AWS region closest to your server with a shell script

Kindle stuck on “Weak Battery” and won’t take charge

I haven’t used my kindle for a while and when I opened it, it gave me the "Batterie Faible" ("Weak Battery") error message, asking me to connect it to a power source, which made sense after a month of inactivity so I’ve put it on charger. However, an hour went by but the error didn’t… Continue reading Kindle stuck on “Weak Battery” and won’t take charge

Reword a commit message without changing the commit date

If you want to rebase-edit the commit message in an old commit, and keep the original commit date, you can do that using the –committer-date-is-author-date flag. Here’s how: Find your old commit that you want to edit and copy its hash Run git rebase -i hash^ Find your commit in the list that shows up… Continue reading Reword a commit message without changing the commit date

Quick and dirty Raspberry PI desktop

apt-get update && apt-get upgrade apt-get install –no-install-recommends xorg openbox lightdm fbpanel onboard Enable Desktop Autologin and HDMI audio sudo raspi-config Fix HDMI audio for old TVs sudo vi /boot/config.txt Autostart fbpanel: echo "fbpanel &" > ~/.config/openbox/autostart More: https://www.reddit.com/r/openbox/comments/7zizxn/cant_get_openbox_to_turn_off_antialiasing/