I think I will start reading man <a href="/hashtag/01JYW1B6DPPK1YX36V5M55ZS8J">#<span>bash</span></a> line by line, there are so many features I didn't know about. For example:

You can use an alias as a parameter to an alias. E.g.:

alias lsopts='-lrt'
alias myls='ls '

"myls" executes "ls -lrt". To make that work, you have to append a space ' ' at the end of the myls definition.

There are better use cases for this, of course, this is just a test. If you ommit the ' ' after 'ls', myls lsopts returns "lsopts: No such file...."

I think I will start reading man <a href="/hashtag/01JYW1B6DPPK1YX36V5M55ZS8J">#<span>bash</span></a> line by line, there are so many features I didn't know about. For example:

You can use an alias as a parameter to an alias. E.g.:

alias lsopts='-lrt'
alias myls='ls '

"myls" executes "ls -lrt". To make that work, you have to append a space ' ' at the end of the myls definition.

There are better use cases for this, of course, this is just a test. If you ommit the ' ' after 'ls', myls lsopts returns "lsopts: No such file...."

Due to a rise of vibecoding, I have invented a simple detector script, that can determine whether some code was written by AI or not:

bash<br/>#!/bin/bash<br/>set -euo pipefail<br/>IFS=$&#39;\n\t&#39;</p><p>filename=&quot;${$1:?please provide a filename}&quot;<br/>if [[ &quot;$filename&quot; ~= *.rs ]]<br/>then<br/> echo &quot;Not AI!&quot;<br/> exit 0<br/>fi</p><p>echo &quot;AI!&quot;<br/>exit 1<br/>

#rust #rustlang #ai #bash

Nachdem ich gestern meckern musste über die #KI gestützte Seite die Änderungen auf dem Blog von #fefe trackt...

siehe: https://nrw.social/@CannaParts/114760512905783095

...und ich schon ne #bash Alternative als Beweis meiner Behauptung geliefert habe...

...ist mir jetzt zu warm fürs Bett gewesen und ich habe ein systray icon gebaut, welches die möglichen Zustände (nicht erreichbar, unverändert und neu) von dem Blog (oder jeder anderen Seite) anzeigt.

#Bash + #yad

Morgen gibt es ein repository auf github...

Don't tell me you still don't have a boxyBSD VM. Request one while they last

Here's the status of the hypervisors running boxyBSD VMs

@gyptazy

https://boxybsd.com/status/

.🖋️ #bash#freeBSD#boxyBSD #sh #zsh #ksh #csh  #netBSD#openBSD#POSIX

The screencap shows a terminal screen with a black background and white text. At the top, there is a status bar displaying the time (22:12), battery level (81%), and temperature (27°). The terminal window is titled "BoxyBSD" in a stylized font. The command line shows the user "guest" logged in to the system "mgmt-boxybsd" with the command "cat status.md" being executed.

The terminal output includes a "Status" section listing hypervisors with their locations and latency times, such as "virt01: 42.1 ms (Location: France, Ro)" and "virt09: 277. ms (Location: Japan, Toky)." Below this, there is a "[looking glass]" section with miscellaneous information like "Website: Online," "Matrix Bot: Online," "Provisioning: Enabled," and "gyptazy services: Online." The "Statistics" section shows "Boxes provisioned: 500+," "OS Images: 7," and "Uptime: 99.9%." At the bottom, there is a note about contacting support and the system's creation date (2025-04-12 11:59:34.695945).

 Ovis2-8B

🌱 Energy used: 0.310 Wh
The screencap shows a terminal screen with a black background and white text. At the top, there is a status bar displaying the time (22:12), battery level (81%), and temperature (27°). The terminal window is titled "BoxyBSD" in a stylized font. The command line shows the user "guest" logged in to the system "mgmt-boxybsd" with the command "cat status.md" being executed. The terminal output includes a "Status" section listing hypervisors with their locations and latency times, such as "virt01: 42.1 ms (Location: France, Ro)" and "virt09: 277. ms (Location: Japan, Toky)." Below this, there is a "[looking glass]" section with miscellaneous information like "Website: Online," "Matrix Bot: Online," "Provisioning: Enabled," and "gyptazy services: Online." The "Statistics" section shows "Boxes provisioned: 500+," "OS Images: 7," and "Uptime: 99.9%." At the bottom, there is a note about contacting support and the system's creation date (2025-04-12 11:59:34.695945). Ovis2-8B 🌱 Energy used: 0.310 Wh

