Skip to content

Instantly share code, notes, and snippets.

Using VSCode Flatpak to launch DevContainers Using Podman with Support for Nvidia CUDA and VSCode's "Container Features" In SilverBlue.

Note: This Setup Works for Machine Learning and GPU Acceleration in Containers

Setup

Make Sure you have rebased to UBlue-Nvidia.

Install Visual Studio Code

@carlos-a-g-h
carlos-a-g-h / mirroring.yml
Last active August 24, 2023 23:15
Download a file and upload as a github release (THIS IS NOT LEGAL)
# WARNING: This is not how you should use a CI/CD plaftform, use privately and at your own risk
name: URL uploader
on:
workflow_dispatch:
inputs:
LINK:
type: string
required: true
FILENAME:
type: string

Enable Fractional Scaling Support on Wayland for Electron Applications

VSCode

vim .local/share/applications/code.desktop
[Desktop Entry]
Name=Visual Studio Code

How to make a new rpm-ostree desktop variant in Fedora?

So you want to make a new rpm-ostree desktop variant in Fedora to join Silverblue, Kinoite and Sericea? Here are the steps that you should follow.

First, you should figure out what packages should be installed in your image. To do that, you can start from the base container image (https://quay.io/repository/fedora-ostree-desktops/base) and add packages from the comps group corresponding to your desktop in Fedora : https://pagure.io/fedora-comps

At this point, you should consider which apps are going to be shipped by default, included in the image, and which ones are going to be installed by default as Flatpaks.

Once you've got something working, reproduce that in https://pagure.io/workstation-ostree-config using the comps group and the filter and sync script. Look at other variants for example.

@vadimstasiev
vadimstasiev / readme.md
Last active April 1, 2025 10:46
ProxMox - Enable IOMMU using systemd

ProxMox - Enable IOMMU using systemd

You found that you are using systemd, adding bits to GRUB will not work. Instead, follow these steps:

Edit the kernel command line

Open the /etc/kernel/cmdline file for editing:

nano /etc/kernel/cmdline

@cyberworm-uk
cyberworm-uk / README.md
Last active April 26, 2023 14:03
Fedora IOT AArch64 Kernel 6.2 Boot Fix

Fedora IOT AArch64 Kernel 6.2 Boot Fix

As reported by Fedora CoreOS team, on the AArch64 / ARM64 architecture the new 6.2 kernels will not boot due to older bootloaders in Fedora IoT.


Update

There is now some guidance from the Fedora IoT team on this here. This is probably the better course of action to take than my method below.

@subrezon
subrezon / openwrt-on-proxmox.md
Last active April 24, 2025 04:12
How to set up an OpenWRT VM in Proxmox
  1. Go to OpenWRT release page, select the latest release stable release, then targets -> x86 -> 64. Right-click generic-ext4-combined.img.gz (not the "efi"!) and copy the link.

  2. On the Proxmox host, download the archive and unpack it:

wget *paste link here*
gunzip openwrt-*.img.gz
  1. Resize the image to be the size you want your VM's disk to be (example with 8 GiB):
@nielsvanvelzen
nielsvanvelzen / jf-dev-auth.md
Last active April 22, 2025 17:35
Jellyfin API Authorization

Jellyfin API Authorization

To start using the Jellyfin API, authorization is probably the first thing you'll need to do. Jellyfin's authorization options can be a bit confusing because there are a lot of deprecated options.

Generally there are three ways to authenticate: no authorization, user authorization with an access token or authorization with an API key. The first way is easy, just do nothing. But most often you'll need to use either the access token or API key.

Sending authorization values

There are multiple methods for transmitting authorization values, however, some are outdated and scheduled to be removed. It's recommend to use the Authorization header. If header auth isn't an option, the token may be sent through the ApiKey query parameter. Sending secure data in a query parameter is unsafe as the changes of it leaking (via logs, copy-paste actions or by other means) are high. Only use this method as a last resort.

@lazanet
lazanet / init_sys_22.04.sh
Last active May 14, 2024 09:02
Script that sets up Ubuntu 22.04 to my liking
#!/usr/bin/env -S bash -e
set -o xtrace
function set_gnome_configuration {
# Disable Gnome animations
gsettings set org.gnome.desktop.interface enable-animations false
# Dock settings
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true