Ruby has a surprising hack in its interpreter. If the file starts with a shebang line, ruby will skip all lines until it encounters a shebang line which contains the string "ruby" in it. This lets you start out as a shell script and then after some setup switch over to ruby #!/bin/bash rvm use 3 .3.4 exec ruby $0 " $@ " echo "I am a bash line too but I will never run" #!/usr/bin/env ruby puts "I…
I was recently hunting for a good catppuccin wallpaper. I like fairly minimal wallpapers. I liked the catppuccin logo , but couldn't get a minimal-ish wallpaper with that. So, I downloaded that logo into logo.png and created my own wallpaper using imagemagick convert -resize 200x200 -extent 1920x1200 -gravity center -background '#242839' logo.png wallpaper.png So, here goes!
I had to move away from Obsidian to Logseq because I learnt I couldn't keep work notes on it without paying an annual subscription fee.( source ) Obsidian was the first tool I actually stuck with for a while - so it was a bit of a bummer. But Logseq seems perfectly reasonable as a replacement. While the UX still lacks a little polish, it is just as powerful and has better outlining support. Goal:…
Ditching Obsidian for Logseq I discovered that it is not kosher to use Obsidian for work-notes even if I don't share it with anyone. The phrasing in their EULA suggests that if it even indirectly contributes to revenue in a corporate setting, I should buy a commercial license. $50 a year is a little too steep for me. I did pay for a catalyst license several months ago since it was a one-time $25…
After installing elixir on windows using chocolatey, I tried to get working with iex . The default iex -S mix experience in Windows Terminal does not support job control through Control-G and this heavily impairs what iex can do. The fix is rather simple though - simply use iex --werl -S mix
My parents stumbled upon a message stating that we can figure out if anyone is spying on our calls by checking the call forwarding status on Android phones. The message stated that if one types *#62# on their phone, one can retrieve their call forwarding status and if there is a number listed there that you are unfamiliar with it means you are being snooped on. On Airtel phones in India, you might…