Skip to content

Instantly share code, notes, and snippets.

View A248's full-sized avatar
💭
Nonblocking is worth the effort

A248 A248

💭
Nonblocking is worth the effort
  • Exile
View GitHub Profile
@yorickdowne
yorickdowne / friday.md
Last active December 7, 2025 11:46
Debian 13 trixie upgrade

Debian 13

Caution Upgrading from Debian 12 to Debian 13 on machines with mdadm has intermittently failed for me; symptom is that grub EFI is not up to date and system boots into BIOS. Root cause under investigation; it might not be related to mdadm.

To start, read the official release notes.

If your install fits into "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.

Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.

#Content is from a csv file which is in the format ID,buy-price,sell-price for items and just the name for a category
import csv
counter = 0
completed = ""
categories = 0
items = 0
filename = input("Enter .csv filename: ") + ".csv"
with open(filename) as csvfile:
creader = csv.reader(csvfile)
@bmaupin
bmaupin / free-database-hosting.md
Last active December 6, 2025 17:21
Free database hosting
@ffledgling
ffledgling / libvirt-install.md
Created March 4, 2018 20:52
Compile a custom libvirt+libvirt-python+virt-manager stack

Download and install a custom version of libvirt/virsh

CUSTOM_ROOT=/home/ajaisingh/n4/nested-vm/

mkdir -p $CUSTOM_ROOT/src
wget https://libvirt.org/sources/libvirt-4.0.0.tar.xz

# Compiling a new version of libvirt (v4.0.0), requires libnl-devel, libnl-route, libyajl-devel, libdevmapper-devel

sudo apt-get install libnl-route-3-dev
@gregkrsak
gregkrsak / update-submodules
Created February 4, 2014 20:49
A small Bash script to update git submodules.
#!/bin/bash
#
# update-submodules
#
# Updates all submodules of a git project.
# by Greg Krsak <[email protected]>, Feb. 4, 2014
#
read -r -d '' USAGE << EOF
Usage: update-submodules [<options>]
@aadnk
aadnk / EntityHider.java
Last active May 27, 2025 21:04
Hide or show entities
package com.comphenix.example;
import static com.comphenix.protocol.PacketType.Play.Server.*;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.Map;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;