Old bastard

Old bastard's avatar
Old bastard
npub1vl8x...rtrn
Longpost-enjoyer. Programmer (C, Lisp, weirdo hobby langs, etc.) 徐々に日本語を勉強している。
>On the evening of August 11, 2018, while walking alongside railroad tracks in The Dalles, Davis was struck and killed by a Union Pacific train. Investigators could not determine whether his death was suicide or accidental, although the train engineer believed his death to be a suicide. The police report stated that Davis was walking with his back toward the train and that he turned around before the moment of impact. >When ''The Dalles Chronicle'' ran a story about an unnamed homeless man who was struck by a train, the newspaper was inundated with phone calls inquiring whether it was Davis, which the paper later confirmed in a follow-up piece.
The bind command normally binds a readline command. If you give it -x, it binds Bash code instead. But what if you want both, like you mean to rebind the enter key to do something extra, but want it to otherwise do what the enter key normally does? The answer turns out to be macros. Bind the Bash and the RL commands to separate keys (for example, keys Bash won't even intepret properly if you press them on your actual keyboard) and then concatenate the keys as the \C-m binding. bind -x '"\C-F11":do-bash-stuff-before-accept-line' bind '"\C-F12":accept-line' bind '"\C-m":"\C-F11\C-F12"'
One of my favorite scripts is something I've named "fedithread-tts." It takes a post ID number, downloads the thread (via the Toot CLI program) and filters out timestamps, post numbers, etc, so that I can pipe it to espeak and go get tea while listening to the stupidest conversation that has ever occurred in human history.