Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Hacker News
@h4ckernews@mastodon.social  ·  activity timestamp 4 hours 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 days 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 days 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 2 weeks ago

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

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