Skip to content

Instantly share code, notes, and snippets.

@bagaag
bagaag / change_path.py
Last active October 30, 2023 22:21
Update file system paths in Navidrome's database
# This script changes the path for a folder or file in Navidrome's database, allowing music files to be
# moved or renamed on the file system without losing associated metadata in Navidrome. Since the original
# version, it has been updatd to account for the media_file IDs, which are calculated from the path value
# and referenced in several tables.
#
# This script is based on Navidrome version 0.49.2. If you are running an older version of Navidrom, it
# will likely fail. If you are running a newer version of Navidrome, your mileage may vary.
#
# It does NOT make any modifications to the file system - only to the Navidrome database.
#
@AbstractUmbra
AbstractUmbra / 00-deprecation.md
Last active July 14, 2024 16:01
discord.py 2.0+ slash command info and examples

This gist has now been 'deprecated' and has moved...

... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.

@nstarke
nstarke / find-compressed-data.py
Last active July 10, 2024 10:16
Find Compressed Data without Compression Header
#!/usr/bin/env python3
#
# find-compressed-data.py
#
# A small script to bruteforce embedded compressed data that might not have a header
# Useful for raw binary firmware images that do not contain a standard
# binary header (ELF, PE, MACH-O).
#
# I included a limt on size at 16KB because this has a tendency to create
@niko
niko / README.md
Last active July 19, 2024 06:50 — forked from ePirat/spec.md
Icecast Protocol specification

An collection of documents about icecast/shoutcast streaming.

@corenting
corenting / ed_notes.md
Last active June 17, 2024 22:42
Elite: Dangerous APIs findings
@klightspeed
klightspeed / .EliteDangerousCompanionAPI.md
Last active June 10, 2023 03:30
Simple C# Elite Dangerous Companion API client

Simple CAPI client to retrieve player profile from the Elite Dangerous Companion API using OAuth2

@allenyllee
allenyllee / install_tools.sh
Last active July 7, 2024 11:34
mount vhdx in linux
#!/bin/bash
# install qemu utils
sudo apt install qemu-utils
# install nbd client
sudo apt install nbd-client
@ylixir
ylixir / main.md
Last active April 7, 2023 21:29
Blog : Getting bluetooth headphones working on void linux with ALSA

I have a great little sub $20 bluetooth headset that I've been too lazy to get working on my laptop. I run Void Linux because for me systemd creates more headaches than it solves and I prefer minimalism for a machine beholden to a battery. Similarly I consider PulseAudioto have an unacceptable level of overhead for what it brings to the table. So my goal is to get my headphones working on my laptop with these constraints.

Unfortunately the [Bluetooh page of the Void Wiki][void-wiki] is less than useless. I should probably go back and add some stuff for them one of these days. Fortunately the [Bluetooth page of the Arch Wiki][arch] is more helpful, but not 100% precise.

You will need to install Bluez with # xpbs-install -Sy bluez and add yourself to the bluetooth group with the command # useradd -G bluetooth . You might want to log out and back in at this point. This way you can make sure your

@Pulimet
Pulimet / AdbCommands
Last active July 20, 2024 12:55
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader