So I re-write this shell alias that I used all the time alias dkv="docker rm" to be a much safer shell function:
dkv() {
if [[ "$1" == "rm" && -n "$2" ]]; then
read -r -p "Are you sure you want to delete volume '$2'? [Y/n] " confirm
confirm=${confirm:-Y}
if [[ "$confirm" =~ ^[Yy]$ ]]; then
# Disable history
set +o history
# Delete the volume
docker volume rm "$2"
# Re-enable history
set -o history
else
echo "Aborted."
fi
else
docker volume "$@"
fi
}
@lyse@lyse.isobeef.org Doing the devilās work:
https://movq.de/v/b895c14411/los86-shell-cursor-history.mp4
Better than nothing. š
Iāve never liked the behavior of OpenBSDās shell where it just scrolls horizontally:
https://movq.de/v/1371f7efbc/vid-1741714971.mp4
But now Iām this close to implementing the same thing in my own shell ā because itās probably much, much easier than multiline stuff. š
NES86: x86 emulation on the NES
The goal of this project is to emulate an Intel 8086 processor and supporting PC hardware well enough to run the Embeddable Linux Kernel Subset (ELKS), including a shell and utilities. It should be possible to run other x86 software as long as it doesnāt require more than a simple serial terminal. ā« NES86 GitHub page Is this useful in any meaningful sense? No. Will this change the word? No. Does it have any other purpose than just being fun and cool? Nope. None of that ⦠ā Read more
fullmetalScience submits CCS proposal for āNoShoreā project
fullmetalScience1 has submitted their first CCS proposal2 looking to complete work on NoShore, a project dedicated to on-the-go offline payments:
TL;DR The document proposes a shell-based environment that users can run to enable offline payments with supporting merchants, whereas the actual signing device will be developed separately in an upcoming iteration.
ā`
Total funding: 45 XMR.
ETA: Read moreā`
Compact RISC-V Linux Development Device with USB Form Factor Powered by Rockchip RV1103
The Luckfox Pico WebBee RV1103 is a Linux micro development board powered by the Rockchip RV1103 chip, offering a compact platform for diverse development projects. Encased in an ABS protective shell, it supports applications such as lightweight web servers, USB script tools, and smart home devices. Similar to the Luckfox Pico Mini, this device features [ā¦] ā Read more
@prologic@twtxt.net I think printf is a more portable option than echo -e for interpreting \t as tab. E.g. printf ā%s\t%s\t%sā ā$urlā ā$timeā ā$textā. In general I always prefer printf over echo for anything non-trivial in unix shell scripts. See last paragraph of https://en.wikipedia.org/wiki/Echo_(command)#History
Diving into mblaze, I think Iāve nearly* reached peek email geek.
Just a bunch of shell commands I can pipe together to search, list, view and reply to email (after syncing it to a local Maildir).
EXAMPLES at https://git.vuxu.org/mblaze/tree/README
So far Iām using most of the tools directly from the command line, but I might take inspiration from https://sr.ht/~rakoo/omail/ to make my workflow a bit more efficient.
*To get any closer, I think Iād have to hand-craft my own SMTP client or something.
@prologic@twtxt.net Thanks for writing that up!
I hope it can remain a living document (or sequence of draft revisions) for a good long time while we figure out how this stuff works in practice.
I am not sure how I feel about all this being done at once, vs. letting conventions arise.
For example, even today I could reply to twt abc1234 with ā(#abc1234) Edit: ā¦ā and I think all you humans would understand it as an edit to (#abc1234). Maybe eventually it would become a common enough convention that clients would start to support it explicitly.
Similarly we could just start using 11-digit hashes. We should iron out whether itās sha256 or whatever but thereās no need get all the other stuff right at the same time.
I have similar thoughts about how some users could try out location-based replies in a backward-compatible way (append the replyto: stuff after the legacy (#hash) style).
However I recognize that Iām not the one implementing this stuff, and itās less work to just have everything determined up front.
Misc comments (I havenāt read the whole thing):
Did you mean to make hashes hexadecimal? You lose 11 bits that way compared to base32. Iād suggest gaining 11 bits with base64 instead.
āClients MUST preserve the original hashā ā do you mean they MUST preserve the original twt?
Thanks for phrasing the bit about deletions so neutrally.
I donāt like the MUST in āClients MUST follow the chain of reply-to referencesā¦ā. If someone writes a client as a 40-line shell script that requires the user to piece together the threading themselves, IMO we shouldnāt declare the client non-conforming just because they didnāt get to all the bells and whistles.
Similarly I donāt like the MUST for user agents. For one thing, you might want to fetch a feed without revealing your identty. Also, it raises the bar for a minimal implementation (Iām again thinking again of the 40-line shell script).
For āwho followsā lists: why must the long, random tokens be only valid for a limited time? Do you have a scenario in mind where they could leak?
Why canāt feeds be served over HTTP/1.0? Again, thinking about simple software. I recently tried implementing HTTP/1.1 and it wasnāt too bad, but 1.0 would have been slightly simpler.
Why get into the nitty-gritty about caching headers? This seems like generic advice for HTTP servers and clients.
Iām a little sad about other protocols being not recommended.
I donāt know how I feel about including markdown. I donāt mind too much that yarn users emit twts full of markdown, but Iām more of a plain text kind of person. Also it adds to the length. I wonder if putting a separate document would make more sense; that would also help with the length.
@movq@www.uninformativ.de I donāt know if Iād want to discard the twts. I think what Iām looking for is a command ājenny -g https://host.org/twtxt.txtā to fetch just that one feed, even if itās not in my follow list. I could wrap that in a shell script so that when I see a twt in reply to a feed I donāt follow, I can just tap a key and the feed will get added to my maildir. I guess the script would look for a mention at the start of a selected twt and call jenny -g on the feed.
Docker Desktop 4.32: Beta Releases of Compose File Viewer, Terminal Shell Integration, and Volume Backups to Cloud Providers
Discover the powerful new features in Docker Desktop 4.32, including the Compose File Viewer, terminal integration, and enterprise-grade volume backups, designed to enhance developer productivity and streamline workflows. ā Read more
https://ryelang.org/ Interestig programming language based on ideas from Rebol, flavored by Factor, Linux shell and Go with a good REPL
Command Line Week (Part II) Begins!
Terminal. Shell. Command Line. Thing with the letters and stuff. Whatever you want to call it, weāre celebrating it all week at The Lunduke Journal! All of the fun is happening here: https://lunduke.locals.com/ ā Read more
My hacky shell pipeline was flawed. Flexo actually saved ~689 MiB of bandwidth, or 35.7% of my total package downloads.
Since I have these simple, yet effective bash shell commands, which allow me to edit notes, plans, todos and statuses from the terminal, I feel liberated from overly complex software - everything is just text files and applications which come preinstalled on every Linux system.
Anyone else keeping personal .log files updated through basic shell commands?
@prologic@twtxt.net @jmjl@tilde.green
It looks like thereās a podman issue for adding the context subcommand that docker has. Currently podman does not have this subcommand, although this comment has a translation to podman commands that are similar-ish.
It looks like thatās all you need to do to support podman right now! Though Iām not 100% sure the containers I tried really are running remotely. Details below.
I manually edited the shell script that cas.run add returns, changing all the docker commands to podman commands. Specifically, I put alias docker=podman at the top so the check for docker would pass, and then I replaced the last two lines of the script with these:
podman system connection add cas "host=tcp://cas.run..."
podman system connection default cas
(that ⦠after cas.run is a bunch of connection-specific stuff)
I ran the script and it exited with no output. It did create a connection named ācasā, and made that the default. Iām not super steeped in how podman works but I believe thatās what you need to do to get podman to run containers remotely.
I ran some containers using podman and I think they are running remotely but I donāt know the right juju to verify. It looks right though!
This means you could probably make minor modifications to the generated shell script to support podman. Maybe when the check for docker fails, check for podman, and then later in the script use the podman equivalents to the docker context commands.
Myth: Windows 3.1 was just a shell on top of DOS
Bonus Myth: Windows 3.1 did not have real multitasking ā Read more
According to the RedMonk programming language rankings from Jan 2023, Go and Scala are tied at 14th place š
1 JavaScript
2 Python
3 Java
4 PHP
5 C#
6 CSS
7 TypeScript
7 C++
9 Ruby
10 C
11 Swift
12 Shell
12 R
14 Go
14 Scala
16 Objective-C
17 Kotlin
18 PowerShell
19 Rust
19 Dart
RT by @mind_booster: One of the worldās biggest polluters, #Shell, just announced obscene annual profit of $40bn. Shell accounts for close to 1.6% of the global 1.5°C carbon budget. We must prioritize people and planet over profit and #ActInTime. https://www.theguardian.com/business/2023/feb/02/shell-profits-2022-surging-oil-prices-gas-ukraine
One of the worldās biggest polluters, #Shell, just announced obscene annual profit of $40bn. Shell accounts for close to 1. ⦠ā Read more
Animated ASCII Christmas Tree and Hanukkah Menorah in your Shell
Because your Terminal deserves to feel festive during the holidays. ā Read more
āThe Sidecarā ā Adding advanced networking, and a Linux shell, to a Psion palmtop
One of the coolest designs Iāve seen for extending older computers via the serial port. ā Read more
Git security vulnerabilities announced
Upgrade your local installation of Git, especially when cloning with ārecurse-submodules from untrusted repositories, or if you use git shell interactive mode. ā Read more
Git security vulnerabilities announced
Upgrade your local installation of Git, especially when cloning with `ārecurse-submodules` from untrusted repositories, or if you use `git shell` interactive mode. ā Read more
The first UNIX Shell: 1971ās Thompson Shell
Over 50 years old and still surprisingly usable! ā Read more
Command Line Week starts⦠now!
Listen now (26 min) | Shells. Terminals. Text User Interfaces. All week long. ā Read more
The History of the First Computer Shell
BASH? PowerShell? It all traces back to 1963. And the work of an amazing Frenchman, CTTS, and Multics. ā Read more
Linux, Alternative OS, & Retro Computing News - Sep 10, 2022
Haiku approaches Beta 4, Apple II Desktop updated, GNOME Shell Mobile, Quake ported to Apple Watch, and OpenStreetMap for Amiga. ā Read more
Reef shark rescued from Singapore oil refinery
Shell plc said it would be taking action āto enhance preventive measuresā at its seawater intake areas. A sea turtle got stuck in the same intake bay in 2017. ā Read more
Coronavirus: elderly Hongkongers turn to expressive arts therapy to ease pandemic blues
The treatment has helped elderly residents suffering from long Covid open up and come out of their shell, says therapist Janet Li Wai-chong. ā Read more
In Ukraine-Russia war, echoes of WWI with artillery duels, trenches and shell-blasted landscapes
Satellite images of shell-blasted, trench-marked landscapes show why some experts and leaders have drawn parallels with World War I. ā Read more
Calendar & To-Do lists in the Shell with calcurse
Watch now (11 min) | Web-based calendaring systems are so last year. ā Read more
āGameShellā interactive game for learning Linux shell commands
Change directories⦠save the world. ā Read more
mprocs: A new way to run multiple shell applications in one shell
With a cool process list. And it works on Linux, Mac, & Windows. ā Read more
Liven up your Linux Shell with random colorful ASCII art
Plus: How to display colorful art whenever you start a new Linux Terminal. ā Read more
Two tools for translating text between languages⦠from a Linux Shell.
Because sometimes you need to translate a quote without leaving the terminal. ā Read more
Make Linux Shell scripts declare āSuccessā or āFailureā using the Super Smash Bros announcer voice
⦠or any other audio files if you want to get creative about it. ā Read more
Nushell 0.6 is the coolest shell. Maybe ever.
And running it in cool-retro-term is almost TOO fun. ā Read more
Make the Linux shell look like DOS.
Why would you want to make your Linux terminal look like DOS. Well. Why not? ā Read more
https://si3t.ch/Logiciel-libre/awk.html code shell awk
a zero dependency shell script that makes it really simple to manage your text notes [[https://github.com/nickjj/notes]] #links
@adi@f.adi.onl Ugh sorry for not replying. If the file list is dynamic, usually you use something like autoconf to generate the Makefile. Iāve also used wildcards in the past and that works okay. You should be able to use shell commands to populate the file list.
jenny -f. Have now jennys cache under revision control, automatically commiting changes after each fetch. Let's see if this helps finding a (possible) bug.
@movq@www.uninformativ.de Your scenario would produce observed behaviour, agreed. On the other side Iām sure Iāve set very URL in lasttwt > 1630000000.0 (manually, in my editor).
But I canāt reproduce any weird behaviour right now. Iāve tried to āblackholeā twt.nfld.uk temporarily. That does not have any effect.
Iāve also tried to force twt.nfld.uk to deliver an empty twtxt. That does not have any effect either.
So I guess everything is fine with jenny.
I have wrapped jenny into some shell script to versionize ~/.cache/jenney. This way I have better data if anything unexprected is showing again.
a simple Makefile for forwarding internet to your local machine:
SSH_HOST=https://xuu.me
PRIV_KEY=~/.ssh/id_ed25519
forward:
LOCAL_PORT=$(HOST_PORT); sh -c "$(shell http --form POST $(SSH_HOST) pub=@$(PRIV_KEY).pub | grep ^ssh | head -1 | awk '{ print "ssh -T -p " $$4 " " $$5 " -R " $$7 " -i $(PRIV_KEY)" }')"
Now i have one more project that i started on Saturday (24 July): gros - os on rust (it has simple shell already and calc and i have to do a lot more). Also sources are already published
Now i have one more project that i started on Saturday (24 July): gros - os on rust (it has simple shell already and calc and i have to do a lot more). Also sources are already published
https://blog.seboss666.info/2020/04/programmation-defensive-en-bash/ bash code script shell