Skip to content

Instantly share code, notes, and snippets.

View davewongillies's full-sized avatar

Dave Wongillies davewongillies

View GitHub Profile
@lunalucadou
lunalucadou / ProtonLaunch.sh
Last active December 21, 2024 19:00 — forked from smo0z/ProtonLaunch.sh
Proton Launch Script for Games in any Steam Library Folder
#!/bin/sh
# This is a script that allows you to easily launch Steam apps via Proton
# without going through Steam.
# It also allows you to specify specific libraries, for those who utilize
# multiple Steam library folders.
# Finally, it also makes use of curly braces for variable expansion,
# which is best-practice: https://stackoverflow.com/a/8748880
#
# To use this script:
# 1. Save it somewhere (e.g. ~/Desktop/LaunchMyGame.sh)
@shinyquagsire23
shinyquagsire23 / lg_switch_inputs.py
Last active May 20, 2024 11:46
LG DDC/CI control via python hidapi
import struct
import time
import hid
import sys
import argparse
#
# Constants
#
@BestPig
BestPig / analogue-pocket-game-patches.md
Last active November 1, 2024 07:59
Patches to convert GameBoy ROM to `.pocket` (Analogue Pocket ROM)

Patches

Those patches are to convert GameBoy ROM to .pocket ROM. This allows you to play games from the SD Card on your Analogue Pocket.
Feature like RTC and Link cable seems to be unsupported by the Analogue Pocket in GB Studio mode.

Legend of Zelda, The - Link's Awakening DX

GitHub: https://github.com/BestPig/LADX-Disassembly-Pocket

Zelda no Densetsu - Yume o Miru Shima DX

@wannabegeek
wannabegeek / runzwift.sh
Last active February 18, 2024 19:29
Running Zwift under wine on Linux
#!/bin/bash
# Setup should be fairly standard for wine
#
# Install wine version > 5.4
# Install winetricks
# > sudo dnf -y install win winetricks
#
# For the moment I have assumed the default WINEPREFIX
# > winetricks dotnet35sp1 win7
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active December 31, 2024 15:16
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@jun06t
jun06t / vault-golang-login
Created July 13, 2018 15:56
Golang Vault Login Sample
package main
import (
"encoding/json"
"fmt"
"net/http"
"time"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/builtin/credential/aws"
@enricofoltran
enricofoltran / main.go
Last active January 22, 2025 07:38
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"

Meltdown fix impact on Redis performances in virtualized environments

UPDATE: apparently kernel difference may have a serious impact, so I'll redo the test from scratch.

Test performed with AOF enabled, fsync policy 1 second, allowing the rewrites to be triggered.

Command lines used:

@savetheclocktower
savetheclocktower / README.md
Last active January 16, 2025 17:15
Using a rotary encoder as a volume control for the Raspberry Pi

Using a rotary encoder as a volume control

On my RetroPie machine I wanted a hardware volume knob — the games I play use a handful of emulators, and there's no unified software interface for controlling the volume. The speakers I got for my cabinet are great, but don't have their own hardware volume knob. So with a bunch of googling and trial and error, I figured out what I need to pull this off: a rotary encoder and a daemon that listens for the signals it sends.

Rotary encoder

A rotary encoder is like the standard potentiometer (i.e., analog volume knob) we all know, except (a) you can keep turning it in either direction for as long as you want, and thus (b) it talks to the RPi differently than a potentiometer would.

I picked up this one from Adafruit, but there are plenty others available. This rotary encoder also lets you push the knob in and treats that like a button press, so I figured that would be useful for toggling mute on and off.

@freddyb
freddyb / squeezebox-radio-ssh.md
Last active August 22, 2023 07:37
SqueezeBox Radio Default SSH Passwort