Dynamic USB passthrough using virsh
Dynamic USB passthrough using virsh USB passthrough can be a pain sometimes while using virt-manager. If the previously connected device isn’t connected at the time of starting the VM, it will refuse to boot at all complaining about a missing USB device. But manually adding & removing the USB device each time isn’t ideal, so let’s automate it! Components: Linux Host Windows VM USB device to pass from the host to the vm Python pyudev subprocess json virsh SystemD The idea Use udev to listen to usb events and pass that to the vm using virsh
Brightness Thinkpad W530
Lenovo thinkpad W530 custom brightness Running Linux on my W530 is awesome, but some issues exists. For example I can’t figure out how to change the display brightness hardware-wise. While it’s okay that the display brightness is stuck at 100%, sometimes it becomes a bit annoying so I decided to make my own implementation using xrandr No, this soution is not the best but does the job decent enough for me to continue using it.
Compiling SASS with Docker
What is Sass? Sass is essentially CSS with superpowers. Sass is a preprocessor scripting language (SassScript) that is interpreted or compiled into Cascading Style Sheets. “Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.” - sass-lang.com The difference between SCSS and Sass There are two syntaxes available for Sass. The first, known as SCSS (Sassy CSS) and used throughout this reference, is an extension of the syntax of CSS.
Creating a blog using Hugo
What is Hugo? “The world’s fastest framework for building websites. Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again. Install in seconds, build in milliseconds. Hugo works on macOS, Windows, Linux, FreeBSD, and others.” - gohugo.io Why Hugo? There are numerous of frameworks available that makes building static websites a lot easier. It all comes down to ease-of-use and personal preference.
Exploring the reMarkable pen input
This blog post describes input handling from the reMarkable 2 on a remote PC using Python and SSH. Everything you do with your reMarkable tablet outside of its intended use is at your own risk, neither reMarkable nor I can be held liable if you brick your device. Happy hacking :) About reMarkable “Replace your notebooks and printed documents with the only tablet that feels like paper. reMarkable bridges the gap between pen and paper, and your digital devices.