by the way this site script now automatically converts every photo to 8-bit png on the site using imagemagick. 8-color dithering cuts file sizes dramatically.

also for testing purposes it generates an index pages with total size of all photos in bytes. loving it!

https://romanzolotarev.com/.ssg.imgs.html

#dithering #smallweb #posixshell #imagemagick

#Poll: Curious about people's attitudes towards shell scripting.

Two part question:

  • Are you a DEVeloper (or working in a development-heavy role), OTHER-IT worker (such as a sysadmin, architect, anything in a non-development-heavy role), or NON-IT (accountant, doctor, whatever)
  • Do you HATE shell scripting, are you INDIFferent towards (or ignorant of) shell scripting, or do you LOVE it?
  • #Unix #UnixShell #ShellScript #ShellScripting #POSIX #PosixShell #sh #bash #zsh #csh #tcsh #ksh #pdksh #oksh #mksh

    dev - hate
    10.4%
    dev - indif
    15.6%
    dev - love
    22.9%
    other-it - hate
    2.1%
    other-it - indif
    9.4%
    other-it - love
    24%
    non-it - hate
    1%
    non-it - indif
    7.3%
    non-it - love
    7.3%
    Poll ended at .

    Should've made this a long time ago:

    function ciglob { #case-insensitive glob generator echo "$*" |while read -N1 c; do case "$c" in [a-zA-Z]) echo -n "[${c^^}${c,,}]";; *) echo -n "$c" esac done } ~ $ ciglob "Hello, world!" [Hh][Ee][Ll][Ll][Oo], [Ww][Oo][Rr][Ll][Dd]! ~ $ ls -ld $(ciglob documents) drwxr-xr-x 52 ~~~ ~~~ 20,480 Apr 10 11:45 Documents

    (Not the most useful example, but I did have a use case in mind when I wrote it ;)

    P.S. (This is a valid way to close a parenthesis. Fight me ;)

    #bash #ksh #sh #shell #UnixShell #POSIX #PosixShell #ShellScripting

    🤔 Ah, the noble pursuit of reinventing the wheel with a POSIX shell in 2023! Kalua promises to turn your Wi-Fi #dreams into a reality (assuming you can navigate the labyrinthine #GitHub pages without losing your mind). 🌐 And don't worry, it's equipped with all the #buzzwords you need to impress your local IT club. 😂
    https://github.com/bittorf/kalua #reinventingthewheel #POSIXshell #WiFi #HackerNews #ngated
    GitHub - bittorf/kalua: hardware-independent openWRT-extension (using POSIX-shell as main-language) for setting up, monitor and manage many, large wifi-mesh-networks for different locations including billing, captive portal / splash screen / weblogin, accounting, data retention and layer7/8-QoS

    hardware-independent openWRT-extension (using POSIX-shell as main-language) for setting up, monitor and manage many, large wifi-mesh-networks for different locations including billing, captive port...

    GitHub

    @computerfact

    foo $(bar) $(baz 1)

    "They made me stop using the backtick because on non-U.S.A. keyboards it is often a dead key. So I picked the U.S.A. dollar as its more international replacement."

    (-:

    #PowerShell #POSIXShell