Skip to content

Instantly share code, notes, and snippets.

@barraIhsan
barraIhsan / 8BitDoUltimate2Wireless.md
Last active December 7, 2025 20:21
8BitDo Ultimate 2 Wireless on GNU/Linux, SteamOS, and Windows

Most of the source comes from: Steam Beta Forum

Thank you so much to everyone in the forum for contributing, for reaching out to 8BitDo to request switching between XInput/DInput/Switch mode on the dongle, to Valve for adding support on DInput mode, to the SDL developers (and 8bitdo) for adding support on DInput mode, and finally, to the Linux kernel developers for adding support on XInput mode.

This gist summarizes everything from that forum.

Switching Mode

So after the latest firmware update (as the time of writing: Controller 1.06, Adapter 1.04), its now possible to switch to DInput and Switch mode by holding B (DInput) or Y (Switch) while turning on t

@c0m4r
c0m4r / void_linux_hetzner_arm_ipv6.md
Last active June 13, 2025 15:03
Void Linux installation on Hetzner Cloud VPS (Arm64/IPv6-only)

Void Linux installation on Hetzner Cloud VPS

(Arm64/IPv6-only)

This guide describes how to install Void Linux on ARM Hetzner Cloud instances with IPv6-only setup.

image

Table of contents:

@SpaceNerden
SpaceNerden / sshnotification
Created September 4, 2023 21:07
SSH login notification with Gotify
#!/bin/bash
# Append this command to /etc/pam.d/sshd:
# session optional pam_exec.so <path to script>
# Remember to chown +x!
exec &> /dev/null #Hide output
Gotify_URL='https://gotify.example.com'
Gotify_Token='awawawawawawawawawawawawa'

Culture

  • What do you like best about working there?
  • What do you like least?
  • How would you describe this company's culture? engineering culture?
  • What causes the most conflict among employees here?
  • What would you change if you could?
  • How has the company changed in the past five years? How do you think it will change in the next five?
  • How long has the longest serving team member been there?
  • What's the average or median tenure?
@huytd
huytd / wordle.md
Last active November 21, 2025 07:17
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@andrebrait
andrebrait / keychron_linux.md
Last active December 8, 2025 08:31
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.

@probonopd
probonopd / Wayland.md
Last active December 9, 2025 00:16
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Feature comparison

@cemkeylan
cemkeylan / README
Last active December 27, 2022 20:01
More info on: https://cemkeylan.com/blog/20200828-wpa-add-script.html
@rainchen
rainchen / webrick-webify.rb
Last active September 15, 2020 20:37
a ruby implement of webify(https://github.com/beefsack/webify)
require 'webrick'
require 'open3'
server = WEBrick::HTTPServer.new :Port => 8000
server.mount_proc('/') { |req, res| res.body = Open3.capture2(ARGV[0], :stdin_data=>req.body)[0] }
trap('INT') { server.shutdown }
server.start
# server:
# ruby webify-webrick.rb "wc -c"
@meandavejustice
meandavejustice / windows10sanitysetup.md
Last active August 28, 2020 06:51
Windows 10 Sanity Setup

windows 10 sanity setup

Basic preferences

Disable all telemetry and privacy breaching settings on initial setup. (voice search, location services, etc...)

remap capslock
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';