Skip to content

Instantly share code, notes, and snippets.

View bonnebulle's full-sized avatar
🎯
Focusing

vincent_b bonnebulle

🎯
Focusing
View GitHub Profile
#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 June 13, 2025 20:14
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 {
@moalex
moalex / nnn-wiki.md
Created May 31, 2021 12:02
nnn-wiki

Dependencies

A curses library with wide char support (e.g. ncursesw), libc and libreadline (optional).

Utility deps Install? Operation
xdg-open (Linux), open(1) (macOS), cygstart (Cygwin), open (Haiku) base default opener
file, coreutils (cp, mv, rm), xargs, sed (gnu-sed on macOS) base file type, copy, (re)move
tar, (un)zip [atool/bsdtar for more formats] base create, list, extract bzip2, (g)zip, tar
archivemount, fusermount(3)/umount (macOS) optional (un)mount archives
@mehmetsefabalik
mehmetsefabalik / nginx-https-local.md
Last active May 6, 2025 13:57
Enable https on your local environment with nginx

enable https on your local environment

install mkcert and create certificates

brew install mkcert
mkcert -install
@avonmoll
avonmoll / 0_how-I-use-papis.md
Last active April 18, 2025 14:40
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 May 21, 2025 19:03
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.

@PaddiM8
PaddiM8 / kanboard-darktheme.min.css
Created April 28, 2018 13:14
Kanboard Dark Theme CSS
blockquote,body,h1,li,ol,p,table,td,th,tr,ul{margin:0;padding:0;font-size:100%}strong{color:#333;!important}h2{color:white;!important}input{background-color:#333333;!important}body{padding-bottom:10px;color:white;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;text-rendering:optimizeLegibility;background-color:#333333}small{font-size:0.8em}hr{border:0;height:0;border-top:1px solid rgba(0, 0, 0, 0.1);border-bottom:1px solid rgba(255, 255, 255, 0.3)}.page{margin-left:10px;margin-right:10px;background-color:#333333}.margin-top{margin-top:20px}.margin-bottom{margin-bottom:20px}.pull-right{text-align:right}ul.no-bullet li{list-style-type:none;margin-left:0}#app-loading-icon{position:fixed;right:3px;bottom:3px}.assign-me{vertical-align:bottom}a{color:#fff;border:none}a:focus{outline:0;color:#DF5353;text-decoration:none}a:hover{color:white;text-decoration:none}a .fa{padding-right:3px;text-decoration:none;color:333}h1,h2,h3{font-weight:normal;color:white}h1{font-size:1.5em}h2{font-size:1.4em;margin-bottom:
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active June 20, 2025 16:14 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "[email protected]"