Link Diary April 2023
My april in links.
-
- Greening the Sahara
- Physics at speed
- Early GPT-4 at Microsoft
- ChatGPT query hints #1
- ChatGPT query hints #2
- nmap ist kein Hacker-Tool
- tmux Zen
- React still relevant?
- The never nester
- How a bidet works
- AI vs Machine learning
- Convey's Law in Architecture
- AI responsibilities.
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).
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.
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
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
Haben sie ganz gut zusammengefasst hier:
https://www.spiegel.de/wirtschaft/service/was-nun-fuer-ihre-heizung-gilt-und-wie-sie-am-meisten-foerderung-rausholen-kolumne-a-2a87e14a-a77a-4ebd-b358-8021fe6dca0e
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
- Provider returned HTTP Status 404 for
- All resolution methods failed
- Provider returned HTTP Status 401 for
- All resolution methods failed
ChatGPT query hints #2
Discussion