Skip to content

Instantly share code, notes, and snippets.

@l33tm4st3r
l33tm4st3r / aur_malware_check.sh
Last active June 17, 2026 07:12
AUR supply-chain malware checker (atomic-lockfile / lockfile-js / nextfile-js campaign, June 2026) - behavior-based detection
#!/usr/bin/env bash
#
# aur_malware_check.sh - official-list + BEHAVIOR-based detection
#
# AUR malware campaign, June 2026
# (atomic-lockfile / lockfile-js / nextfile-js / js-digest):
# https://lists.archlinux.org/archives/list/aur-general@lists.archlinux.org/thread/FGXPCB3ZVCJIV7FX323SBAX2JHYB7ZS4/
#
# Two complementary strategies:
# - Cross-check installed AUR packages against Arch's authoritative live list.
@bluemonk
bluemonk / howto.md
Last active April 9, 2026 10:48
Looking Glass on NixOS

Synopsis

This howto illustrates how to configure Looking Glass on NixOS.

Prerequisites

  • NixOS 25.11 (unstable should work, but I haven't tested it)
  • Looking Glass B7
  • systemd 258 (because of this)
- name: Overprovision like the pros'
hosts: all
tasks:
- name: Install early OOM killer and zram
ansible.builtin.apt:
pkg:
- earlyoom
- zram-tools
- name: Configure early OOM killer
ansible.builtin.lineinfile:
@anttti
anttti / navidrome.md
Created August 3, 2025 10:45
Navidrome setup

Navidrome setup

Decided to spend a Saturday evening setting up Navidrome on my homelab PC. The plan was to be able to listen to music that’s stored on my Synology NAS on my phone regardless of where I am, meaning I’d probably be looking at setting up Tailscale as well. Here's what I had to do:

Prerequisites

  • Acquire cheap AF hardware. In my case, a 2nd hand 30 eur mini-PC
  • Install Proxmox to it. I used this guide (also installed Home Assistant)

Setup steps

  1. Install Navidrome using the Navidrome Proxmox VE Helper-Script
  2. Enable NFS share on my Synology’s music library partition
  3. A crucial step in making it possible for the navidrome user to be able to actually see the files within the NFS share was to select ”Squash: Map all users to admin” when setting up the NFS rule in Synology control panel. Unsure if ”Map all users to guest”
@mietzen
mietzen / migrate-pve-zfs-boot-volume.md
Last active January 3, 2026 17:08
Step-by-step guide to migrating a Proxmox bootable ZFS mirror from NVMe to SATA SSDs while preserving UEFI boot

Migrate Proxmox ZFS Boot Pool (rpool) from NVMe to SATA SSDs

This guide documents how to migrate your Proxmox bootable ZFS mirror (rpool) from two NVMe drives to two SATA SSDs of the same size, preserving bootability via UEFI.

Summary

From:

  • ZFS mirror on: /dev/nvme0n1p3, /dev/nvme1n1p3
  • UEFI boot partitions: /dev/nvme0n1p2, /dev/nvme1n1p2
@BrutalBirdie
BrutalBirdie / yt-dlp_cheat_sheet.md
Last active June 13, 2026 22:27
yt-dlp cheat sheet

yt-dlp Cheat Sheet

Note

Set the $URL variable with your URL for easy copy and paste

Example:

export URL='https://youtu.be/PLUZDtJCdDM'
@axelquack
axelquack / automountSmbUnderBazzite.md
Last active May 11, 2026 21:37
Automount SMB under Bazzite by using systemd

Automount SMB under Bazzite

Make sure that you replace whatever is in "<>" with your own data.

Setup authentication configuration file

Generate a file that defines the login data to mount the volume. The file will be called credentials located at /var/home/<username>/.smb/credentials. Make sure you first generate the folder mkdir /var/home/<username>/.smb.

username=<username>
@juanfdovilla
juanfdovilla / gist:5c4c9191100d2ac699f37552c03520b5
Created February 3, 2025 22:56
rbash – A Restricted Bash Shell Explained with Practical Examples
rbash – A Restricted Bash Shell Explained with Practical Examples
Ravi SaiveLast Updated: October 25, 2024 Read Time: 3 minsCategoriesBash Shell 11 Comments
In the world of Linux and Unix-like systems, security is crucial, especially when multiple users share a system. One way to enhance security is by using restricted shells. One such shell is rbash, or Restricted Bash.
This article will explain what rbash is, how it differs from the regular Bash shell, and provide practical examples of its usage.
What is a Shell?
Before diving into rbash, let’s clarify what a shell is.
@hopeseekr
hopeseekr / StackOverflow Stats.md
Last active July 3, 2026 20:15
StackOverflow Dec 2024 stats

Disclaimer: I'm in the Top 1% of StackOverflow contributors with 23,315 rep points.

I asked 1 high-quality question in 2024, and it was closed almost immediately, and I haven't engaged with the site since.

If someone with 20,000+ karma has their nicely-formatted questions closed so quickly, what must the newbies and rank-in-file encounter? This is probably a big reason why it's declining.


@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active July 4, 2026 05:18
QEMU with VirtIO GPU Vulkan Support

QEMU with VirtIO GPU Vulkan Support

With its latest reales qemu added the Venus patches so that virtio-gpu now support venus encapsulation for vulkan. This is one more piece to the puzzle towards full Vulkan support.

An outdated blog post on clollabora described in 2021 how to enable 3D acceleration of Vulkan applications in QEMU through the Venus experimental Vulkan driver for VirtIO-GPU with a local development environment. Following up on the outdated write up, this is how its done today.

Definitions

Let's start with the brief description of the projects mentioned in the post & extend them: