49 Followers
49 Following
558 Posts

I scream at puters | /dev/shitpost

#nobot #noindex

whomale, he/him
mehttps://panekj.dev
whereEU
ghhttps://github.com/panekj
How I sleep knowing that Windows is the best operating system
if you ever wondered why I'm dead here, it's because I moved to @[email protected] (reason being very silly: I wanted shorter user handle)
btw. here is very incomplete idea status page: https://panekj.dev/projects/project_jackshit.html
PROJ-ff6ef9f2 - projects

Shell shouldn't be a completely new language, it should be an extension to already existing programming language, making completely new dialect makes it harder to remember and transition to other languages. It shouldn't be just a REPL, it should be an UX handcrafted so you feel it's a shell and not just an stdin input. It shouldn't be a barebones construct that allows to set values and do loops, it should have proper standard functionality like variable scoping, type system, serialization to specific formats, administration tooling and readable output.

Interesting. Someone didn't like it when documentation uses the term "simply" and "it's easy" so much they made a site out of it:

https://justsimply.dev/

It's actually a GOOD site too, and if you write docs or marketing it might be worth a look.

Just Simply | Stop saying how simple things are in our docs

https://trains.jo-m.ch/#/trains/list

"Trainbot watches a piece of train track, detects passing trains, and stitches together images of them. Should work with any video4linux USB cam, or Raspberry Pi camera v3 modules."

That is so absurdly cool.

Onlytrains

Trainbot watches a piece of train track, detects trains, and stitches together images of them.

RPM uses OpenPGP to protect software updates. In the fall of 2022, it switched from using its own internal OpenPGP implementation to Sequoia. Last week, Fedora 38 was released with a version of RPM that uses Sequoia. I've written about the 1.5 year journey in a blog post.

#pgp #openpgp #fedora #redhat

https://sequoia-pgp.org/blog/2023/04/27/rpm-sequoia/

RPM Sequoia: A Sequoia-based backend for the RPM Package Manager

Sequoia is a modular OpenPGP implementation in Rust.

I believe I just deleted the first secretly ChatGPT-generated comment on the forum for an OSS project I maintain. It was shaped like an answer, but didn't actually answer the question. Great grammar, sounded authoritative. But, wrong. The internet is absolutely going to become gray goo, and it's going to happen so fast.

@[email protected] has produced a fish plugin for creating #wezterm tabs and splits... by prompting GPT4.

The transcript from the prompting session can be found at https://sharegpt.com/c/UFBSNrN and it's pretty interesting to see the the "collaborative" process and refinement of the solution.

The fish plugin itself can be found at https://github.com/Yukaii/wezl.fish

Create WezTerm Layout. - A ShareGPT conversation

This is a conversation between a human and a GPT-3 chatbot. The human first asks: Below is the help of wezterm cli spaw command. It can spawn new window or pane by specifying options. I want you to implement a fish shell function named `wezc` that create default layout for me. It should create: 1. 5 tabs (Each tab can be create with wezterm cli spawn —window-id WINDOW_ID) 2. The second tab(pane) Should be splitted with golden ratio layout, one pane by left, two horiziontally pane by right 3. The first wezterm cli spawn —new-window —cwd takes a argument cwd that can be used in all window/tabs 4. wezterm cli spawn —new-window return a window id that can be used for spawning others panes --- Usage: wezterm cli spawn [OPTIONS] [PROG]... Arguments: [PROG]... Instead of executing your shell, run PROG. For example: `wezterm cli spawn -- bash -l` will spawn bash as if it were a login shell Options: --pane-id Specify the current pane. The default is to use the current pane based on the environment variable WEZTERM_PANE. The pane is used to determine the current domain and window --domain-name --window-id Specify the window into which to spawn a tab. If omitted, the window associated with the current pane is used. Cannot be used with `--workspace` or `--new-window` --new-window Spawn into a new window, rather than a new tab --cwd Specify the current working directory for the initially spawned program --workspace When creating a new window, override the default workspace name with the provided name. The default name is "default". Requires `--new-window` -h, --help Print help. The GPT-3 chatbot then responds: <div><p>To create the desired layout, you can create a fish shell function named <code>wezc</code> as follows:</p><pre><div class="bg-black rounded-md mb-4"><div class="flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans"><span>fish</span><svg stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="h-4 w-4" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"></svg>Copy code</div><div><code class="!whitespace-pre hljs language-fish">function wezc set cwd $argv[1] # Create the first tab with the specified current working directory set window_id (wezterm cli spawn --new-window --cwd $cwd) # Create 4 additional tabs in the same window for i in (seq 2 5) wezterm cli spawn --window-id $window_id --cwd $cwd end # Split the second tab with the golden ratio layout set golden_ratio 0.618033988749895 set pane_id (wezterm cli split --window-id $window_id --pane 1 --orientation Vertical --cwd $cwd) wezterm cli split --pane-id $pane_id --orientation Horizontal --fraction $golden_ratio --cwd $cwd end </code></div></div></pre><p>Now you can use <code>wezc <CWD></code> to create the desired layout in WezTerm. Just replace <code><CWD></code> with the desired current working directory for all the panes.</p></div>