| import urllib.request | |
| import json | |
| # ⚠️ Replace this with your GitHub personal access token (must include notifications scope) | |
| GITHUB_TOKEN = "your_personal_access_token_here" | |
| BASE_URL = "https://api.github.com" | |
| HEADERS = { | |
| "Authorization": f"Bearer {GITHUB_TOKEN}", | |
| "Accept": "application/vnd.github+json", |
This guide is to improve the KDE Plasma experience on X11. It particularly applies to those using the modesetting driver (mainly Intel graphics cards)
This is a crucial step. XLibre and xorg-git contain the "TearFree" feature for modesetting, which is not available in the standard releases. If you use a driver other than modesetting, check that the TearFree option exists for your driver.
Installation depends on the distribution you use. On Arch Linux and derivatives:
Xorg-git:
| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
ITs just totally easy to install amdgpu-dkms kernel driver with ROCm/AMDGPU on OpenSUSE Tumbleweed or better MicroOS/AEON, if you know what to do...
sudo transactional-update --continue pkg install kernel-longterm kernel-longterm-develNOTE: Please don't ask for help here, it was a miracle that I got it to work at all. Seek answers in the usual places (yes, even Stackoverflow knows more than I do).
The question: How can I get 3d accelerated graphics for Linux guests in KVM without using PCI passthrough?
The short answer is: Use VirGL. The long answer is more complicated, because the VirGL project has had slow but steady progress towards actually working reliably, but the degree to which any given Linux distribution (or related driver project) is in sync has varied greatly over time. Even if it works right now, today, on your machine, it might not tomorrow. Note that even when it works, graphics performance is mediocre to downright painful.
Tested on Ubuntu Desktop 22.04.04 LTS with qemu-kvm, in an "Ubuntu on Xorg" session (not Wayland). Linux quests must have spice-vdagent installed (Ubuntu installs this by default). The hardware is a AMD 5600G d
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.
SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on
Please comment below to contribute. Thanks!
| X11 concept | Wayland concept | Notes |
|---|---|---|
| "Window" | "Top-level Shell Surface" | An entire window, including window decorations |
| X11 (the specfication) | Wayland (the protocols) | Neither X11 nor Wayland are binaries that can be installed |
| Xorg, one universally shared default implementation | Multiple competing Wayland compositors | Unfortunately there is no universally used single Wayland compositor; apparently every desktop environment does its own, and as a result what works in one may not work in another |
export DISPLAY=... |
export WAYLAND_DISPLAY=... |
How to know which WAYLAND_DISPLAY one needs to export? The sockets (and their names) should be located in /run/user/*. If WAYLAND_SOCKET is detected, the client will prefer to use the socket provided using that environment variable. |
| #!/bin/bash | |
| ################################################################################ | |
| # cap - capture your screen | |
| # | |
| # This script allows you to capture your screen on Linux or macOS systems using | |
| # the appropriate tools available on each platform. On Linux, it uses 'slop' | |
| # and 'ffmpeg', while on macOS, it utilizes 'screencapture'. The script prompts | |
| # you to select a desktop area for recording and saves the recording as an MP4/MOV | |
| # file with customizable video quality. |
| #!/bin/bash | |
| # Video Quality | |
| # The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default, | |
| # and 51 is worst quality possible. A lower value generally leads to higher | |
| # quality, and a subjectively sane range is 17–28 | |
| QUALITY=28 | |
| # check if slop command exists | |
| if ! command -v slop &> /dev/null |