Skip to content

Instantly share code, notes, and snippets.

View robertkirkman's full-sized avatar
🇺🇸

Robert Kirkman robertkirkman

🇺🇸
View GitHub Profile
@robertkirkman
robertkirkman / Linux_DRM_OpenGLES.c
Last active September 30, 2024 23:37 — forked from Miouyouyou/Linux_DRM_OpenGLES.c
An example, inspired by Rob Clark "kmscube.c" that uses Linux Direct Rendering Manager ( DRM ) and EGL to create an OpenGL ES 2 context. This is a standalone example, that just clears the screen with a blueish color. This is a fork of Miouyouyou's gist intended for use with the BeagleBone Black's IT PowerVR SGX530 GPU.
// gcc -o drmgl Linux_DRM_OpenGLES.c `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2 -ldl -lsrv_um -I/usr/include/gbm -lIMGegl -ldrm_omap
/*
* Copyright (c) 2012 Arvin Schnell <[email protected]>
* Copyright (c) 2012 Rob Clark <[email protected]>
* Copyright (c) 2013 Anand Balagopalakrishnan <[email protected]>
* Copyright (c) 2017 Miouyouyou <Myy> <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@robertkirkman
robertkirkman / win11.sh
Last active November 9, 2022 04:24
How to install Windows 11 on any PC without TPM
#!/bin/bash
# forked from https://unix.stackexchange.com/a/635839/361859
# dependencies:
# GNU/Linux build environment with sudo access and the following packages or equivalent:
# apt-get install build-essential wget dumpet
# a Windows 10 installation image
# a Windows 11 installation image
# usage: edit paths to match your situation, then execute
# paths (no closing '/')
@robertkirkman
robertkirkman / README.md
Last active August 7, 2024 18:35
How to record or stream SteamOS 3.X Gaming Mode

How to record or stream SteamOS 3.X in gamescope (Gaming Mode)

Here is another method that uses Flatpak and obs-vkcapture, which don't meet my personal needs but are very likely to be useful for you. In the comments there there is also an obs-gstreamer method.

Here is another method for recording that has its own GUI for Gaming Mode built with Decky Loader.

Force SteamOS to behave very much like Arch Linux

Key phrase: very much like, not identical. Always treat this as more unstable than Manjaro and only expect support with it in my comments section here.

  1. Set a password (if you haven't already) and disable read-only rootfs (yes this means after updating SteamOS [not Steam Client] this will all be deleted and you will have to do all this again if you want
@robertkirkman
robertkirkman / README.md
Last active November 10, 2024 09:03 — forked from thalamus/ArchLinuxARM-M1
How to install Arch Linux ARM or Debian ARM in QEMU full system emulator

How to install a GNU/Linux ARM emulator

Prerequisites:

  • A PC with a Linux distribution - Arch Linux amd64 used here

Dependencies (for Arch Linux amd64 but very easy to get on most distros):

@robertkirkman
robertkirkman / replace_firefox.sh
Created July 5, 2022 20:12
Normal Pills for Ubuntu
#!/bin/bash
# replaces default Ubuntu 22.04 snap firefox with a
# mozilla official beta firefox ppa that does not
# mark snapd as any of its dependencies
# run as root
snap remove firefox
snap remove snap-store gnome-3-38-2004 gtk-common-themes
snap remove snapd-desktop-integration
snap remove core20
snap remove bare
@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
@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 / 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 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 / 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)