Clone a Raspberry Pi OS image from one Micro SD card onto another

Find your Micro SD card identifier diskutil info -all You’re looking for something like this: ********** Device Identifier: disk2 Device Node: /dev/disk2 Whole: Yes Part of Whole: disk2 Device / Media Name: SD Card Reader Volume Name: Not applicable (no file system) Mounted: Not applicable (no file system) File System: None Content (IOContent): FDisk_partition_scheme OS… Continue reading Clone a Raspberry Pi OS image from one Micro SD card onto another

Automate connecting to temporary and rotating development servers

I rotate a lot of short-lived VPS instances for testing and development. A lot of them are hosted with Oracle Cloud free tier, and so rotating them is effortless: they are all created using the same instance configuration, recognize the same SSH keys etc. On my Mac OS, however, it took me a while to… Continue reading Automate connecting to temporary and rotating development servers

Recursive grep in a directory on macOS

If you need to look for a literal string in a directory and all its subdirectories, use grep -rF "your.literal.string" . -r or –recursive: Recursively read all files under each directory. -F or –fixed-strings: Treat the pattern as a literal string (not a regular expression). This is important if your string contains characters like .… Continue reading Recursive grep in a directory on macOS