TIL: How to set the author identity in git for all projects under a single parent directory
Blog (#til)
2025 (9)
TIL: Why pixel art images should be scaled and how to do it with imagemagick
TIL: How to serve your local website over HTTPS
TIL: How to record a video of the HTML canvas element using JavaScript
TIL: How to setup MongoDB for local development
TIL: How to link to a specific piece of text on a webpage
TIL: How to mount an SMB share on Mac OS programmatically using Rust
TIL: How to read in a rust program at run-time the environment variables that were only defined at build-time
TIL: How to access entries from MacOS Keychain programmatically, specifically an SMB share's record
2024 (4)
TIL: How to specify different author and committer for a commit in git
TIL: How to delay all subtitles in a file by a fixed amount using ffmpeg
TIL: If you know the password then you can remove it from PDF files using qpdf
TIL: How to output text with echo without a newline at the end of it
2023 (14)
TIL: How to add a not null constraint to an existing column in a PostgreSQL table
TIL: How to add unique constraint to an existing column in a PostgreSQL table
TIL: Settings change on Mac to avoid having .DS_Store files being created on USB and Network shares
TIL: Shell command to recursively remove .DS_Store files
TIL: How to return custom response for a 404 in Express on NodeJS
TIL: How to write a simple SVG which renders an emoji as a favicon
TIL: How to do for python what we get with `dependencies` in npm `package.json`
TIL: How to map an array in postgres to other data
TIL: You can use the extract function to find difference in days between 2 dates
TIL: How to get the first entry from each group given a sort order
TIL: How to navigate to a given system path without clicking through folders
TIL: How to view your most used terminal commands on a Mac
TIL: How to download a file with wget to a custom filename
TIL: How to take heap-dump from a running JVM process
2022 (4)
TIL: Why Figma returns empty styles in API and how to fix it
TIL: How to provide username and password for simple authentication when downloading files using wget
TIL: What are non-capturing groups and how we can use them
TIL: India has a species of dolphin as its national aquatic animal.
2021 (10)
TIL: How to see a list of files updated in a git commit
TIL: How to center (horizontally and vertically) elements with CSS.
TIL: Resizing images from command-line while centering them and adding a transparent background.
TIL: Turns out that 7.5.toBigDecimal() and 7.50.toBigDecimal() are not equal
TIL: You cannot castle your king in chess if king's path is under threat
TIL: What are "ugh fields" and why everyone should atleast know about them.
TIL: Ctrl+X followed by Ctrl+E opens the command you are currently editing in your $EDITOR program
TIL: Google doesn't return refresh token on subsequent authentication after the first one.
TIL: JavaScript can throw anything
TIL: How to support dark-mode preference of browser via CSS