r_bash – Telegram
robohelp - A Fast & Friendly CLI for Linux!

Introducing robohelp - A Fast & Friendly CLI for Linux!

At the moment im building robohelp (not to be confused with adobe's robohelp), a lightweight command-line utility designed to make system maintenance on different Linux distributions faster and easier. Whether you’re updating packages, cleaning up unused stuff, or automating routine tasks, robohelp does it with a simple set of commands.

I tryed to build it with simplicity and efficiency in mind, robohelp makes your everyday Linux tasks smoother (hopefully).

Check it out on GitHub: https://github.com/H14d3n/robohelp

Hope you like it and if you want, you can leave a review down below.

https://redd.it/1qwl8mo
@r_bash
A Bash wrapper I wrote to manage multiple Docker Compose projects (looking for feedback)

I’ve been running into the same annoyance on servers and homelab machines: managing a growing number of unrelated Docker Compose projects spread across different directories.

Rather than relying on aliases or strict directory conventions, I ended up writing a small Bash wrapper that lets me refer to Compose projects by name and run `docker compose` commands from anywhere.

Example usage:

dcompose media
dlogs website
ddown backup

From a Bash perspective, the noscript:

* auto-discovers Compose projects in a set of common base directories
* keeps a simple registry file for manually added paths
* is pure Bash
* is meant to work well over SSH and on servers
* tries to keep error messages and output readable in a terminal

Repo is here if you want to look at the noscript:
[https://github.com/kyanjeuring/dstack](https://github.com/kyanjeuring/dstack)

Happy to hear feedback.

https://redd.it/1qwrwkh
@r_bash
A case study in why learning regex is important
https://redd.it/1qwxzp3
@r_bash
Thoughts from a system engineer that became a developer

Coding is a craft. At least, that's what it is for me.

I'm continuing my project of documenting my experience as I revisit Bash after years spent as a full-time developer. Can we apply the same mindset we use for complex software project to simple noscripts? Is there a benefit?

I wrote an article about how acquiring a testing mindset can help writing better code, even if at the end you write no test at all (you can read it here, if you like).

Feedback is appreciated.

Happy coding.

https://redd.it/1qwzx5p
@r_bash
StreetPack by Trishula Software
https://redd.it/1qxztfs
@r_bash
Security auditing tool written in Bash

This was my final project for a programme I took some months ago and it's my first project that I posted onto github. It's inspired by lynis.

I'm going to start working on improving it soon, basically a v2 of the tool. Any suggestions of how to improve it would be really appreciated!


https://github.com/Nyveruus/Linux-Audit-Tool


I already listed some possible additions in the readme

https://redd.it/1qycqg1
@r_bash
Read epstein files directly from your terminal via grepstein.sh

Hi there,

I recently developed a Bash noscript that allows you to read Epstein files directly from your terminal because bash manual found in epstein files and i tought that reading the bash manuel that found in epstein files via bash noscripting is a cool idea. Isn't it ? 😊

It's a simple one, but building it taught me a lot along the way.

You can check out the repository here: https://github.com/sertacartun/grepstein

I’d really appreciate it if you could take a look at the source code and share your thoughts. I didn’t use AI to write this noscript, so I’m sure there are areas that could be improved or optimized—any constructive feedback is more than welcome.

Here’s a short demonstration:

https://youtu.be/Bd55Hh53Dms

Thanks!

https://redd.it/1qzkv53
@r_bash
I created a simple tool, looking for feedback

link to flailsafe
I've just published my first repo on GitHub and would like some advice or opinions.
Flailsafe is installed in /opt/flailsafe and needs to be run as sudo: it lets you create a list of files you want to monitor (I made it for my config files), stores a copy of those files and, when the "change" command is given, it looks for any file that's been edited and stores another copy of the new version, logging everything.
That's it, simple as that. No "restore" option has been created, as it must write only inside its root directory

https://redd.it/1qzjvff
@r_bash
How do I copy text with color escape sequences?

This might seem like a simple question, but I genuinely can't find a solution that would work for me.

I have output of a figlet utility written to stdout: a colorful text art that uses escape sequences to render colors. Here's paste of such output without colors for obvious reasons, original colors are different shades of red and blue:

$ figlet -f phm-beyondneo-red -C utf8 -w 9999 "A"
🬭🬭🬭🬭
▐▄▌▐▄▌
▐▄🬛🬫▄▌
▐▄▌▐▄▌
🬁🬂🬀🬁🬂🬀


When I copy text to the clipboard, colors are ignored. My terminal supports "copy as HTML" for colors, but I want to later print the text art from a Python noscript, so I need the original escape sequences.

I tried piping to cat -v and cat -A, but they produce output with meaningless M-? sequences that cannot later be used for echoing or printing. Like this:

^[[38;5;231m M-pM-^_M-,M--M-pM-^_M-,M--M-pM-^_M-,M--M-pM-^_M-,M-- ^[[m

Here are first 128 bytes of the textart to show what and how escape sequences are used, in case this might be of use.

$ figlet -f phm-beyondneo-red -C utf8 -w 9999 "A" | hexdump -C
00000000 1b 5b 33 38 3b 35 3b 32 33 31 6d 20 f0 9f ac ad |.[38;5;231m ....|
00000010 f0 9f ac ad f0 9f ac ad f0 9f ac ad 20 1b 5b 6d |............ .[m|
00000020 0a 1b 5b 33 38 3b 35 3b 31 38 38 6d e2 96 90 1b |..[38;5;188m....|
00000030 5b 33 38 3b 35 3b 31 39 35 3b 34 38 3b 35 3b 38 |[38;5;195;48;5;8|
00000040 37 6d e2 96 84 1b 5b 33 38 3b 35 3b 31 38 38 3b |7m....[38;5;188;|
00000050 34 39 6d e2 96 8c e2 96 90 1b 5b 33 38 3b 35 3b |49m.......[38;5;|
00000060 31 39 35 3b 34 38 3b 35 3b 38 37 6d e2 96 84 1b |195;48;5;87m....|
00000070 5b 33 38 3b 35 3b 31 38 38 3b 34 39 6d e2 96 8c |[38;5;188;49m...|


How can I copy this text with colors for later printing to console?

https://redd.it/1r0ekem
@r_bash
The owner of this channel has been inactive for the last 11 months. If they remain inactive for the next 19 days, they may lose their account and admin rights in this channel. The contents of the channel will remain accessible for all users.