Link Diary April 2023

My april in links.

IPv6 only server sucks

When you want to save some money and order a server with only IPv6, you will not be able to access e.g. github from that machine.

You will not be able to reach any service that does not have an IPv6 address. And at the moment, e.g. github.com is one of these.

To test this, try

# ping6 www.github.com

Genshin Impact playable on Linux

I just randomly gave it another shot and it just ran with Lutris (2.4.2023) - by my mistake the usually necessary patch was not applied and it ran anyway.

A little digging and I found a reddit post. It might very well be they just messed up the anti-cheat-integration (which made it unplayable on Linux so far).

https://www.reddit.com/r/linux_gaming/comments/123zllz/genshin_on_linux_without_custom_code_now_works/

Try Google Bard via US VPN.

I was kind of disappointed. No coding, no config advice, no german …

i3 from version 4.22 on has gaps

Finally the fork is absolete and the orginal i3 has the esthetic gaps between the windows.

https://github.com/i3/i3/blob/next/RELEASE-NOTES-4.22
https://i3wm.org/

REST methods and response codes

There's more to REST than the "200 OK" resonse code.

https://restfulapi.net/http-methods/

Restore buffer memory on Linux

Apparently when downloading huge files, Chrome cloggs the Buffer memory and causes a loss in performance.

https://www.baeldung.com/linux/restrict-size-buffer-cache
https://www.baeldung.com/linux/empty-buffer-cache#1-proc-sys-vm-drop-caches-command

Create ~/bin/free_mem.sh, chmod u+x it and run with sudo

#!/bin/bash
free -h 
sync && echo 3 > /proc/sys/vm/drop_caches 
echo "---"
free -h

Use ffmpeg to get video dimensions of videos in a directory

https://superuser.com/questions/841235/how-do-i-use-ffmpeg-to-get-the-video-resolution

for file in *.mp4 *.avi *.mkv; do
  # use ffmpeg to get video dimensions
  dimensions=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "$file")
  
  # print file name and dimensions
  echo "$file: $dimensions"
done

Latest i3 on Linux (now including gaps)

/usr/lib/apt/apt-helper download-file https://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2023.02.18_all.deb keyring.deb SHA256:a511ac5f10cd811f8a4ca44d665f2fa1add7a9f09bef238cdfad8461f5239cc4
$ sudo apt install ./keyring.deb
$ echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" | sudo tee /etc/apt/sources.list.d/sur5r-i3.list
$ sudo apt update
$ sudo apt install i3

https://i3wm.org/docs/repositories.html

Open equivalent to Chat GPT

Huggingface LLM Chat

Works like Chat GPT, but is open. Yes, you'll experience phantasizing more often but it's for you to play around and involve instead of just consuming a service from a closed source company.

The online version:
https://huggingface.co/chat/

Involve in the training of the model:
https://open-assistant.io/dashboard

You can also run it at home, but I have not tried yet.

Examples for Stable Diffusion Prompts

Struggeling writing prompts that produce nice images?

Find example images and the used prompt here:
https://prompthero.com/stable-diffusion-prompts

Utilize ChatGPT patterns

Download all ancient books of the Gutenberg Project

https://ebookfoundation.org/openzim.html

Uncompressing this can be a challenge though.

Heizungsförderung 2023/2024

Catppuccin Theme for many apps

Many many Linux Apps also supported. Looks really zen.
https://github.com/catppuccin/catppuccin

Additionally maybe the fish shell "pure".
https://github.com/pure-fish/pure

Sometimes glyphs are used in the TUI layouts but seem missing in Ubunutu. Installing this font worked for me:
https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Hack

Video Picks

Youtube Preview/Vorschau

Greening the Sahara

Youtube Preview/Vorschau

Physics at speed :-O

Youtube Preview/Vorschau

Early GPT-4 at Microsoft

Youtube Preview/Vorschau

ChatGPT query hints #1

OEmbed Error
  • Provider returned HTTP Status 404 for
  • All resolution methods failed
  • Provider returned HTTP Status 401 for
  • All resolution methods failed

ChatGPT query hints #2

Youtube Preview/Vorschau

nmap ist kein Hacker-Tool

Youtube Preview/Vorschau

tmux Zen

Youtube Preview/Vorschau

React still relevant?

Youtube Preview/Vorschau

The never nester

Youtube Preview/Vorschau

How a bidet works

Youtube Preview/Vorschau

AI vs Machine learning

Youtube Preview/Vorschau

Convey's Law in Architecture

Youtube Preview/Vorschau

AI responsibilities.

Discussion

Enter your comment: