Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Roni Rolle Laukkarinen
@rolle@mementomori.social  路  activity timestamp 5 days ago

My automated Nginx exploit scanner is getting close to perfect. Who needs SaaS tools anymore when you have Bash?

#Linux #Bash #BashProgramming #Programming #Coding

  • Copy link
  • Flag this post
  • Block
alcinnz
alcinnz boosted
R.L. Dane :Debian: :OpenBSD: 馃嵉
@rl_dane@polymaths.social  路  activity timestamp 3 weeks ago

Ok, peanut gallery, is this curs猫d, or glorious? ;)

function stdu {
#Syncthing du
cd
local x oIFS="$IFS"
IFS=$'\n'

du -sch $(
for x in *; do
[[ -d $x && -d $x/.stfolder ]] && echo "$x"
done
) |sort -h

IFS="$oIFS"
}

#bash #ShellScripting

  • Copy link
  • Flag this post
  • Block
R.L. Dane :Debian: :OpenBSD: 馃嵉
@rl_dane@polymaths.social  路  activity timestamp 3 weeks ago

Ok, peanut gallery, is this curs猫d, or glorious? ;)

function stdu {
#Syncthing du
cd
local x oIFS="$IFS"
IFS=$'\n'

du -sch $(
for x in *; do
[[ -d $x && -d $x/.stfolder ]] && echo "$x"
done
) |sort -h

IFS="$oIFS"
}

#bash #ShellScripting

  • Copy link
  • Flag this post
  • Block
Neville Park
@nev@status.nevillepark.ca  路  activity timestamp last month

i have to switch one of my scripts to use getopts instead of just a case statement pray for me ;_;

#bash #CommandLine #codeing

  • Copy link
  • Flag this post
  • Block
Stefano Marinelli
Stefano Marinelli boosted
Dendrobatus Azureus
@Dendrobatus_Azureus@mastodon.bsd.cafe  路  activity timestamp 2 months ago

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

  • Copy link
  • Flag this post
  • Block
Dendrobatus Azureus
@Dendrobatus_Azureus@mastodon.bsd.cafe  路  activity timestamp 2 months ago

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

  • Copy link
  • Flag this post
  • Block
Stefano Marinelli
Stefano Marinelli boosted
xinqu
@xinqu@mastodon.bsd.cafe  路  activity timestamp 2 months ago

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...."

  • Copy link
  • Flag this post
  • Block
xinqu
@xinqu@mastodon.bsd.cafe  路  activity timestamp 2 months ago

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...."

  • Copy link
  • Flag this post
  • Block
Joachim
Joachim boosted
Garvalf
@garvalf@ludosphere.fr  路  activity timestamp 2 months ago

Reinterpreting some Conver-style #tarot cards in #svg using @velvetyne 's great #Basteleur font, #inkscape, #imagemagick and some #bash scripts!

--------------------
#fontsInUse

Le bateleur, first major arcane of the tarot
Le bateleur, first major arcane of the tarot
Le bateleur, first major arcane of the tarot
  • Copy link
  • Flag this post
  • Block
Garvalf
@garvalf@ludosphere.fr  路  activity timestamp 2 months ago

Reinterpreting some Conver-style #tarot cards in #svg using @velvetyne 's great #Basteleur font, #inkscape, #imagemagick and some #bash scripts!

--------------------
#fontsInUse

Le bateleur, first major arcane of the tarot
Le bateleur, first major arcane of the tarot
Le bateleur, first major arcane of the tarot
  • Copy link
  • Flag this post
  • Block
Roni Rolle Laukkarinen
@rolle@mementomori.social  路  activity timestamp 2 months ago

Bash cheat sheet right at your fingertips:

function ch() {
if [ $# -eq 2 ]; then
curl "cht.sh/$1/$2";
else
curl "cht.sh/$1";
fi;
}
alias cs='chtsh'

#Linux #Bash

  • Copy link
  • Flag this post
  • Block
Stefano Marinelli
@stefano@mastodon.bsd.cafe  路  activity timestamp 2 months ago

The Bard and The Shell - a great article by Armin Hanisch - @Linkshaender - for the BSD Cafe Journal - @journal

https://journal.bsd.cafe/2025/07/28/the-bard-and-the-shell/

#BSDCafeJournal#Shell#Bash#CommandLine#Tutorial

  • Copy link
  • Flag this post
  • Block
mage_of_dragons
@mage_of_dragons@mastodon.social  路  activity timestamp 3 months ago

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

  • Copy link
  • Flag this post
  • Block
Neville Park
Neville Park boosted
Tyler Smith
@plantarum@ottawa.place  路  activity timestamp 3 months ago

Why did it take me two decades to do this?

<br/>function mkcd() { mkdir &quot;$@&quot; ; cd &quot;$@&quot; ; }<br/>
#bash #shell

  • Copy link
  • Flag this post
  • Block
Tyler Smith
@plantarum@ottawa.place  路  activity timestamp 3 months ago

Why did it take me two decades to do this?

<br/>function mkcd() { mkdir &quot;$@&quot; ; cd &quot;$@&quot; ; }<br/>
#bash #shell

  • Copy link
  • Flag this post
  • Block
Justine Smithies
@justine@snac.smithies.me.uk  路  activity timestamp 3 months ago
#ksh ( oksh ) because for me it feels like the old Unix way and I really like it. I originally had been a #bash user since around 2000.
  • Copy link
  • Flag this post
  • Block
PitWD
@CannaParts@nrw.social  路  activity timestamp 3 months ago

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...

Zu sehen ist der Screenshot einer IceWM systray Leiste.

Von Links nach Rechts sind folgende Icons zu sehen...

Fefe-Logo
KSnip
Lautst盲rke
Erinnerungen
VLC
BlueTooth
NetworkManager
Und weiter die IceWM internen:
Akku
Netzwerk
RAM
CPU
Uhrzeit
Zu sehen ist der Screenshot einer IceWM systray Leiste. Von Links nach Rechts sind folgende Icons zu sehen... Fefe-Logo KSnip Lautst盲rke Erinnerungen VLC BlueTooth NetworkManager Und weiter die IceWM internen: Akku Netzwerk RAM CPU Uhrzeit
Zu sehen ist der Screenshot einer IceWM systray Leiste. Von Links nach Rechts sind folgende Icons zu sehen... Fefe-Logo KSnip Lautst盲rke Erinnerungen VLC BlueTooth NetworkManager Und weiter die IceWM internen: Akku Netzwerk RAM CPU Uhrzeit
  • Copy link
  • Flag this post
  • Block
xinqu
@xinqu@mastodon.bsd.cafe  路  activity timestamp 3 months ago

Hey why didn't anyone tell me that there is a readline variable called "completion-ignore-case" in #bash ?

Such a relief.

Maybe I also treat myself with "completion-map-case" later.

  • Copy link
  • Flag this post
  • Block
Dendrobatus Azureus
@Dendrobatus_Azureus@mastodon.bsd.cafe  路  activity timestamp 4 months ago

@fbfortune

This works in all POSIX compliant Operating Systems

#POSIX #sh #Bash #csh #zsh #ksh #tksh

  • Copy link
  • Flag this post
  • Block
KaiXin
@kaixin@snac.bsd.cafe  路  activity timestamp 4 months ago

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

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.0-rc.3.13 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login