hywan, to Bash
@hywan@fosstodon.org avatar

xz/liblzma: Bash-stage Obfuscation Explained, https://gynvael.coldwind.pl/?id=782.

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/


gnulinux, to ilaughed German
@gnulinux@social.anoxinon.de avatar

Video: Linux Password einfach ändern auf der CLI

Du kannst unter Linux entweder auf der Kommandozeile oder mit grafischen Hilfsprogrammen das Passwort Deines Benutzers ändern. Als Root-Benutzer hast Du ausserdem die Möglichkeit, Passwörter für alle Benutzer deines Systems zurückzusetzen.

https://gnulinux.ch/video-linux-password-einfach-ändern-auf-der-cli

fsf, to Bash
@fsf@hostux.social avatar

Did you know that the FSF tech team published 133 web pages of their sysadmin documentation? Check it out at https://u.fsf.org/423 and read more about the tech team's recent work: https://u.fsf.org/41z

stuart, to Bash
@stuart@social.brainsys.com avatar

#bash #aibot #linux #ai

1/2

I've been very cool about AIBots. Today I changed my mind.

I had installed 'ollama' from an article in The Register. on my PC It said it could write bash scripts. I tested it as follows:

ollama run mistral
>>> Write a bash script to input a file containing an integer, add 1 and write it back
Here is a simple bash script that reads an integer from a file named input.txt, adds 1 to it, and writes the result back to the same file:

#!/bin/bash

# Read the integer from the input file  
old_value=$(sed 'n;1p' input.txt)

# Add 1 to the old value and store it in a new variable  
new_value=$(( $old_value + 1 ))

# Write the new value back to the input file  
echo "$new_value" > input.txt

It worked!

stuart,
@stuart@social.brainsys.com avatar

#bash #aibot #linux #ai

2/2

OK it is simple and has limitations but it produced it faster than I could have written it and better documented.

Sure beats the old Eliza programs and an invitation to get it to ceate some real scripts.

The Register HowTo: https://www.theregister.com/2024/03/17/ai_pc_local_llm/

jaandrle, (edited ) to programming
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:
Easy cross-platform “one–file” scripting using JavaScript.

You can use it as:

Gradually replenished thread 👇

jaandrle, (edited )
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:

…provides quick way to build cli with tab-completion support.

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:

…use in terminal for example for analyze JSONs

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.1 :nodejs:

just small fixes in docs and tldr functionality

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.1 :nodejs:

quick evaluate JS in terminal, examining JSON (files), …

fabian, (edited ) to programming
@fabian@floss.social avatar

For all you fancy command line prompt-havers. Newline or no newline at the end of the prompt?

So, this:

you@host ~/f/bar git:main [*?]␤  
> ▁  

Or this:

user@host ~/f/bar git:main [*?] > ▁  

#programming #terminal #softwareDevelopment #webdev #bash #fish #zsh #powershell

gnulinux, to Bash German
@gnulinux@social.anoxinon.de avatar

Terminal Temple

Auf der Seite Terminal Temple kann man grundlegende Befehle eines Linux-Terminals ausprobieren, ohne etwas kaputtzumachen.

#Terminal #Kommadozeile #Konsole #Bash #Shell #Linux

https://gnulinux.ch/terminal-temple

yuliyan, to Bash
@yuliyan@nahe.social avatar

Masters of the terminal, which magic spell do I have to type in order to batch-remove the last 12 characters on all files?

Before:
SL370034.JPG.d1709304955

After:
SL370034.JPG

The ".dxxxxxxxxxx" part always consists of 12 characters where "." and "d" are character 1 and 2 followed by ten single digits.

#bash #terminal #script #TechSupport #AskFedi

bryan, to linux

I wish you could create aliases that were specific to a directory. Like a little bash aliases file that stayed and only worked in one directory.

#linux #bash

falken,
@falken@qoto.org avatar

@bryan you could probably source ./.alias from $PROMPT_COMMAND

#bash #Linux #geek

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

