i have to switch one of my scripts to use getopts
instead of just a case
statement pray for me ;_;
Note: the photograph was captured by me using a DLSR armed with 77mm Circular polarizer, 81A warming filter, UV filter and RPRT (right place right time)
https://mastodon.social/@RadioAzureus/115078811536751037
#weather #bash #sh #current#SR #wttr#SouthAmerica#Carribean#Leonsberg
Note: the photograph was captured by me using a DLSR armed with 77mm Circular polarizer, 81A warming filter, UV filter and RPRT (right place right time)
https://mastodon.social/@RadioAzureus/115078811536751037
#weather #bash #sh #current#SR #wttr#SouthAmerica#Carribean#Leonsberg
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...."
Reinterpreting some Conver-style #tarot cards in #svg using @velvetyne 's great #Basteleur font, #inkscape, #imagemagick and some #bash scripts!
--------------------
#fontsInUse
Reinterpreting some Conver-style #tarot cards in #svg using @velvetyne 's great #Basteleur font, #inkscape, #imagemagick and some #bash scripts!
--------------------
#fontsInUse
The Bard and The Shell - a great article by Armin Hanisch - @Linkshaender - for the BSD Cafe Journal - @journal
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=$'\n\t'</p><p>filename="${$1:?please provide a filename}"<br/>if [[ "$filename" ~= *.rs ]]<br/>then<br/> echo "Not AI!"<br/> exit 0<br/>fi</p><p>echo "AI!"<br/>exit 1<br/>
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.
Morgen gibt es ein repository auf github...
Hey fedi friends, what are the differences in USES and config options listed at #freshports for a #FreeBSD #port? I am familiar with USE in #Gentoo #Linux, which seem to be the config options here? For #Gentoo it is very common to use different USE settings for a packages, but for #FreeBSD I read from porter's handbook there are not many USE items and they looked different from the term in #Gentoo. I am still trying to wrap my head around what is happening that whenever I try to build a port, like #vim or #git in tiny flavors, I constantly noticed #Perl #Bash #lua #Rust #Python and all other seemingly unrelated stuff get pulled in. #BSD #RunBSD #Unix #FOSS
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()
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
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()
Linus Torvalds has coded git two decades ago.
Learn about why how who and where here
https://youtu.be/sCr_gb8rdEI?si=s8tDVh1e8dBTGWkJ
🖋️ #bash #sh #zsh #ksh #csh #tcsh #fish #git#Linux#POSIX#FOSS#100daysofCode#640DaysOfCode #coding#1024DaysOfCode #github #programming