Some git Tips and Tricks...

Overview “git gets easier once you get the basic idea that branches are homeomorphic endofunctors mapping submanifolds of a Hilbert space.” - @agnoster Remove files from the repo which are not in the .gitignore git rm --cached `git ls-files -i -c --exclude-from=.gitignore`

January 21, 2025 · 1 min · Warren Kumari

Sublime Text - Cut and Paste without Blank Lines

I use Sublime Text to edit my Snippets. One of the nice features is that you can triple-click a line, and it will select the whole lie. By holding down Command (super) you can select multiple, non-contiguous lines, and then copy and paste them somewhere else. Unfortunately, the triple-click also selects the newline, and so when you paste, you get lots of additional blank lines. This “package” will remove blank lines from the clipboard, so I can paste without the additional blanks....

January 21, 2025 · 2 min · Warren Kumari

OSX Tips and Tricks

This is my small collection of OSX tips and tricks. Generally they are things that I’ve found useful, but which I can never remember. Flushing the DNS Cache dscacheutil -flushcache; sudo killall -HUP mDNSResponder KTrace / Strace equivilent sudo ktrace trace -S -f C3,C4 -s -c <command> Finding last Wireless AP and SSID mac connected to: log show --predicate '(processImagePath contains "configd") && (eventMessage contains "en0: SSID ")' --style syslog --last 1d...

December 23, 2024 · 1 min · Warren Kumari