I've been playing around with locally hosted #LLMs using the #Ollama #CLI 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 #Bash #scripting, looping through images and creating description files. I can then grep those files for key words and note the associated filenames. Powerful stuff!

Tealk, to mastodon
@Tealk@rollenspiel.social avatar

Does anyone have any ideas on how to solve the problem?

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

#mastodon #code #mastodonAPI #bash

santiago, to random
@santiago@masto.lema.org avatar

Also a bit lost regarding some path issues on . To use my usual scripts, I installed zsh + ohmyzsh andI symlinked
~/config/settings/.zshrc
to ~/.zshrc

Everything seems to work but python stuff only works properly in bash.

In zsh pip says:
/bin/python3.10: can't open file '/boot/home/pip'

(the last thing being any path I am currently in). PATH is the same so it must be some Python env variable ?

santiago,
@santiago@masto.lema.org avatar

Well.. this fixes it for pip …but not for packages installed by it (for example compiledb).

They are installed in :
/packages/python3.10-3.10.13-3/.self/non-packaged/bin

So I add can this path (which will inevitably change) to my .zshrc but why the hell doest it works with bash without anything in PATH or any other env variable ?

#bash #zsh #HaikuOS

gnulinux, to Bash German
@gnulinux@social.anoxinon.de avatar

Programme über die Kommandozeile installieren

Zur Installation von neuen Programmen unter Linux stehen unterschiedliche Möglichkeiten zur Verfügung. Ich zeige euch in diesem Video am Beispiel von LibreOffice, wie ihr neue Anwendungen installieren könnt.

#Einsteiger #Terminal #Anleitung #LibreOffice #Bash #Bash_Skripte #Linux

https://gnulinux.ch/programme-über-die-kommandozeile-installieren

syntaxseed, to Bash
@syntaxseed@phpc.social avatar

Wrote a #Bash script to use WP-CLI to dump the database, then #Rclone to sync the files to Dropbox.

It pings HealthChecks.io to monitor progress & success/fail.

That was finally working well. 👍

Then calling it from a #cronjob revealed the need to use full paths to commands like #PHP & WP-CLI. Took a bit to find (force) the logging of the cron to see what was wrong.

Still unclear why some commands (curl, etc) work fine.

Anyway... this is coming along!

#WordPress #Linux #SysAdmin

fsf, to Bash
@fsf@hostux.social avatar

GNU Bash is a wonderful tool that many use every day, it executes commands typed into the terminal and is also a scripting language. The FSF tech team has a healthy drive to master their craft, and so, toward this end, they recently published an FSF Tech Team Bash Style Guide. Check it out at https://u.fsf.org/41y and read more about the tech team's recent work: https://u.fsf.org/41z

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

ich habe das https://codeberg.org/RollenspielMonster/rollenspiel.social/src/branch/master/simple-toot gerade mal ein wenig erweitert, jetzt prüft es automatisch die neusten User und postet entsprechend den Text. Morgen, ja morgen ist erst nach dem Schlafen, werde ich das mal auf codeberg hochladen.

Tealk,
@Tealk@rollenspiel.social avatar

Anyone have an idea how i can run the request_authorization on the server without having to use a browser?
https://codeberg.org/RollenspielMonster/simple-toot/src/branch/master/toot.sh#L47

skinnylatte, to Help
@skinnylatte@hachyderm.io avatar

if i have a folder of .md text files that all have a date in this format: date: "2003-01-26T06:24:10Z"

in the front matter

but they are on different lines

and i want to delete the quotes from all of the files at once

what's my best approach?

(i don't know how to write regex properly)

i use sublime text, and vim, if it helps

#Help #cli #bash

fsf, to Bash
@fsf@hostux.social avatar

GNU Bash is a wonderful tool that many use every day, it executes commands typed into the terminal and is also a scripting language. The FSF tech team has a healthy drive to master their craft, and so, toward this end, they recently published an FSF Tech Team Bash Style Guide. Check it out at https://u.fsf.org/41y and read more about the tech team's recent work: https://u.fsf.org/41z

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