Skip to content

Instantly share code, notes, and snippets.

@Artefact2
Artefact2 / README.md
Last active October 26, 2025 15:03
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggml-org/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@bettse
bettse / SIO.md
Last active May 26, 2025 13:52
iClass

SIO

If you've only got an SIO and you wonder what the length of the credential is, this information, experimentally derived and provided on Discord, may help.

SIO Payload Length PACS Minimum Size PACS Maximum Size
21 Bytes 25 bits 32 bits
22 Bytes 33 bits 40 bits
23 Bytes 41 bits 48 bits
@GermanAizek
GermanAizek / README.MD
Last active November 7, 2024 22:12
Crucial MX500 Linux Upgrade Firmware

My home server runs on two Crucial MX500 drives. I’d selected those drives because of the price/performance/reliability.

However, upgrading the firmware turned out to be nearly impossible. If you’re looking for an SSD for a Linux server, one thing I’d add to this selection matrix is to find a manufacturer that supports decent online firmware updates.

A small rant: Crucial’s upgrade process is notoriously difficult on Linux. The Windows firmware update can be done from Windows itself, but the provided Linux update only works via a bootable ISO that also requires legacy BIOS (and therefore no AHCI). Converting this to USB works poorly, on many attempts the kernel can’t find its own system disk, or can’t find the SSD hardware. The Internet is full with tutorials on this problem, and you’ll even find advise to [customize the bootloader] (http://pyropus.ca/personal/writings/crucial-m550-firmware-update.html). Given that a typical server takes 2 minutes to boot, the debugging cycle is slow; I spend a good 2 days

@m-radzikowski
m-radzikowski / script-template.sh
Last active October 9, 2025 00:41
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
#!/usr/bin/env python3
# Converts Day One exported notes to `enex` for Evernote importing
# Not complete
# It only exports:
# - title (assumed as the first line of the content starting with `# `)
# - content (rest of the content)
# - tags
# - created
# - updated
#!/usr/bin/env python3
from gi import require_version
require_version('Flatpak', '1.0')
from gi.repository import Flatpak
inst = Flatpak.Installation.new_user()
inst.install_full(flags=Flatpak.InstallFlags.NONE, remote_name="flathub", kind=Flatpak.RefKind.APP, name="org.gnome.Chess", arch="x86_64",branch="stable",subpaths=None)
@danmou
danmou / onenote_export.py
Last active January 10, 2025 11:04
Onenote export to HTML. NOTE: This script is now maintained at https://github.com/Danmou/onenote_export
### README
# This Python scripts exports all the OneNote notebooks linked to your Microsoft account to HTML files.
## Output
# The notebooks will each become a subdirectory of the `output` folder, with further subdirectories
# for the sections within each notebook and the pages within each section. Each page is a directory
# containing the HTML file `main.html` and two directories `images` and `attachments` (if necessary)
# for the images and attachments. Any sub-pages will be subdirectories within this one.
## Setup
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@jerieljan
jerieljan / How I Do PlantUML.md
Last active March 20, 2025 15:40
PlantUML with Style -- How I do PlantUML

I use PlantUML a lot. It's what I use for drawing all sorts of diagrams and it's handy because of its easy markup (once you get used to it) while making things easy to maintain as projects grow (thanks to version control)

This gist explains how I do my PlantUML workspace in a project.

  • The idea is to keep a globals directory for all diagrams to follow (like the "stylesheet" below) to keep things consistent.
  • I use a stylesheet.iuml file that keeps the use of colors consistent through use of basic FOREGROUND, BACKGROUND and ACCENT colors.
  • The style-presets.iuml file defines these colors so you can make "presets" or "themes" out of them.
  • As stated in the stylesheet.iuml, you'll need the Roboto Condensed and Inconsolata fonts for these to work properly.
  • You can choose to either run the PlantUML jar over your file/s, or use an IDE like VSCode with the PlantUML extension. Here's a preview of example-sequence.puml for example: https://imgur.com/Klk3w2F
wget https://origin.ostree.endlessm.com/keys/eos-flatpak-keyring.gpg
flatpak remote-add --gpg-import=eos-flatpak-keyring.gpg eos-apps https://ostree.endlessm.com/ostree/eos-apps
flatpak remote-add --gpg-import=eos-flatpak-keyring.gpg eos-sdk https://ostree.endlessm.com/ostree/eos-sdk