Skip to content

Instantly share code, notes, and snippets.

View axeleroy's full-sized avatar

Axel Leroy axeleroy

View GitHub Profile
@archeYR
archeYR / 8bitdofirmwarelinux.md
Last active September 20, 2025 00:26
8BitDo Firmware Updater in Wine

This is about running 8BitDo's Firmware Update tool for Windows in Wine. It can be used for updating newer 8BitDo devices that may not be supported by fwupd on Linux. This tool uses .NET Framework, so it will need Wine Mono to be installed (dotnet48 wintericks verb was tested to work as well).

This tool needs Segoe UI Symbol font, on Arch this font is provided by ttf-ms-win10-auto package. For other distributions there is install script.

You will have to let Wine access device's HID interface for updating the firmware. Most importantly it should be a boot HID interface (exposed when device is in bootloader mode, often referred to as "manual update mode" or "advanced mode"). It is also worth adding the Product IDs for HID interfaces that are exposed under different conditions (for example, Ultimate Bluetooth Controller's receiver exposes a HID interface when controller is not connected),

@kmikko
kmikko / nbsp-wayland.md
Created March 2, 2020 14:15
Disable non-breaking space in Wayland

Disable non-breaking space in Wayland

To disable non-breaking space, e.g. AltGr + Spacebar, one can issue:

setxkbmap -option "nbsp:none"

This fixes it for programs like vscode but GNOME doesn't honor it. To fix that dump dconf settings for input-sources:

dconf dump /org/gnome/desktop/input-sources/ > input-sources.dconf

Open input-sources.dconf with editor and add 'nbsp:none' to xkb-options list so that you'll end up with something like:

@alexellis
alexellis / timelapse.md
Created March 9, 2017 08:48 — forked from porjo/timelapse.md
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 24 - output frame rate
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory
  • -i DSC_%04d.JPG - e.g. DSC_0397.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality