Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Stefano Marinelli boosted
Alfonso Siciliano
@alfonsosiciliano@mastodon.bsd.cafe  ·  activity timestamp 5 days ago

#Lesson of the day: I waste time searching for a solution #online, then ask #AI, which gives me “wonderful” but completely wrong results. In the end, I read the official #documentation and solve it in a few seconds:

1. https://man.freebsd.org/tcsh/1 > 2. Ctrl-f > 3. type "redirect" > 4. "The shell cannot presently redirect diagnostic output without also redirecting standard output, but `(command > output-file) >& error-file' is often an acceptable workaround. ..."

#Documentation #UNIX #FreeBSD #Shell #scripting #terminal #tcsh #fixing

  • Copy link
  • Flag this post
  • Block
Alfonso Siciliano
@alfonsosiciliano@mastodon.bsd.cafe  ·  activity timestamp 5 days ago

#Lesson of the day: I waste time searching for a solution #online, then ask #AI, which gives me “wonderful” but completely wrong results. In the end, I read the official #documentation and solve it in a few seconds:

1. https://man.freebsd.org/tcsh/1 > 2. Ctrl-f > 3. type "redirect" > 4. "The shell cannot presently redirect diagnostic output without also redirecting standard output, but `(command > output-file) >& error-file' is often an acceptable workaround. ..."

#Documentation #UNIX #FreeBSD #Shell #scripting #terminal #tcsh #fixing

  • Copy link
  • Flag this post
  • Block
alcinnz boosted
Jan :rust: :ferris:
@janriemer@floss.social  ·  activity timestamp 5 days ago

roto - The strongly-typed, compiled #embedded scripting language for #Rust, used by Rotonda

Introducing #Roto: A Compiled Scripting Language for Rust (May 2025):
https://blog.nlnetlabs.nl/introducing-roto-a-compiled-scripting-language-for-rust/

Repo:
https://github.com/NLnetLabs/roto

This looks awesome! I love strongly typed scripting languages! awesome

And the fact that it integrates with Rust so seamlessly... ✨

#RustLang #ProgrammingLanguage #Scripting #ScriptingLanguage

GitHub

GitHub - NLnetLabs/roto: The strongly-typed, compiled embedded scripting language for Rust, used by Rotonda.

The strongly-typed, compiled embedded scripting language for Rust, used by Rotonda. - NLnetLabs/roto
The NLnet Labs Blog

Introducing Roto: A Compiled Scripting Language for Rust

By Terts Diepraam We are working on an embedded scripting language for Rust. This language, called Roto, aims to be a simple yet fast and reliable scripting language for Rust applications. The need for Roto comes from Rotonda, our BGP engine written in Rust. Mature BGP applications usually feature some
  • Copy link
  • Flag this post
  • Block
Jan :rust: :ferris:
@janriemer@floss.social  ·  activity timestamp 5 days ago

roto - The strongly-typed, compiled #embedded scripting language for #Rust, used by Rotonda

Introducing #Roto: A Compiled Scripting Language for Rust (May 2025):
https://blog.nlnetlabs.nl/introducing-roto-a-compiled-scripting-language-for-rust/

Repo:
https://github.com/NLnetLabs/roto

This looks awesome! I love strongly typed scripting languages! awesome

And the fact that it integrates with Rust so seamlessly... ✨

#RustLang #ProgrammingLanguage #Scripting #ScriptingLanguage

GitHub

GitHub - NLnetLabs/roto: The strongly-typed, compiled embedded scripting language for Rust, used by Rotonda.

The strongly-typed, compiled embedded scripting language for Rust, used by Rotonda. - NLnetLabs/roto
The NLnet Labs Blog

Introducing Roto: A Compiled Scripting Language for Rust

By Terts Diepraam We are working on an embedded scripting language for Rust. This language, called Roto, aims to be a simple yet fast and reliable scripting language for Rust applications. The need for Roto comes from Rotonda, our BGP engine written in Rust. Mature BGP applications usually feature some
  • Copy link
  • Flag this post
  • Block
Joseph Nuthalapati :fbx: and 1 other boosted
Bits
@bits@mastodon.online  ·  activity timestamp last week

Unexpected benefits of building your own tools

https://tiniuc.com/make-more-tools/

#programming #softwaredevelopment #scripting #blog

  • Copy link
  • Flag this post
  • Block
Bits
@bits@mastodon.online  ·  activity timestamp last week

Unexpected benefits of building your own tools

https://tiniuc.com/make-more-tools/

#programming #softwaredevelopment #scripting #blog

  • Copy link
  • Flag this post
  • Block
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 3 weeks ago

Wren: A classy little scripting language

https://wren.io/

#HackerNews #Wren #Scripting #Language #Classy #Programming #Language #Developer #Tools

  • Copy link
  • Flag this post
  • Block
slims :miyagi: 🐟⁂ boosted
Evan Hahn
@EvanHahn@bigshoulders.city  ·  activity timestamp 4 weeks ago

Published a big list of scripts I've written over the years: "copy" and "pasta" for working with the clipboard, "getsong" to download music, "murder" for stopping processes, and dozens more: https://evanhahn.com/scripts-i-wrote-that-i-use-all-the-time/

#programming #terminal #scripting #ShellScripts

Scripts I wrote that I use all the time

I've written a number of little scripts over the years, many of which I use every day. Here's a little collection.
  • Copy link
  • Flag this post
  • Block
Evan Hahn
@EvanHahn@bigshoulders.city  ·  activity timestamp 4 weeks ago

Published a big list of scripts I've written over the years: "copy" and "pasta" for working with the clipboard, "getsong" to download music, "murder" for stopping processes, and dozens more: https://evanhahn.com/scripts-i-wrote-that-i-use-all-the-time/

#programming #terminal #scripting #ShellScripts

Scripts I wrote that I use all the time

I've written a number of little scripts over the years, many of which I use every day. Here's a little collection.
  • Copy link
  • Flag this post
  • Block
Stefano Marinelli boosted
Larvitz
@Larvitz@mastodon.bsd.cafe  ·  activity timestamp last month

For 10 years now, people from the Linux side tell me systemd is so much easier and "Unit-Files" are so much cleaner and better than init-scripts ...

Well, I still don't get it. A well implemented init-system like that of FreeBSD is:

- Clean
- Flexible
- Way more lightweight
- Works with just shell code

I have written a rc.d init-script for zigbee2mqtt today and honestly? It's not going to be shorter than that. Would chose that instead of systemd! ANY TIME! K.I.S.S.

10 years in and I still don't see a real advantage of monolithic-binary init-systems with static configuration files.

#freebsd #init #systemd #kiss #simplicity #scripting #linux

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Larvitz
@Larvitz@mastodon.bsd.cafe  ·  activity timestamp last month

For 10 years now, people from the Linux side tell me systemd is so much easier and "Unit-Files" are so much cleaner and better than init-scripts ...

Well, I still don't get it. A well implemented init-system like that of FreeBSD is:

- Clean
- Flexible
- Way more lightweight
- Works with just shell code

I have written a rc.d init-script for zigbee2mqtt today and honestly? It's not going to be shorter than that. Would chose that instead of systemd! ANY TIME! K.I.S.S.

10 years in and I still don't see a real advantage of monolithic-binary init-systems with static configuration files.

#freebsd #init #systemd #kiss #simplicity #scripting #linux

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Mark Gardner
@mjg@mastodon.phoenixtrap.com  ·  activity timestamp 3 months ago

TIL that software (especially #scripting runtimes like #Python, #Perl, and #NodeJS) running in #Alpine#Linux containers is often slower than in other distros like #Ubuntu. This is despite Alpine being faster on startup and often vastly more efficient with CPU, memory, and storage.

It mostly comes down to Alpine’s use of musl libc rather than #GNU’s glibc. musl is optimized for minimalism, not raw performance. Also, the Alpine packages are often not compiled with as many optimizations.

  • Copy link
  • Flag this post
  • Block
Alfonso Siciliano
@alfonsosiciliano@mastodon.bsd.cafe  ·  activity timestamp 6 months ago

Weekend goal: a #Lua chunk (script) to help sighted users review #Braille. It's a great way to understand how visually impaired users interact with a computer using a screen reader and a Braille display. The script is simple and easy to configure. Currently, it offers a learning mode; in the future, a challenge mode will be added, along with a blog post explaining how to set it up.

Link: https://gitlab.com/-/snippets/4858299

On #FreeBSD it should be executable via flua:
% flua learnbraille.lua

after installing liblouis:
# pkg install liblouis

[edit] % /usr/libexec/flua learnbraille.lua

#UNIX #script #scripting #accessibility #inclusion

Terminal screenshot of a Lua script called learnbraille.lua running on FreeBSD. The script is titled "LearnBraille 0.0.1" and uses a Braille conversion table. It quizzes the user with Braille character patterns and expects input of the corresponding character. The session shows a sequence of questions with user responses and feedback indicating whether the answer was correct or not. The script is launched using the command lua54 learnbraille.lua.
Terminal screenshot of a Lua script called learnbraille.lua running on FreeBSD. The script is titled "LearnBraille 0.0.1" and uses a Braille conversion table. It quizzes the user with Braille character patterns and expects input of the corresponding character. The session shows a sequence of questions with user responses and feedback indicating whether the answer was correct or not. The script is launched using the command lua54 learnbraille.lua.
Terminal screenshot of a Lua script called learnbraille.lua running on FreeBSD. The script is titled "LearnBraille 0.0.1" and uses a Braille conversion table. It quizzes the user with Braille character patterns and expects input of the corresponding character. The session shows a sequence of questions with user responses and feedback indicating whether the answer was correct or not. The script is launched using the command lua54 learnbraille.lua.
  • Copy link
  • Flag this post
  • Block
Eva Winterschön
@winterschon@mastodon.bsd.cafe  ·  activity timestamp 7 months ago

💡 Idea for a debugging script 💡

This might already exist for FreeBSD, and if so.. let me know!

- 1) keeps record of OS core/default settings: loader.conf, rc.conf, sysctl.conf, devfs.rules, login.conf etc
- 2) keeps record of file checksum on those OS core files (similar to the app, tripwire)
- 3) mode which shows divergence on current state vs known-default state in configs (1) and checksums (2)
-4) mode which tracks the files and their change-sets over time, similar to a zfs snapshot but at a single file-level

#freebsd #scripting #programming

  • 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 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login