Skip to content

Instantly share code, notes, and snippets.

View ethical-haquer's full-sized avatar
⛓️
The truth will set you free

ethical_haquer ethical-haquer

⛓️
The truth will set you free
View GitHub Profile
#!/bin/bash
# Detect tethering interface name on the phone (rndis0 or usb0)
intf_cmd=$(adb shell "su -c 'if [ -e \"/sys/class/net/usb0\" ]; then echo \"Tethering interface: usb0\"; elif [ -e \"/sys/class/net/rndis0\" ]; then echo \"Tethering interface: rndis0\"; else echo \"Unable to find tethering interface.\"; fi'")
if [ "$intf_cmd" == "Tethering interface: usb0" ]
then
echo "$intf_cmd"
intf="usb0"
@dfxdj
dfxdj / text.md
Created March 3, 2026 13:23
Enabling IPv6 for WiFi-to-USB tethering on Android using proxy NDP

On your phone, pull up ip a ls and note the relevant interfaces (WiFi and the USB port):

panther:/ # ip a ls
...
48: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 86:45:56:22:79:e4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.166/24 brd 192.168.1.255 scope global wlan1
       valid_lft forever preferred_lft forever
 inet6 2001:470:5:401:534:654:dbe:43/64 scope global 

AMD APU Optimization Guide for llama.cpp on SteamOS

This guide documents the process to optimize and run large language models on AMD APUs (specifically 7840U with Radeon 780M, Ayaneo Flip w/ 32GB RAM) using llama.cpp with Vulkan acceleration.

Prerequisites

System Preparation

# Disable read-only filesystem (SteamOS specific)
sudo steamos-readonly disable
@delameter
delameter / vt100.rst
Last active May 16, 2026 09:00
VT100 escape codes

VT100 escape codes

This document describes how to control a VT100 terminal. The entries are of the form "name, description, escape code".

The name isn't important, and the description is just to help you find what you're looking for. What you have to do is send the "escape code" to the screen. These codes are often several characters long, but they all begin with ^[. This isn't the two characters ^ and [, but rather a representation of the ASCII code ESC (which is why these are called escape codes).

@aphix
aphix / BetterAirlineClub.userscript.js
Last active October 15, 2026 13:46
[1.4.0] Better Airline Club + Cost Per PAX Combined & Improved
// ==UserScript==
// @name Better Airline Club + Cost Per PAX Combined & Improved
// @namespace http://tampermonkey.net/
// @version 1.4.0
// @description Enhances airline-club.com and v2.airline-club.com airline management game
// @author Aphix/Torus (original "Cost Per PAX" portion by Alrianne @ https://github.com/wolfnether/Airline_Club_Mod/)
// @match https://*.airline-club.com/
// @icon https://www.google.com/s2/favicons?domain=airline-club.com
// @downloadURL https://gist.githubusercontent.com/aphix/fdeeefbc4bef1ec580d72639bbc05f2d/raw/BetterAirlineClub.userscript.js
// @updateURL https://gist.githubusercontent.com/aphix/fdeeefbc4bef1ec580d72639bbc05f2d/raw/BetterAirlineClub.userscript.js
@LukeZGD
LukeZGD / ios-downgrade-dualboot.md
Last active November 16, 2026 12:36
Downgrade and dualboot status of almost all iOS devices

Downgrade and dualboot status of almost all iOS devices

UPDATED: 2026-11-04

@mp035
mp035 / tk_scroll_demo.py
Last active September 29, 2026 02:33
A simple scrollable frame class for tkinter, including example usage.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import tkinter as tk
import platform
# ************************
# Scrollable Frame Class
# ************************
@JBlond
JBlond / bash-colors.md
Last active November 10, 2026 18:37 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@ursm
ursm / len0073.patch
Last active June 23, 2025 16:46
Fix TrackPoint / touchpad issue on ThinkPad X1 Carbon 5th (Linux 4.12)
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index 16c3046..ca912ce 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -173,6 +173,7 @@ static const char * const smbus_pnp_ids[] = {
"LEN0046", /* X250 */
"LEN004a", /* W541 */
"LEN200f", /* T450s */
+ "LEN0073", /* X1 Carbon 5 (Elantech) */
NULL
@mjnaderi
mjnaderi / install-arch.md
Last active October 22, 2026 15:06 — forked from mattiaslundberg/arch-linux-install
Installing Arch Linux with Full Disk Encryption (LVM on LUKS)

Installing Arch Linux with Full Disk Encryption

If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.

Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.

If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.