aral, to random
@aral@mastodon.ar.al avatar

A couple of command-line tools I’ve recently switched to using:

  • yazi as file manager instead of lf (fast and, for me at least, more intuitive and better handles default editor)

https://terminaltrove.com/yazi/

  • ouch for compression/decompression from CLI instead of getting the fucking unintuitive flags wrong every fucking time

https://terminaltrove.com/ouch/

(Thanks to @orhun for the recent link to Terminal Trove for the new finds.)

orhun, to random
@orhun@fosstodon.org avatar

Some of y'all ask how I find cool terminal tools 🤔

🌐 Here is one of my sources: https://terminaltrove.com

🖥️ The $HOME of all things in the terminal.

💖 Also, big shout-out to @terminaltrove for sponsoring me on GitHub!

scy, to linux
@scy@chaos.social avatar

Hot take:

Every terminal emulator that interprets "bold" as "make the foreground color brighter" has a bug.

Every terminal program that relies on "bold" to be interpreted as "make the foreground color brighter" has a bug.

Foreground colors 90 to 97 (and, by the way, background colors 100 to 107) exist and are unambiguous. Use them, ffs.

f3rno64, to programming
@f3rno64@aus.social avatar

As I've noticed it's #PortfolioDay and have seen some wonderful artwork posted by people, as a programmer, I'd like to share a project I made, a command line time tracker with the purely textual interface.

Since I spent a good deal of time designing the textual output and UX I figure it's akin to art.

The interface is natural language input of times and dates representing when you start and end tasks.

It's available at https://f3rno64.io/a-nodejs-cli-time-tracker and the associated blog post is at https://f3rno64.io/a-nodejs-cli-time-tracker

#programming #tech #cli #nodejs #terminal

A list of timesheets and the sum of the durations of tasks within them.
A concise listing of a short period of time in a timesheet with a few tasks listed.

juandesant, to random
@juandesant@astrodon.social avatar

I tend to follow the logic of awk better than the one of sed (not being a vi enthusiast), but it is good to see when one might be better than the other:

https://www.linuxjournal.com/content/text-manipulation-linux-awk-vs-sed

scy, to til
@scy@chaos.social avatar

that you can ask APT to install some packages and uninstall others in a single invocation.

To do that, add a + or - symbol to the end(!) of the package name(s). For example,

apt install neovim emacs-

or

apt remove neovim+ emacs

both do the same thing: Install Neovim and remove Emacs in a single operation.

scy, to Bash
@scy@chaos.social avatar

Friendly reminder that

#!/bin/sh
set -e

is better than

#!/bin/sh -e

because the latter stops working when you do "sh script.sh" instead of "./script.sh".

RichiH, to random
@RichiH@chaos.social avatar

telnet mapscii.me is the coolest thing you'll see all day, maybe all week.

ReK2, to usenet
@ReK2@pxlmo.com avatar

https://hispagatos.space/@rek2/112231145240283887 Stop Electron, stop using a browser as if it was an Operating System!!! Go use your OS, not the browser for everything! And be liter, more ethical, your computer will love you! Use on TUI apps as your text/IDE for videos and more... !!!

rek2, to usenet
@rek2@hispagatos.space avatar

Stop Electron, stop using a browser as if it was an Operating System!!! Go use your OS, not the browser for everything! And be liter, more ethical, your computer will love you! Use on TUI apps as your text/IDE for videos and more... !!!

image/png

fabrixxm, to vim

when you've been using a -like editor all day and you open

juandesant, to linux
@juandesant@astrodon.social avatar

The post is titled “grep examples in Linux”, but they are equally valid everywhere, specially if you install the GNU variants:

https://itsfoss.com/grep-command/

hoyd, to random Norwegian
@hoyd@mastodon.scot avatar

Forgot to give a name to a screen when starting it? Find the id with $ screen -list and rename it like this: $ screen -rd id_number -X sessionname new_screen_name

@climagic
@nixCraft
#commandline #cli

archer72, to linux
@archer72@mastodon.sdf.org avatar

alias ds='date +"%Y_%b_%d_%H_%M_%S_%N"'

If a file is made in this way: "ds"
the output will look like this.

ie.
todo_2024_Mar_31_04_23_31_051692831.md

If there is a better way, comments are welcome.

eclecticpassions, to Bash
@eclecticpassions@fosstodon.org avatar

New post on my Hugo blog! It's about using a script to help load weather data faster in , via wttr.in.

https://www.burgeonlab.com/posts/2024/speed-up-loading-times-wttr-neofetch/

Credit to @adamsdesk for sharing his original script on his blog. https://www.adamsdesk.com/posts/neofetch-weather-data-caching/


janriemer, to rust

for

https://rust-for-linux.com/coccinelle-for-rust

"Coccinelle is a tool for automatic program matching and transformation that was originally developed for making large scale changes to the Linux kernel source (ie, C code)."

- GritQL is a language for searching, , and modifying code.

https://docs.grit.io/

- A tool for code structural search, lint and rewriting. Written in :ferris:

https://ast-grep.github.io/

davidbisset, (edited ) to ai
@davidbisset@phpc.social avatar

Interesting. Butterfish adds prompting to your shell (bash, zsh) with OpenAI. "Think Github Copilot for shell".

https://butterfi.sh/

Nice and helpful for command line folks who ask “Give me a command to do x” and
“Why did that command fail?”.

toxision, to linux
@toxision@mastodon.social avatar

I am working on a little script for yt-dlp+fzf
Problem is that I don't want the marked info-lines to be shown. So basically I would like to get everything, starting from the table header. Is there an easy way to alter the output? Note that piping cut, tail, head or similar is not an option. The online help of is very simple and the --help is a bit overloaded with way too many information.

changelog, to rust
@changelog@changelog.social avatar

Monolith is a CLI for saving complete web pages as a single HTML file

🔗 https://github.com/Y2Z/monolith

WebAxe, to webdev
@WebAxe@a11y.info avatar

Pa11y — run web accessibility tests the via command line or Node
https://github.com/pa11y/pa11y

davidbisset, to webdev
@davidbisset@phpc.social avatar

"Monolith" is a tool for saving complete web pages as a single file.

Embeds , image, and assets all at once, producing a single HTML5 document

https://github.com/Y2Z/monolith

https://crates.io/crates/monolith

5am, to LLMs
@5am@fosstodon.org avatar

I've been playing around with locally hosted using the tool. I've mostly been using models like mistral and dolphin-coder for assistance with textual ideas and issues. More recently I've been using the llava visual model via some simple , looping through images and creating description files. I can then grep those files for key words and note the associated filenames. Powerful stuff!

tixie, to macos
@tixie@guerilla.studio avatar

You can simply write open . into your macOS termincal to open a Finder window (the file browser) from the directory you're current.

Works also by replacing the dot by any path to open the directory of your choice.

opening the Finder into my ISOs folder by typing open ISOs/ in my terminal

tripplehelix, (edited ) to Twitch
@tripplehelix@fosstodon.org avatar

Made a number of improvements to my script since I last posted about it.

My little experiment with . "Twinge".

https://gitlab.com/tripplehelix/twinge

5am, to security
@5am@fosstodon.org avatar

Need an easy and secure way to send a password to someone (typically as a one-off)? I wrote about a solution, the Password Pusher tool:
https://www.samhowell.uk/posts/2024/03/sending-passwords-securely/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • Durango
  • khanakhh
  • kavyap
  • megavids
  • everett
  • vwfavf
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ngwrru68w68
  • anitta
  • provamag3
  • tester
  • modclub
  • JUstTest
  • All magazines