Skip to content

Instantly share code, notes, and snippets.

View robertkirkman's full-sized avatar
🇺🇸

Robert Kirkman robertkirkman

🇺🇸
View GitHub Profile
@robertkirkman
robertkirkman / Puppeteer-on-Android.md
Last active November 2, 2024 03:56
How To Run Node.js Puppeteer On Android
pkg install x11-repo
pkg install nodejs firefox termux-x11-nightly xfce
npm install puppeteer-core
export TERMUX_X11_XSTARTUP="xfce4-session"
@robertkirkman
robertkirkman / tap0.sh
Last active October 3, 2024 00:49
get a /sys/class/net/tap0 bridge on Linux in 15 seconds no nonsense
ip a # choose physical device to bridge
brctl addbr br0
brctl addif br0 enp6s0 # physical device to bridge
ip a add 192.168.1.130/24 dev br0 # choose new ip
ip tuntap add mode tap tap0
brctl addif br0 tap0
ip link set br0 up
ip link set tap0 up
ip route add default via 192.168.1.1 dev br0 # default gateway
@robertkirkman
robertkirkman / README.md
Last active September 25, 2024 22:36
How to get 100% uncompromising GNU/Linux graphics stability on RDNA1

My stable AMD Radeon RX 5700 XT settings

Note

This is my personal workaround to the nebulous [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout which I have not experienced since the first day, after many months of trial and error, that I started using these exact settings, albeit with older versions of Gentoo's LTS kernel and stable graphics packages, on May 7th 2023, 1 year and 4 months ago. Some people claim that the situation on RDNA2 and RDNA3 is different, so if you have a similar but non-RDNA1 GPU, you might be able to find similar but slightly different workarounds for your system in that freedesktop gitlab issue.

@robertkirkman
robertkirkman / a-README.md
Last active September 6, 2024 10:01
Gentoo Mod: wayland-free Gentoo.

Warning

This is a downstream solution to https://bugs.gentoo.org/923305. Upstream should continue to focus on supporting systems where wayland is unmasked because this masked-wayland configuration is NOT necessary for normal users. Do not ask for support with this in Gentoo channels, instead use the comments section here.

How to use Gentoo without installing Wayland - period.

  1. Add the package.mask and package.use lines below to their respective locations in /etc/portage/
  2. Save each X-Y.patch file in a new folder in /etc/portage/patches/ following the pattern /etc/portage/patches/X/Y/ - you can reference Gentoo Package Search and Gentoo Wiki if you are unsure how to use /etc/portage/patches/
  3. Save emerge-sync-purge-wayland.sh anywhere with any filename and from now on, run it instead of emerge --sync
  4. Run emerge-sync-purge-wayland.sh, then perform a world upgrade with `emerge -avuDU
@robertkirkman
robertkirkman / pointerlocationisshowtapsclone.patch
Created June 20, 2024 23:43
"Show taps" cosmetic skin for the "Pointer location" Android 14 developer mode widget
diff --git a/core/java/com/android/internal/widget/PointerLocationView.java b/core/java/com/android/internal/widget/PointerLocationView.java
index e65b4b65..6e6a9517 100644
--- a/core/java/com/android/internal/widget/PointerLocationView.java
+++ b/core/java/com/android/internal/widget/PointerLocationView.java
@@ -18,7 +18,10 @@ package com.android.internal.widget;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.Context;
+import android.content.res.Resources;
+import android.content.res.TypedArray;
@robertkirkman
robertkirkman / putty.patch
Created February 11, 2024 04:40
How to do something misguided with PuTTY
diff --git a/cmdline.c b/cmdline.c
index 773fb9b1..efe16247 100644
--- a/cmdline.c
+++ b/cmdline.c
@@ -110,13 +110,13 @@ SeatPromptResult cmdline_get_passwd_input(
* after trying once, so that even if we free cmdline_password
* below, we'll still remember that we _used_ to have one.)
*/
- if (!cmdline_password)
+ if (false)
@robertkirkman
robertkirkman / README.md
Last active December 2, 2023 01:48
How to build Turnip for SurfaceFlinger on-device without a PC and without zhiyong/termux-ndk

How to build Mesa Turnip with -Dplatforms=android but without cross-compilation

Small warning: This will "mess up" your Termux installation's zlib.pc file, but if you do other compilations with really similar settings to this one, you're probably going to need it again before you "fix" it by reinstalling Termux's official zlib anyway.

  1. Install Termux

termux-setup-storage
pkg install git make clang binutils
git clone https://github.com/madler/zlib.git
@robertkirkman
robertkirkman / README.md
Last active May 12, 2024 01:34
Basic Intro Example for SteamOS rootfs repair

Tip for those who use steamos but regularly go ham messing with disabled-read-only:

Normally when we want to go back to normal, we just install the next steamos update through gaming mode settings, which erases our changes and gives us a clean installed rootfs in our active slot. however, what if we actually mess up the updater?

image

if done in such a way that the updater breaks but not much else, it can be a subtle effect that might tempt booting the other rootfs or just plugging in the recovery USB and reinstalling. in my experience though, it's possible to drill down and manually repair the rootfs enough to update without rebooting to anything else! Above is what the update UI might look like while this is happening, and here's an example of what the error might look like internally in the Arch Linux portion of SteamOS:

![blob](https://user-images.githubusercontent.com/31490854/283766390-d67

@robertkirkman
robertkirkman / README.md
Last active August 14, 2023 05:53
How to Make a Mario Model on Android

How To Install Termux:X11, Zink, Turnip, n64decomp/sm64, Blender, Fast64, and AngelicMiracles' Definitive Template on Android

  • These steps use bleeding-edge code from August 2023 and will not keep working forever. The first breaking change most likely to stop these steps from working without a programmer updating them will be the release of LLVM 17.
  • Video Tutorial

Requirements:

  • ONLY aarch64 (64-bit ARM)
  • ONLY Qualcomm Adreno 6XX and 7XX series GPUs
  • Android 7+
  • 7.5 GB free space in device storage
@robertkirkman
robertkirkman / .vkBasalt.conf
Last active January 26, 2024 05:26
Alternative player 1 on left player 2 on right solution (AKA "2PV", "SbS") using 3DToElse and vkBasalt. For any splitscreen game. Edit paths etc. to fit your needs
reshadeTexturePath = /home/tacokoneko/.local/share/reshade/Textures
reshadeIncludePath = /home/tacokoneko/.local/share/reshade/Shaders
3DToElse = /home/tacokoneko/.local/share/reshade/Shaders/3DToElse.fx
toggleKey = Home
effects = 3DToElse