CLI Tools

  1. git-sim: Visually simulate Git operations in your own repos with a single terminal command
  2. enhancd: A next-generation cd command with your interactive filter
  1. So you’ve installed fzf. Now what?
  2. Bringing my GitHub workflow into Neovim using 1Password CLI
  3. I’m Now a Full-Time Professional Open Source Maintainer
  4. Use sysfs to restart failed PCI devices

Tip of the Week

Creating files with defined sizes:

# method 1: create a full file
% dd if=/dev/zero of=/tmp/disk1.img bs=2GB count=1
% du -h /tmp/disk1.img
1.9G    /tmp/disk1.img
% du -h --apparent-size /tmp/disk1.img
1.9G    /tmp/disk1.img

# method 2: create a sparse file
% truncate -s 2GB /tmp/disk2.img
% du -h /tmp/disk2.img
0       /tmp/disk2.img
% du -h --apparent-size /tmp/disk2.img
1.9G    /tmp/disk2.img

# method 3: create a file with reserved space
% fallocate -l 2GB /tmp/disk3.img
% du -h /tmp/disk3.img
1.9G    /tmp/disk3.img
% du -h --apparent-size /tmp/disk3.img
1.9G    /tmp/disk3.img