Yesterday, for reasons best left unstated, I invented a technique for combining #bash and #Python into a single file.

The motivation was to have something a bit more powerful than the #! to decide which installed Python to use.

The magic is in line two:

#!/bin/bash
""""true"
# bash sees this, python ignores it
if [ -e /path/to/file ]; then
exec python3 "$0" "$@"
else
echo "OMG, something is missing"
exit 1
fi
"""
# begin python fun!
from thing import python_stuff
python_stuff()

@HerraBRE I have decided to call this technique "the shebonk".

Because it's link a shebang, only weird!

I've added shebonk support to my forked zipapp.py, will be using to build even more portable pagekite.py bundles than before!

I wonder if this hurts my chances of getting my enhanced #zipapp merged back into upstream #CPython? :-P

#python #bash #hacks

Yesterday, for reasons best left unstated, I invented a technique for combining #bash and #Python into a single file.

The motivation was to have something a bit more powerful than the #! to decide which installed Python to use.

The magic is in line two:

#!/bin/bash
""""true"
# bash sees this, python ignores it
if [ -e /path/to/file ]; then
exec python3 "$0" "$@"
else
echo "OMG, something is missing"
exit 1
fi
"""
# begin python fun!
from thing import python_stuff
python_stuff()

The screencap showcases a VLC video player interface on an Android with a video titled "Two decades of Git: A conversation with creator Linus..." The video is currently at 4:40 out of a total duration of 41:49. The video features a man Linus Torvalds sitting in a chair, wearing a gray long-sleeve shirt with a small logo on the left side, and dark pants. He is seated in front of a large window with a view of greenery outside. There are two glasses of water on a small table to his left. The background includes a wooden wall and a large window, suggesting an indoor setting with natural light. The video player interface includes standard controls such as play, pause, and volume adjustment, along with a progress bar indicating the current playback position.

 Ovis2-8B

🌱 Energy used: 0.187 Wh
The screencap showcases a VLC video player interface on an Android with a video titled "Two decades of Git: A conversation with creator Linus..." The video is currently at 4:40 out of a total duration of 41:49. The video features a man Linus Torvalds sitting in a chair, wearing a gray long-sleeve shirt with a small logo on the left side, and dark pants. He is seated in front of a large window with a view of greenery outside. There are two glasses of water on a small table to his left. The background includes a wooden wall and a large window, suggesting an indoor setting with natural light. The video player interface includes standard controls such as play, pause, and volume adjustment, along with a progress bar indicating the current playback position. Ovis2-8B 🌱 Energy used: 0.187 Wh

Look at the year 2K17 yet I still used DVD storage to boot ghostBSD!

.🖋️ #bash#freeBSD#ghostBSD#BSD #sh #zsh #ksh #csh #tksh #fish #tcsh   #distro#KDE#DVD#RetroComputing #retro #storage#POSIX   #fresh #programming

I've encountered an annoying problem

A critical shared Library that's used by FFMpeg and of course also used by MPlayer was not in the installation. It was an odd because even a remove reinstall of FFMpeg didn't fix the problem.

Since I'm in no mood to install a development environment from the command line to compile FFMpeg from scratch I just wiped the KDE distro and started all over.

While I was busy with the new installation so I was on the live ISO FFMPEG worked just fine and the library was there working perfectly.

You can already guess what happened when I booted into the new installation.

FFMPEG was installed by default by the distribution, since VLC is installed by default, but the shared library was missing!

¡WTF!

Then I encountered even more bugs, privilege escalation errors!

These bugs and errors have nothing to do with KDE!

They have to do with problems with the distribution from the perspective of my maintainer. It is my task to see if I can reproduce the problems after I fix them by hand if that does not take too much time and effort.

.🖋️ #bash#MX #mxLinux #sh #zsh #ksh #csh #tksh #fish   #distro#KDE  #Gnome#Linux#POSIX   #fresh #programming   #backgrounds #wallpaper#Vallpaper #gufw

The photograph captured in pitch black and absolute darkness shows a computer screen with a dark blue background featuring a large, stylized white arrow forming a loop. In the center, there is a white window with black icons and text The window is labeled "10x:26:16 Libretto." The screen also displays a taskbar with icons for "FAQ," "Inbox," and "My List," along with a clock The bottom left corner of the screen features a small logo with the text "Libretto." The overall design is sleek and modern, with a focus on functionality.

 Ovis2-8B

