Haseeb Majid
  • Posts
  • Projects
  • TIL
  • Talks

#bash · 4 posts · RSS ↗

13 Nov 2026

TIL - How to Escape Single Quotes in Nix Indented Strings

Recently I was moving my pi sessions to XDG directories and hit an issue putting a Bash script inside a Nix indented string. The script used read -r -d '' to …

↗
30 Jun 2024

Rewriting a Python script as a Bash one-liner

In this post, I will describe how I went about replacing a Python with a bash liner and how it decreased the runtime from 30 seconds to 1 second Background For …

↗
30 Dec 2023

TIL: How to Use Default Values in docker-compose.yml

TIL: How to Use Default Values in docker-compose.yml Sometimes we want to use env variables in our docker-compose files like so: snippet.yaml services: client: …

↗
01 Nov 2023

TIL: How to Use Clipboard Data as File Input in Bash

TIL: How to Use Clipboard Data as File Input in Bash Recently, I wanted to run a bash script where it needed to receive a JSON file as input. However, the JSON …

↗
© 2026 Haseeb MajidDeploys code 💻. Bowls a few overs 🏏. RSS Site history Stats ↗
Search / writing, talks, topics
❯

    ↑ ↓ navigate ↵ open esc close