Skip to content

Instantly share code, notes, and snippets.

View korewaChino's full-sized avatar
🦊
yip

Pornpipat Popum korewaChino

🦊
yip
View GitHub Profile
#!/bin/sh -e
XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME/.local/share"}"
branch="${1:-stable}"
case "$branch" in
stable)
name=Discord
;;
ptb)
@poyotanp
poyotanp / how-to-disable-middle-click-paste.md
Last active April 26, 2026 21:06
How to disable middle-click paste in KDE Plasma (Wayland)

Environment

  • Arch Linux
  • KDE Plasma 6.1.5 (Wayland)

Solution

For native Wayland applications

  1. open the KDE system settings
  2. select "Workspace" -> "General Behavior"

Setup Altserver Linux on Raspberry Pi with Wifi Refresh

This is a rough outline on how to setup altserver-linux on the 🍓🍰. Wifi refreshing is enabled through the use of netmuxd, which acts as a proxy from AltServer to the iDevice (replaces/enhances usbmuxd).

Tutorials used

Prerequisites

@plembo
plembo / addbr0ubunmcli.md
Last active May 1, 2026 17:36
Add br0 to Ubuntu desktop using nmcli

Add a bridge interface to Ubuntu desktop using nmcli

Had to do this for some advanced networking with KVM, and couldn't figure out how to do it using the Nework Manager gui. Did find an article later that showed how to do it with nmtui, but it's so much easier to record what you did when using the cli.

IMPORTANT SAFETY TIP: Adding or removing PCI devices, like discrete graphics cards, almost always results in changing the "predictable device name" of your physical network card. What I do if that happens is rename the new ethernet connection to match its physical device name. Then I delete any new bridge and the old devices. Finally, I rebuild it all as indicated below. I'm sure there's an easier way to do this (starting with disabling "predictable device naming"). Maybe someone will tell us what it is in the comments.

In the examples below "eth0" is the name of my physical interface. By default on Ubuntu and most distributions that will almost certainly be different, for example: "eno1", "ens1", or "enp2s

@claymcleod
claymcleod / pycurses.py
Last active April 29, 2026 08:42
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()