🚏 kollektiv.sanntid.org

This app uses data from Entur to show live departures from Norwegian public transport. It’s built with the JourneyPlanner API and is the first app I’ve created using vibe coding.

How to Make Gemini Better

Frustrated and Fix for Large Language Models

Automatic translated from norwegian by qwen3.5:9b.

It can’t be denied that large language models are useful. I myself have used them to learn both vibe coding and agent coding. But I can’t trust them. They lead me blindly into wrong tracks and encourage me to continue down dead ends. And not to mention all the irrelevant and wrong information they come with. They produce wall after wall of text just from the smallest question. You end up getting tired of less.

[Read More]
howto  ai 

YubiKey bash setup

From Wikipedia: The YubiKey is a hardware authentication device manufactured by Yubico to protect access to computers, networks, and online services that supports one-time passwords (OTP), public-key cryptography, and authentication, and the Universal 2nd Factor (U2F) and FIDO2 protocols developed by the FIDO Alliance.

To get up and running on a new machine with minimal fuss.

.bashrc

When you are not logged in via SSH, start the gpg-agent. Copy and paste into your terminal to append the configuration to your current .bashrc.

[Read More]

Wireguard VPN server

From Wikipedia: WireGuard is a communication protocol and free and open-source software that implements encrypted virtual private networks (VPNs), and was designed with the goals of ease of use, high speed performance, and low attack surface.

[Read More]

Ubuntu cloud images with virt-install

Earlier we looked at how we could use Ubuntu cloud images with KVM. Now we will use the libvirt cli virsh and virt-install to do the same process. virt-install is a part of the virt-manager supporting tools.

Fetch the Ubuntu Cloud image

This only need to be done once, or when you want to update the cloud image.

  1. Download a Ubuntu Focal image from Ubuntu Cloud Images.
    wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
    
  2. Create an empty image in the default storage pool. This is a storage space where we upload the cloud image. Note that we use the correct postfix on the name here.
    virsh vol-create-as default focal-server-cloudimg-amd64.qcow2 20G
    
  3. Upload the downloaded cloud image to the storage pool in the reserved spaced.
    virsh vol-upload focal-server-cloudimg-amd64.qcow2 focal-server-cloudimg-amd64.img --sparse --pool default
    

Create the VM

Now we use the cloud image as a template for all our new VMs. Change the size and virt-install parameters to make it your own.

[Read More]

Malware lists for PiHole

Excerpt from Wikipedia: Pi-hole is a Linux network-level advertisement and Internet tracker blocking application which acts as a DNS sinkhole and optionally a DHCP server, intended for use on a private network. It is designed for use on embedded devices with network capability, such as the Raspberry Pi, but it can be used on other machines running Linux, including cloud implementations.

Configuring PiHole to resolve IP towards Quad9, which is currently the best public available malware domain filtering DNS service. On top of that you can add your own lists. Recommended lists are the two below.

[Read More]

Use Vanilla kernel on Fedora

Excerpt: The Linux vanilla kernel repositories for Fedora offer RPM packages containing vanilla builds of different Linux kernel version lines. These packages are meant for Fedora users that want to access the latest Linux kernels quickly and comfortably; either the latest mainline kernel, the latest stable kernel or a vanilla variant of the Linux kernel version line Fedora uses currently.

Link: https://fedoraproject.org/wiki/Kernel_Vanilla_Repositories

snapper - filesystem snapshot management

Excerpt from man: Snapper is a command-line program for filesystem snapshot management. It can create, delete and compare snapshots and undo changes done between snapshots.

Snapper never modifies the content of snapshots. Thus snapper creates read-only snapshots if supported by the kernel. Supported filesystems are btrfs as well as snapshots of LVM logical volumes with thin-provisioning.

[Read More]

Chess resources

From Wikipedia: Chess is a two-player strategy board game played on a checkered board with 64 squares arranged in an 8×8 square grid.

[Read More]
chess 

Origami / Paper Folding

From Wikipedia: Origami (折り紙, Japanese pronunciation: [oɾiɡami] or [oɾiꜜɡami], from ori meaning “folding”, and kami meaning “paper” (kami changes to gami due to rendaku)) is the art of paper folding, which is often associated with Japanese culture. In modern usage, the word “origami” is used as an inclusive term for all folding practices, regardless of their culture of origin.

[Read More]

Tear free desktop on Intel graphics

Excerpt from man intel, option “TearFree”: Disable or enable TearFree updates. This option forces X to perform all rendering to a backbuffer prior to updating the actual display. It requires an extra memory allocation the same size as a framebuffer, the occasional extra copy, and requires Damage tracking. Thus enabling TearFree requires more memory and is slower (reduced throughput) and introduces a small amount of output latency, but it should not impact input latency. However, the update to the screen is then performed synchronously with the vertical refresh of the display so that the entire update is completed before the display starts its refresh. That is only one frame is ever visible, preventing an unsightly tear between two visible and differing frames. Note that this replicates what the compositing manager should be doing, however TearFree will redirect the compositor updates (and those of fullscreen games) directly on to the scanout thus incurring no additional overhead in the composited case. Also note that not all compositing managers prevent tearing, and if the outputs are rotated, there will still be tearing without TearFree enabled.

[Read More]
intel  xorg 

Barcode Content

This is a copy from the ZXing repo wiki pages at commit hash 3110236. ZXing is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.


Much has been said about 2D barcodes, and the discussion has focused on the format of the 2D barcode itself – QR Code, Data Matrix, and so on. But equally important is the format of what the barcode itself encodes.

2D barcodes encode text, generally, but that text can represent many things. Commonly, 2D barcodes encode text that represents a URL, like https://google.com/m. This is a special string of text since it is recognizable as a URL by readers, and therefore can be acted upon: the reader can open the URL in a browser.

[Read More]
qrcode 

Learn Docker with LearnDocker.online

I’ve seen a lot of learning resources for Docker. Personally I think this is one of the better resources for beginners. Enjoy!

Excerpt from the website: LearnDocker.online is the most comprehensive online Docker training program on the planet.

docker