stragu, to Bash
@stragu@mastodon.indie.host avatar

I was going to make a funny joke that I was going to create a utility called "splain" so I could "man splain" what it's for...
but it already exists, from perl-diagnostics (1995).
And "man splain" returns:

"produce verbose warning diagnostics"

🤯

According to Merriam-Webster:

"The splain of mansplain isn't new. It's been used to mean "explain" in texts showing informal speech or—as when Ricky Ricardo admonished his beloved in I Love Lucy—in imperfect English for at least a century."

arn_fai, to Bash French
@arn_fai@toot.aquilenet.fr avatar

Nous cherchons des personnes -voyantes ou qui s'intéressent à la ligne de commande , pour voir si elle seraient prêtes à essayer notre librairie pour son .

Il y a déjà 13 commandes à tester.

Au delà des problèmes de vue, cette librairie peut faciliter la vie d'un public plus large, puisqu'elle filtre les sorties de commandes pour les réduire à l'essentiel.

https://codeberg.org/ARN/shell-a11y

N'hésitez pas à nous contacter. 😉

scoonch, to photoshop French
@scoonch@mamot.fr avatar

Dev Web fullstack, je termine un long CDD en fin de semaine. Je suis donc libre à partir du 3 juin.

CDI distanciel de préférence sinon je m'adapte, je suis à Paris.

Compétences en +:
Maquettiste ,
Monteur vidéo , ,
Habillage/Animation

CV dispo en mp.

ManyRoads, to debian
@ManyRoads@mstdn.social avatar

For those who like to do 'stuff' (perform tasks) via scripts, here is a ditty I just published on a Forum LiliDog (Debian based).

This script is designed to clean & update my Debian Sid base.

It may be helpful or simply prove how little I actually know. 😜

#Debian #Bash #Scripts #Technology #News #Sid

https://forum.lilidog.org/d/897-clean-update-debian-script

frankel, to Bash
@frankel@mastodon.top avatar
nsp, to linux
@nsp@mastodon.sdf.org avatar

Add this line to set the Xterm title the currently executing command:

trap 'echo -ne "\e]0;$BASH_COMMAND\007"' DEBUG

Source: https://web.archive.org/web/20110722/https://www.davidpashley.com/articles/xterm-titles-with-bash.html

Foxboron, to Bash
@Foxboron@chaos.social avatar

How do you parse json in bash?

Asking for a friend.

(No, jq is not a solution here)

#json #bash

arn_fai, to accessibility French
@arn_fai@toot.aquilenet.fr avatar

Pour cette 13ème édition de la journée mondiale de sensibilisation à l'accessibilité , ARN, @hackstub et le groupe a11y-libre, propose à toutes les personnes qui pratiquent la ligne de commande, un hackaton « asynchrone » sur le thème « ligne de commande et cécité » !

Vous avez jusqu'au 31 mai, pour envoyer vos contributions. Il y a de nombreux lots à gagner.

https://arn-fai.net/fr/blog/shell-accessible

julienbarnoin, to programming
@julienbarnoin@mastodon.gamedev.place avatar

Nowadays terminals and other text views can get rendered with GPU acceleration support, like the kitty terminal that I use.

🤔 That means we could get bloom, chromatic aberration, distortion, depth of field and other post process effects into our terminals, what are we waiting for?

v89, to linux
@v89@fosstodon.org avatar

How to read articles/news as a #PDF in a #private and #minimalist way on #Linux.

Sometimes I'm busy and can't read at that moment, so I save the article/news as plain text in a PDF file to read it later. It works most of the time, but it's not perfect.

You'll need: torsocks (optional), lynx and LibreOffice installed.

Save it as a #bash file like "pdf.sh", make it executable with "chmod +x pdf.sh" and then use it like this:

./pdf.sh https://website.com/article

#tor #privacy

ehmicky, to programming
@ehmicky@fosstodon.org avatar

We just released Execa 9, which is our biggest release so far.

If you're currently using Execa, you should check out the new features! Also, if you're currently using zx or Bun shell, you might be interesting in this alternative.

https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f

#nodejs #node #javascript #js #cli #terminal #console #bash #shell

ebel, to Bash
@ebel@moytura.org avatar

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?

:boost_ok: #cli #unix #terminal #bash #linux

felix, to Bash French
@felix@mamot.fr avatar
ChristosArgyrop, to Bash
@ChristosArgyrop@mstdn.science avatar

