01-Jan, 2025 - afternoon links, etc.

links, etc op run - NSHipster oh, this is very useful. i should have read up on op run a long time ago.

January 1, 2025 · steve ulrich

TIL: conditional git config

TIL: git supports conditional config for a situation that requires multiple github accounts. you need to be able to toggle a number of config elements to make life happy. git has support for conditional inclusion in the configuration files. if you structure your config and directory structures appropriately you can use the gitdir status to selectively include git configuration elements into the mix, allowing you to toggle between one profile and another....

December 27, 2024 · steve ulrich

TIL: OMZ was overkill, i fixed that

i discovered that i had pretty much winnowed my oh-my-zsh use down to just needing it for the spiffy git prompt updates (i.e., letting me know i had staged/unstaged changes in the current directory hierarchy. turns out eliminating this from my setup was a lot easier than i was expecting. zsh has a really nice vcs_info module that just needs to be tickled into operation. Git - Git in Zsh had just enough to get me moving in the right direction and a little bit of reading the relevant documentation got me to a slightly nicer tweak of the setup....

October 31, 2024 · steve ulrich

rclone (remote) token update

when your super spiffy rclone setup needs a token refresh … ssh into the server remotely with the requisite port forwarding enabled. ssh -L 53682:localhost:53682 username@server update the token rclone config update <myremote> env_auth true do the needful with your OAuth provider meta location: minneapolis, mn weather: 🌫 (Mist) +64°F

December 3, 2022 · steve ulrich

TIL: y is not Y is not year, like you'd think

unicode date format patterns are a little more nuanced than the “standard” strftime() supported formats. note the difference between the following: man strftime (linux) %y The year as a decimal number without a century (range 00 to 99). (Calculated from tm_year) %Y The year as a decimal number including the century. (Calculated from tm_year) man strftime (osx) %Y is replaced by the year with century as a decimal number. %y is replaced by the year without century as a decimal number (00-99)....

December 30, 2019 · sulrich