🌱 Energy used: 0.769 Wh
The photograph captured in pitch black and absolute darkness shows a computer screen with a dark blue background featuring a large, stylized white arrow forming a loop. In the center, there is a white window with black icons and text The window is labeled "10x:26:16 Libretto." The screen also displays a taskbar with icons for "FAQ," "Inbox," and "My List," along with a clock The bottom left corner of the screen features a small logo with the text "Libretto." The overall design is sleek and modern, with a focus on functionality. Ovis2-8B 🌱 Energy used: 0.769 Wh
The photograph captured in total darkness shows a multi-monitor setup with two screens. The top screen displays a blue background with a landscape image of a sky with clouds and a body of water, along with a window showing a list of items. The middle screen shows a blue background with a text-based interface, possibly a command prompt or terminal, with white text on a black background. The bottom screen features a dark background with abstract light streaks in purple and white, and a blue bar at the bottom. The screens are arranged in a staggered formation, with the top screen tilted to the right, the middle screen tilted to the left, and the bottom screen positioned horizontally. The overall color scheme is dominated by blues and purples, with white text and light streaks providing contrast.
The photograph captured in total darkness shows a multi-monitor setup with two screens. The top screen displays a blue background with a landscape image of a sky with clouds and a body of water, along with a window showing a list of items. The middle screen shows a blue background with a text-based interface, possibly a command prompt or terminal, with white text on a black background. The bottom screen features a dark background with abstract light streaks in purple and white, and a blue bar at the bottom. The screens are arranged in a staggered formation, with the top screen tilted to the right, the middle screen tilted to the left, and the bottom screen positioned horizontally. The overall color scheme is dominated by blues and purples, with white text and light streaks providing contrast.

Sometimes micro migration failures bring blessings, I learned how to use

xfce4-screenshooter -S -d 2 --window -s &quot;$HOME/Pictures/$(date +%Y-%m-%d_%H-%M-%S)_Screenshot2.png&quot;

from the commandline because it started to fail to add the date to the screencaps after the migration on my main MX linux install which is XFce4 based

This sequence also opens a thunar window sorted to date with the screencap. Of course the sorting is previously configured in thunar

.🖋️ #bash#MX #mxLinux #sh #zsh #ksh #csh #tksh #fish #distro#KDE#Gnome#Linux#POSIX #fresh #programming #backgrounds #wallpaper#Vallpaper #gufw

The image shows a terminal window with a black background and text in various colors, primarily green, white, and red. The user is logged in as "metalloid" on a system named "drawpedie." The user is in the directory "/gate/audio/raw/flac/αBeats∞."

The terminal output includes several commands and their results:

   1. The first command is "last | lolcat," which attempts to display the last logged-in users using the "lolcat" filter for a humorous output. The response indicates that the file "/var/log/wtmp" does not exist.

   2. The second command is "sudo touch /var/log/wtmp," which creates the "/var/log/wtmp" file with root permissions. The user is prompted to enter the password for "metalloid."

   3. The third command is "last | lolcat," which is executed again after the file has been created. This time, the output shows that "wtmp" begins on "Sat Apr 19 10:22:19 2025."

The terminal also shows the user's prompt, which includes the username, hostname, and current working directory. The overall appearance is typical of a Linux or Unix-based system terminal.

🌱 Energy used: 0.249 Wh
The image shows a terminal window with a black background and text in various colors, primarily green, white, and red. The user is logged in as "metalloid" on a system named "drawpedie." The user is in the directory "/gate/audio/raw/flac/αBeats∞." The terminal output includes several commands and their results: 1. The first command is "last | lolcat," which attempts to display the last logged-in users using the "lolcat" filter for a humorous output. The response indicates that the file "/var/log/wtmp" does not exist. 2. The second command is "sudo touch /var/log/wtmp," which creates the "/var/log/wtmp" file with root permissions. The user is prompted to enter the password for "metalloid." 3. The third command is "last | lolcat," which is executed again after the file has been created. This time, the output shows that "wtmp" begins on "Sat Apr 19 10:22:19 2025." The terminal also shows the user's prompt, which includes the username, hostname, and current working directory. The overall appearance is typical of a Linux or Unix-based system terminal. 🌱 Energy used: 0.249 Wh