If you want to use Mastodon through a command line interface or text-based user interface, there's a tool you can install which offers both called "toot":
I love how there's absolutely no complete documentation of the various error counters for ethtool -S available, that makes debugging a network connection such a joy.
WARP is a new Closed-source Terminal written in Rust with AI built in, and it functions a lot like an IDE, rather than a traditional terminal.
The link above contains a really impressive demo video. The features are too numerous to list here, I highly suggest you click through and read the article at OMGUbuntu and watch the video.
“source” is a #bashism. The actual #POSIX name of the command is “.”. That’s right, a single dot.
Many people expect . to be some kind of a shortcut for “source”, and yes, they’re equivalent in #bash, but “source” is not guaranteed to exist in other shells. dash doesn’t have it, for example.
So, if you want to write your shell scripts as compatible as possible, use “.”, not “source”.
I've built a PoC #mp4 meta tag editor for the #browser in vanilla #javascript that pretends to run in a #crt#terminal. Pretty stupid combo, I know :-) But I had a lot of fun building it!
(It's meant to be used with #m4a#audio files but seems to work with video too and it requires a browser with the File System Access API enabled.)
If you ignore what they're supposed to mean (in some cases), Unicode has a lot of symbols that could probably be used more in #CLI in place of emoji (which can't be styled)
(Caveat, this probably isn't great for accessibility, so have an option to turn it off)
TL;DR: What is causing my X.org keymap to change unsolicited for, and how can I prevent it?
When I log in to my X.org based desktop environment on Linux a custom keymap is set from ~/.Xmodmap. This is all fine and dandy.
However, at odd times — perhaps every day or two — the keymap mutates into something else, that could be the default X.org keymap, and I have to run “xmodmap ~/.Xmodmap” to get back to where I want to be.
I haven't been able to correlate these events with anything, but of course systemd is always a strong contender for such anomalies…
Has anyone else experienced the same thing and found a way to prevent it?
Did you know that you can set an initialization file for the #Python#REPL (aka "interactive mode")?
I use this to auto-import "os" and "sys" in every interactive Python, as well as the rich library (if installed) to provide pretty-printed and syntax-highlighted output for expression results.
Basically, just set the environment variable PYTHONSTARTUP to the path to your initialization file.
I don't understand why people publish videos about #CLI tools.
Your audience would certainly prefer a text publication in the form of a blog post or wiki.
It permits copy/paste and can be easily saved locally.
;-)
can be used to compare two files using git diff, even if they are not managed by #Git at all. This is nice because it provides colors, auto-pager and all of the other niceties that git diff has.
However, I wonder: Suppose I already have a #diff (aka #patch) file, created by some other tool, or downloaded, or whatever. Can I use Git to “syntax-highlight” that file in the #terminal (e.g. show + lines in green, - lines in red etc.)?
It’s bloody 2024, think we can agree on either wget or curl being installed by default on every freaking operating system by now so shell scripts can have a guaranteed way of carrying out http requests?
I mean it’s been about 35 years. I think it’s about time.
Trying out bat (the cat(1) alternative) for the first time, and … I dunno, the flushing behavior seems bonkers.
I assume it's because stdout and stderr end up in separate places, and maybe cat isn't innocent here either, but having the output split inside of an escape code (note the "31m") looks like there's something really wrong.
("bar" does not exist; that's on purpose to produce an error message.)
Execute commands for multiple files using fish (danielrotter.at)
Quite often I want to execute the same command for multiple files. It is quite easy to achieve that using the fish shell, once you get the hang of it.