- 👋 Hi, I’m @jkonrath
- 📝 I’m interested in docs
- 😶 I don't speak for my employer
More at my blog: https://jonkonrath.com
More at my blog: https://jonkonrath.com
A tutorial (sort of) so I can remember what emacs shortcuts are in macOS
This is so I remember this in a year when I accidentally reset my keyboard again.
1. Set it to Mac mode: **progm + F5**.
1. Remap **Home** to **Ctrl**: **progm + F12**, then **Ctrl**, then **Home**.
1. Remap **End** to **Esc**: **progm + F12**, then **Esc**, then **End**.
@echo off
:: Windows CMD - Make a timestamped directory, prefixed with the first argument.
:: i.e. pass in "proj1" and it creates a directory named "proj1-2020-08-02_09-01-00"
:: It shouldn't be this hard, but it is.
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
# Writing Windows CMD Batch File Stuff
I hope I never have to write another Windows .BAT file again in my life, but if I don't jot this stuff down, I will forget it, and then I will.
## Subroutines
@echo off
rem Go through every file in a directory and replace _ with - in each filename.
rem I'm sure I pasted this from somewhere, no idea.
rem I wouldn't have to do this if people stopped using underscores in filenames.
rem It's bad SEO, and it's that much more typing. Just stop it.