Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Stefano Marinelli boosted
Dendrobatus Azureus
@Dendrobatus_Azureus@mastodon.bsd.cafe  ·  activity timestamp 4 days ago

Rules

* Never execute scripts from the internet
* Never execute scripts as root if you do not know what they do

#Programming #bash #sh #csh #ksh #fish #OpenSource #fork #bomb #forkbomb

https://www.cyberciti.biz/faq/understanding-bash-fork-bomb/

nixCraft

Understanding Bash fork() Bomb :(){ :|:& };: code

Explains Linux / Unix bash fork() bomb :(){ :|:& };: which is a form of DoS attack against a Linux based computer and how to prevent fork bomb on Linux.
Understanding fork Bomb page
Understanding fork Bomb page
Understanding fork Bomb page
  • Copy link
  • Flag this post
  • Block
Dendrobatus Azureus
@Dendrobatus_Azureus@mastodon.bsd.cafe  ·  activity timestamp 4 days ago

Rules

* Never execute scripts from the internet
* Never execute scripts as root if you do not know what they do

#Programming #bash #sh #csh #ksh #fish #OpenSource #fork #bomb #forkbomb

https://www.cyberciti.biz/faq/understanding-bash-fork-bomb/

nixCraft

Understanding Bash fork() Bomb :(){ :|:& };: code

Explains Linux / Unix bash fork() bomb :(){ :|:& };: which is a form of DoS attack against a Linux based computer and how to prevent fork bomb on Linux.
Understanding fork Bomb page
Understanding fork Bomb page
Understanding fork Bomb page
  • Copy link
  • Flag this post
  • Block
Paolo Amoroso boosted
Onokoto █
@onokoto@mastodon.social  ·  activity timestamp 2 weeks ago

On cold days, my Emacs has a fireplace to keep me warm;

SOURCE: https://github.com/johanvts/emacs-fireplace

On the interesting side: the author of the package thanks Dan Torop for an Emacs Lisp Animation Tutorial: https://dantorop.info/project/emacs-animation/

I find ascii-art delightful I will definitely have look;

#Lisp #GNU #Guile #Elisp #Emacs #Lambda #Linux #Bash #sh #BSD #Debian #technology

Emacs Lisp Animations | Digital | Dan Torop

GitHub

GitHub - johanvts/emacs-fireplace: A cozy fireplace for emacs.

A cozy fireplace for emacs. Contribute to johanvts/emacs-fireplace development by creating an account on GitHub.
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Onokoto █
@onokoto@mastodon.social  ·  activity timestamp 2 weeks ago

On cold days, my Emacs has a fireplace to keep me warm;

SOURCE: https://github.com/johanvts/emacs-fireplace

On the interesting side: the author of the package thanks Dan Torop for an Emacs Lisp Animation Tutorial: https://dantorop.info/project/emacs-animation/

I find ascii-art delightful I will definitely have look;

#Lisp #GNU #Guile #Elisp #Emacs #Lambda #Linux #Bash #sh #BSD #Debian #technology

Emacs Lisp Animations | Digital | Dan Torop

GitHub

GitHub - johanvts/emacs-fireplace: A cozy fireplace for emacs.

A cozy fireplace for emacs. Contribute to johanvts/emacs-fireplace development by creating an account on GitHub.
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Stefano Marinelli
@stefano@mastodon.bsd.cafe  ·  activity timestamp 2 weeks ago

@Dendrobatus_Azureus @nixCraft And thank you Emile - @imil !

Dendrobatus Azureus
@Dendrobatus_Azureus@mastodon.bsd.cafe replied  ·  activity timestamp 2 weeks ago

@stefano @nixCraft @imil

Here on Debian {in MX Linux} I had to add the following tools since the machine is not configured for programming

bmake

`apt install bmake`

bsdtar

`apt install libarchive-tools`

then success

>> log

# $ ./startnb.sh -f etc/sshd.conf
* using console: viocon
using QEMU version 7.2.19 (Debian 1:7.2+dfsg-7+deb12u16)
[ 1.0000000] NetBSD 11.99.3 (MICROVM) Notice: this software is protected by copyright
[ 1.0000000] Detecting hardware... (QBOOT 000000000000)
[ 1.0257426] done.
[ 1.0345973] kernel boot time: 51ms
Created tmpfs /dev (1835008 byte, 3552 inodes)
add net default: gateway 10.0.2.2
Starting sshd.
Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.

>> End of log

^Z

I pressed ^C to enter the server to add the needed passwords for the user and root

login was a success then

#netBSD #BSD #UNIX #OpenSource #programming #quemu #bash #sh

  • Copy link
  • Flag this comment
  • Block
Stefano Marinelli boosted
Dendrobatus Azureus
@Dendrobatus_Azureus@mastodon.bsd.cafe  ·  activity timestamp 2 weeks ago

TIL about the existence of smolBSD an amazing minimal BSD Unix system. It boots in {milli}seconds!

Site:

https://smolbsd.org/

GitHub: https://github.com/NetBSDfr/smolBSD

#netBSD #BSD #UNIX #OpenSource #programming #quemu #bash #sh

Thanks to @nixCraft

GitHub

GitHub - NetBSDfr/smolBSD: smolBSD is a tiny BSD UNIX (NetBSD) system creation tool, primarily aimed at building modern, lightweight, fast micro VMs

smolBSD is a tiny BSD UNIX (NetBSD) system creation tool, primarily aimed at building modern, lightweight, fast micro VMs - NetBSDfr/smolBSD
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Dendrobatus Azureus
@Dendrobatus_Azureus@mastodon.bsd.cafe  ·  activity timestamp 2 weeks ago

TIL about the existence of smolBSD an amazing minimal BSD Unix system. It boots in {milli}seconds!

Site:

https://smolbsd.org/

GitHub: https://github.com/NetBSDfr/smolBSD

#netBSD #BSD #UNIX #OpenSource #programming #quemu #bash #sh

Thanks to @nixCraft

GitHub

GitHub - NetBSDfr/smolBSD: smolBSD is a tiny BSD UNIX (NetBSD) system creation tool, primarily aimed at building modern, lightweight, fast micro VMs

smolBSD is a tiny BSD UNIX (NetBSD) system creation tool, primarily aimed at building modern, lightweight, fast micro VMs - NetBSDfr/smolBSD
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Roni Rolle Laukkarinen
@rolle@mementomori.social  ·  activity timestamp 4 weeks 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 boosted
R.L. Dane :Debian: :OpenBSD: 🍵
@rl_dane@polymaths.social  ·  activity timestamp last month

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 last month

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 2 months ago

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
Peter B.
@p3ter@mastodon.social  ·  activity timestamp 2 months ago

And #bash knowhow is very useful on many many setups and even "embedded" devices.

I love that even my gaming handheld #R36S supports #bash (over #SSH).

https://handhelds.wiki/R36S

r36s: a modern gamboy-like handheld gaming console, running linux shell.
r36s: a modern gamboy-like handheld gaming console, running linux shell.
r36s: a modern gamboy-like handheld gaming console, running linux shell.
  • Copy link
  • Flag this post
  • Block
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 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 boosted
Garvalf
@garvalf@ludosphere.fr  ·  activity timestamp 3 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 3 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 3 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 3 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
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.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login