This made my night #bash #script #perl

image/jpeg

vwbusguy, (edited ) to random
@vwbusguy@mastodon.online avatar

Doing datetime evals in always makes me a bit sad that 's built in datetime is so janky.

dcz, to Bash
@dcz@fosstodon.org avatar

with which I surprised greybeards at the local hackerspace (which was surprising cause I'm the opposite of a expert):

mv photo{tocheck,supercool}.jpg

is the same as

mv phototocheck.jpg photosupercool.jpg

The shell copies an argument with {,} inside, and each resulting argument has a different part of what's in {}.

rm plan.{md,svg,png,odt}

Have fun!

necrosis, to science German
@necrosis@chaos.social avatar

Leute. Ich hab sooooooooooo was geiles entdeckt.

Kennt ihr schon https://www.olivetin.app/ ?

Damit kann man Tools eine verpassen. 😍

Ok, das würde sich auch mit von umsetzen lassen. Aber dennoch.

Für unsere Beschäftigten, die eher Windows gewohnt sind kann ich so Shell Tools leichter zugänglich machen. Das ist so toll. 😍

Für sicher auch einen Blick wert. :3


Tealk, to Bash German
@Tealk@rollenspiel.social avatar

I noticed a problem in my script, if the newest account that was notified is a SpamBot and I delete it, countless old accounts are notified again.

Any ideas on how to solve this problem?

https://codeberg.org/RollenspielMonster/simple-toot

#bash #linux #programming

unicornCoder, to Bash
@unicornCoder@fosstodon.org avatar

i LOVE ❤️ BASH !!

it was the best solution to extract text from 1593 files.

#bash

juandesant, (edited ) to random
@juandesant@astrodon.social avatar

A one-liner for exporting your Conda environments for re-creation on another machine… but you might want to have a look at whether you actually need to recreate those environments.

for envs in $(conda env list | egrep -v "^#" | awk '{print $1}'); do echo "Exporting environment: $envs"; conda activate $envs; conda env export --no-builds | egrep -v "^prefix" > "$envs.yaml"; conda deactivate $envs; done; ls -l *.yaml  

/ht @boitarsor for improvement

chmouel, to Bash
@chmouel@fosstodon.org avatar

reading the tzselect shell script from the tzdata, there is a nice flag called -c to specify coordinates, the way the script does gps coordinates to timezones in awk is pretty impressive!

so if you travel a lot and have no idea where you are located and want to set your timezone quite easily you can do something like this to approximately know where you are (it's useless i know, just interesting):

tzselect -c $(curl -s ipinfo.io|jq -r .loc| tr , -)

DrHyde, to Bash
@DrHyde@fosstodon.org avatar

WTF #bash ?!?!?!

$ PI=3.14
$ echo $PI
3.14
$ SECONDS=3.4
-bash: 3.4: syntax error: invalid arithmetic operator (error token is ".4")

axelhahn, to foss
@axelhahn@fosstodon.org avatar

Cronjobs are quite basic stuff. Mostly you create “simple, stupid” jobs without output … that just run. Or should.

How do you check if a job was successful? Just trust them? Watching each log? On each of your systems?

How do you detect if the last job execution was successful but does not run anymore?

My simple approach:

For 20 years I add a wrapper in front of my commands.

Docs: https://www.axel-hahn.de/docs/cronwrapper/index.html

Source: https://github.com/axelhahn/cronwrapper

cronstatus.sh shows the status of all local cronjobs or details of a single cronjob.

pbarker, to opensource
@pbarker@social.afront.org avatar

Bash/zsh tip: ! is a valid character in an alias. I use it to mark aliases which run under sudo, for example on my Debian box I have:

alias e!="sudo ${EDITOR}"
alias a!="sudo apt"
alias s!="sudo systemctl"
alias in!="sudo apt install"

... and a few others.

mindaslab, to mathematics
@mindaslab@mstdn.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • cubers
  • tacticalgear
  • InstantRegret
  • magazineikmin
  • everett
  • rosin
  • Youngstown
  • slotface
  • ngwrru68w68
  • osvaldo12
  • kavyap
  • mdbf
  • DreamBathrooms
  • JUstTest
  • khanakhh
  • cisconetworking
  • Durango
  • provamag3
  • thenastyranch
  • ethstaker
  • modclub
  • tester
  • normalnudes
  • megavids
  • GTA5RPClips
  • Leos
  • lostlight
  • All magazines