Skip to content

Instantly share code, notes, and snippets.

View bonnebulle's full-sized avatar
🤢
green

vincent_b bonnebulle

🤢
green
View GitHub Profile
@pdcmoreira
pdcmoreira / navidromeRemoveAllMissingFiles.js
Created May 6, 2025 14:36
Batch remove all missing files from all pages in Navidrome's "Missing files" list - copy-paste into the console and run
(async () => {
const wait = (time) => new Promise(resolve => setTimeout(resolve, time))
const countElements = () => document.querySelectorAll('.MuiTableRow-root').length
while(countElements()) {
const selectAllInput = document.querySelector('.MuiIconButton-label input')
selectAllInput.click()
@jauderho
jauderho / gist:5f73f16cac28669e56608be14c41006c
Last active April 13, 2026 02:00
HOWTO: Upgrade Raspberry Pi OS from Bookworm to Trixie
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ###
#
# Officially, this is not recommended. YMMV
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/
#
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit
#
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels
#
#Define the SDL mapping string
#use SDL2 Gamepad Tool https://generalarcade.com/gamepadtool/ to generate mapping
SDL_MAPPING="03000000632500002705000010010000,SHANWAN Game Controller for Android,platform:Linux,a:b0,b:b1,x:b3,y:b4,back:b10,start:b11,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a5,righttrigger:a4"
#Start the game by setting environment variable
env SDL_GAMECONTROLLERCONFIG="$SDL_MAPPING" wine your_game.exe
@rponte
rponte / how-to-fix.md
Last active January 5, 2026 10:41
Git clone and SSL certificate problem: "unable to get local issuer certificate" and "server certificate verification failed. CAfile: none CRLfile: none"

The issue with SSL certificate

Just out of the blue, I started getting this issue ("server certificate verification failed. CAfile: none CRLfile: none") while trying to clone any Github repository on Linux (WSL2):

git clone https://github.com/rafaelpontezup/preventing-lost-update-racecondition.git
Cloning into 'preventing-lost-update-racecondition'...
fatal: unable to access 'https://github.com/rafaelpontezup/preventing-lost-update-racecondition.git/': server certificate verification failed. CAfile: none CRLfile: none

And also with Window 11 I got "SSL certificate problem: unable to get local issuer certificate":

// ==UserScript==
// @name Bandcamp Collection Extras
// @description Adds extras to Bandcamp collection pages
// @grant unsafeWindow
// @match https://bandcamp.com/*
// @run-at document-idle
// @version 1.0.0
// ==/UserScript==
class BandCampCollection {
@mehmetsefabalik
mehmetsefabalik / nginx-https-local.md
Last active December 2, 2025 18:27
Enable https on your local environment with nginx

enable https on your local environment

install mkcert and create certificates

brew install mkcert
mkcert -install
@JV-conseil
JV-conseil / Radio-France-Flux-HD-AAC.md
Last active April 11, 2026 12:30
Les nouveaux flux web audio Hifi HD au format .aac des stations de Radio France 📻
@avonmoll
avonmoll / 0_how-I-use-papis.md
Last active January 1, 2026 22:03
A Guide on How to Use papis Sensibly

Installation

Easiest, if you have pip:

$ pip install papis

Adding Documents

Most of the time I add documents via their DOI. For example, I'll be on IEEExplore or ResearchGate and see a paper that I either want to read or know for sure I'll want to cite. So I simply copy the DOI and run

@plembo
plembo / CalibreServerOnLinux.md
Last active March 4, 2026 21:20
Calibre Server on Linux

Calibre Server on Linux

Introduction

Calibre is a powerful cross-platform, open source, ebook manager and editing platform. Its calibre-server component can be used to publish an e-book library on a local network. While you can launch calibre-server as a desktop application, it can also be run as a daemon on a headless Linux server.

This tutorial on setting up calibre-server using Ubuntu 14.04 is very good, but dated.