How do y'all deal with storing binary data in memory using bash/zsh?  

 

#bash #zsh #askfedi

Zsh: select generated files with (om[1]) glob qualifiers - Adam Johnson
https://adamj.eu/tech/2026/01/27/zsh-om1-glob-qualifiers/

#zsh #shellscripting

Zsh: select generated files with (om[1]) glob qualifiers - Adam Johnson

I’ve recently been using memray, a memory profiler for Python, to optimize the startup memory usage (and time) for a client. It’s a fantastic tool, but its flexibility hampers getting instant feedback. It takes three commands to profile a program, generate a flame graph from the profile, and open the flame graph in the browser:

Termux

If you want a nice to great full linux stack for your android, seek for Termux.

do not install the playstore version!

Alphabet {google} sabotages OpenSource projects on Android. Get termux straight from the home page

Termux is a full linux ENV:

termux installs minimal

  • download
  • shell spawns with instructions
  • you have to follow them!!!
  • once familiarized (easy when you know Debian)
  • start your commands, install them individually if their'e not in the default install
  • enjoy a free Linux ENV: in the hostile (google) Android ENV
  • keyboard assistance is at the bottom of the bash window
  • CTRL
  • ALT
  • cursors
  • PaGeUP
  • PaGeDOWN
  • Home
  • End
  • Esc
  • /
  • -
  • tab
  • are all keys to assist you in fluent linux sh typing
  • you may install any sh supported in linux bash csh ksh zsh fish

caveats

  • There are a few, however you will still be able to work there
  • check your internal ssd space, termux works there by default
  • filesizes can be surprising
  • I just install Midnight Commander on one of my Androids and the supporting libs (including clang took a massive 540MiB while mc itself is small)
  • I only noticed because on a default debian install those libs are already there for other elf binaries
  • on the Slitaz distro those libs are also installed, when mc is invoked / installed

Termux is Linux joy on Android

#termux #linux #programming #technology #bash #csh #ksh #zsh #sh #networking

DIE SH DIE DIE DIE

"/bin/sh: It works, but it's far from not being a nightmare"

https://skarnet.org/software/execline/dieshdiedie.html

#C #Sh #shell #csh #tcsh #bash #dash #zsh #posix #execline

@ska @tromo

execline: why execline and not sh

execline: why execline and not sh

Pondering if a transient zsh prompt is something I want to have in my prompt #zsh

Meteorology

Current weather in Kwamalasemutu SR SA with the power of wttr.in & the grace of
lolcat(6) 🏳️‍🌈 wttr.in curl & {ba{c{k{z{fi}}}}}sh

Background photograph is a wolken dek {NL} composed in Commewijne SR SA

log

$ curl --verbose wttr.in/kwamalasemutu|lolcat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0* Host wttr.in:80 was resolved.

  • IPv6: (none)
  • IPv4: 5.9.243.187
  • Trying 5.9.243.187:80...
  • connect to 5.9.243.187 port 80 from 10.2.2.137 port 36128 failed: Network is unreachable
  • Failed to connect to wttr.in port 80 after 5691 ms: Could not connect to server0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
  • closing connection #0curl: (7) Failed to connect to wttr.in port 80 after 5691 ms: Could not connect to servermetalloid@krishna:~/gate/audio/raw/flac/αβeats∞$ curl --verbose wttr.in/kwamalasemutu|lolcat% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0* Host wttr.in:80 was resolved.
  • IPv6: (none)
  • IPv4: 5.9.243.187
  • Trying 5.9.243.187:80...
  • Connected to wttr.in (5.9.243.187) port 80
  • using HTTP/1.x> GET /kwamalasemutu HTTP/1.1> Host: wttr.in> User-Agent: curl/8.14.1> Accept: />
  • Request completely sent off< HTTP/1.1 200 OK< Access-Control-Allow-Origin: *< Content-Length: 9194< Content-Type: text/plain; charset=utf-8< Date: Sun, 05 Apr 2026 01:51:54 GMT< { [2625 bytes data]100 9194 100 9194 0 0 1615 0 0:00:05 0:00:05 --:--:-- 1962
  • Connection #0 to host wttr.in left intactWeather report: kwamalasemutu

`/"".-. Patchy rain nearby
,_( ). +22(25) °C

/(() ↙ 5 km/h

‘ ‘ ‘ ‘ 10 km

‘ ‘ ‘ ‘ 0.0 mm

sources

https://wttr.in [API]

man bash(1)

man lolcat(6)

man xfce4-screenshooter(1)

man thunar(1)

Location: Kwamalasemutu, Coeroeni, Sipaliwini, Suriname [2.3554503,-56.787836]

Z

#Weather #wttr #lolcat #curl #bash #csk #ksh #zsh #sh #fish #meteorology #environment #Physics #Chemistry #Mathematics #Lineair #algebra #technology #OpenSource #programming #POSIX

For people using #Zed as #Flatpak, and not spawning the host shell (instead using the internal barebones shell), tell Zed to use the host shell through `host-spawn` and use tour bash location as argument.

#SoftwareDevelopment #Bash #SH #ZSH #Terminal #Shell #Linux #WebDevelopment #AppDevelopment

After digging into the manual and considering the nuclear nature of a blind -Rns in my first version, I’ve settled on this TUI style one-liner.

`pacman -Qetq | fzf -m --header "Select packages to REMOVE" --preview 'pacman -Qi {}' --preview-window=right:60% | xargs -ro sudo pacman -Rns`

I added this into my zsh plugin and tested it. It works, at least on my laptop. Now can bring the TUI prompt with a hotkey whenever I need to.
#archlinux #zsh #fzf #opensource #AwesomePlugins #github

Arch rolling updates are great until an AUR binary breaks because it’s looking for an old .so version.

I am working on a Zsh helper called #Mend to handle this. It detects the failure, strips the version suffix, and finds the current provider via pacman -F. I'm using native Zsh string splitting to keep it fast.

It’s a personal project that’s grown a bit. Code review and feedback on the logic is welcome.

https://github.com/Rakosn1cek/mend

#ArchLinux #Zsh #Linux #OpenSource

Shell Tricks That Actually Make Life Easier (And Save Your Sanity)

Watch someone backspace 40 characters instead of pressing CTRL+W, and you’ll understand why this list exists. A collection of shell tricks-grouped by what works everywhere and what’s Bash/Zsh-speci...

Larvitz Blog