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!
Also a bit lost regarding some path issues on #HaikuOS . 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 ?
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 ?
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.
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.
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#GNUBash#Bash#Manuals#LearnLibre
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#GNUBash#Bash#Manuals#LearnLibre
Should I teach bash, fish, or Nushell to data scientists who want to go beyond the basics of shell scripting? There seems to be a clear spectrum from "ubiquitous but m'gawd" to "this is the future but m'gawd in a different way".
Some tasks take too long for us to want to wait around for them to finish, like when you want to power down your computer and go to bed. So schedule a shutdown...
Need help ASAP with finding a text editor for Bash.
So far all of the following text editors are unable to properly syntax highlight Bash herestrings:
Vim
Neovim
Nano
Kate
IntelliJ IDEA
Visual Studio Code
I'm at a loss. Even Vim isn't up to the task. I don't have the time or brainpower right now to learn Emacs. If anyone knows a text editor that can highlight Bash herestrings right, please ping me!
I wrote a matrix digital rain implementation in under 50 lines of pure Bash.. I chose Bash due to it being widely installed and extremely portable. With modern systems this shouldn't cause any noticable performance changes and seems more than efficent so far
Looking for feedback, contributions or whatever helps 😆. If it interest you at all, let me know what you think about it!
The only time I reach for #bash scripts these days is when I need to call a few external commands in sequence, often with a few pipes in between them. IMHO there aren’t really that many other use cases left where some more competent scripting language isn’t a better choice. OTOH, why is that (evidently very common) use case still such a chore to do in basically any other language?
I am currently trying to extract the dominant colors from photos. Later i want to create color palettes with 4 to 16 different colors. Color Quantization is not accurate. It can create interesting contrasts in false colors.