Whenever I need to create a quick #cli script (and I can't easily do it in #bash or #zsh) without tests and for ease, I'll typically use #python. I've spotted others doing the same in #nodejs, #php, etc. Does everyone go back to the language they're most familiar with in these scenarios?
It was one time too many that cut didn't do what I wanted it to do. I decided to create my own alternative that works similarly but splits strings by arbitrary whitespaces. It does only this, but 99% of the time this is what I would expect cut to do. I called it knife 🔪, so it is easy to remember as a drop-in replacement. #rust#cli#unixhttps://github.com/twolodzko/knife
"Coccinelle is a tool for automatic program matching and transformation that was originally developed for making large scale changes to the Linux kernel source #code (ie, C code)."
Default #Lynx install colors seems to have a lot of white/gray text on light blue background. This combo has too little contrast. I cannot see what it is telling me. 😮 #CLI
Unix wishlist: A flag for tee(1) that will have it read from stdin and write into its output file(s) as fast as possible.
Currently, it will only read from stdin as fast as its own stdout can process the data, even if stdin could supply it faster.
Instead, if it wrote to the file(s) as fast as possible and serve stdout from these files, stdin could be depleted and closed faster, which is (e.g.) nice to the web server if stdin is curl or something.
Today in User Space
📈We enable MORE #telemetry
🐧Get enticed by #immutable distros
📖Look back into our own personal #history
🗒️Fall down the #notes rabbit hole
🎨And add a splash of color to our #CLI
Any good cli/terminal spell checking programmes? Pass in a file, get an terminal interactive “replace this with that / ignore / add to dict.” workflow.
I remember using aspell(1) back in Ye Olden Days. Is that still the best?
After #GUI, I've now pushed implementation of a #TUI output in #Libervia#CLI frontend, which shows A/V call video streams directly into your terminal! It's using #Kitty or #iTerm2 image protocols, or #Unicode half-blocks (thanks to #termimage)
I'm not aware of any other CLI tools doing something similar (#XMPP or not). It's not as useful as GUI, but it's quite fun :)
Quand t'as une clé USB soit-disant en "read only filesystem" sur laquelle tu ne peux plus copier de nouveaux fichier, supprimer des fichiers ou en éditer :
dosfsck est ton ami !
Trouve le moint de montage :
sudo fdisk -l
démonter la clé
sudo umount /dev/sda1 (le point de montage trouvé par la commande précédente)
sudo dosfsck /dev/sda1
Et tu réponds 1 à toutes les propositions de corrections ! (ou presque...use your brain !)
...sur un malentendu ça marche...
How can I “parse” HTML from the command line? I want to get the current favicon of a page.
in CSS that's selected with head link[rel~=icon]. Is there a linux CLI tool so I can curl example.com | extract_html_node "head link[rel~=icon]" (and then the href attribute somehow).
With xmlstartlet I can use xpath (//head//link@rel='icon'/@href), but I know I can't rely on it being valid XML 😉
vim is my code editor of choice. writing tool of choice. config tweaker. UI mockup tool. and on and on...
my latest game under dev (Slartboz, in Golang) is written 100% using vim. and Slartboz itself is a curses-based program which runs in a Unixy terminal & shell. like vim
few perfectly good & truly wonderful things in our world. vim is among them