Skip to content

Instantly share code, notes, and snippets.

View TheComputerGuy96's full-sized avatar

Echo J. TheComputerGuy96

View GitHub Profile
@TheComputerGuy96
TheComputerGuy96 / webview2.md
Created September 5, 2023 19:48
WebView2 test
@TheComputerGuy96
TheComputerGuy96 / matt-lego-island.patch
Created July 18, 2023 12:22
A rebased version of MattKC's ddraw fix for LEGO Island (and some other games)
From 1f932e005efdf7948891c5dd26402bd0d2cc4366 Mon Sep 17 00:00:00 2001
From: Matthew Wong <itsmattkc(a)gmail.com>
Date: Fri, 18 Sep 2020 00:47:13 +0000
Subject: [PATCH] ddraw: Implement Pick() and GetPickRecords().
Implement functions used by some games (notably LEGO Island) for
determining which 3D object in a scene was clicked by the mouse cursor.
Fighting Steel also uses this function for mouse over. Previous stubs
would cause LEGO Island to crash upon any click and Fighting Steel
to crash on game start. A patch posted years ago on the bug thread
@TheComputerGuy96
TheComputerGuy96 / ltcovidfetch.sh
Created March 1, 2022 07:46
Programa kuri pateikia informaciją apie galimybių paso QR kodą
#!/bin/bash
LC_TIME=lt_LT.UTF-8
LANG=lt_LT.UTF-8
TZ=Europe/Vilnius
done=false
tmpfile=`mktemp /tmp/covid.XXXXX`
progmissing=false
for programs in zbarcam zbarimg base45 awk identify sed jq mktemp grep file; do
@TheComputerGuy96
TheComputerGuy96 / rolissues.md
Last active December 4, 2023 15:38
List of issues when running Roblox on Linux with Wine

Current issues

  • Roblox Player throwing an unrecoverable error/not starting with +relay channel (this limits debugging potential so not relevant for average users)
  • No window decorations after exiting fullscreen on at least GNOME/Xfce (resizing the window brings them back though)
  • Screenshot key doesn't take Roblox screenshots when PrintScreen is used by the DE/WM (selecting "Screenshot" from the pause menu works though)
  • Any issues only present in non-Direct3D/DirectX graphics modes (likely unfixable without Roblox engine developer involvement)
  • Broken website windows in Player UI/login issues in Studio (requires fixes for WebView2)
  • Some Player UI website windows freezing even with WebView2 working (the cause for this is unknown)
  • Keyboard input issues with non-QWERTY keyboard layouts (Wine's keyboard layout handling is poor)
  • Black flickering windows in Studio: https://bugs.winehq.org/show_bug.cgi?id=52283 (multiple child window handling issue?)
@TheComputerGuy96
TheComputerGuy96 / waylandgamelist.md
Last active November 9, 2020 10:32
List of games that support Wayland (WIP)

List of games that support Wayland with minimal setup

  • SuperTuxKart (note 1)
  • Xonotic (note 1)
  • osu!lazer (note 1)

List of games that require library changes for Wayland support

  • Minecraft Java Edition (1.13+) (note 2)

List of games that require both library and game code changes for Wayland support

  • Minecraft Java Edition (pre-1.13) (note 2)
@TheComputerGuy96
TheComputerGuy96 / los141unifiedbuildgetpropoutputons7580.txt
Created September 2, 2017 18:35
getprop output on Samsung Galaxy Trend Plus (GT-S7580) running unified LOS 14.1 build (With sensitive info removed)
[bluetooth.status]: [off]
[camera2.portability.force_api]: [1]
[config.disable_atlas]: [true]
[dalvik.vm.appimageformat]: [lz4]
[dalvik.vm.checkjni]: [false]
[dalvik.vm.dex2oat-Xms]: [64m]
[dalvik.vm.dex2oat-Xmx]: [512m]
[dalvik.vm.heapgrowthlimit]: [192m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [2m]
@TheComputerGuy96
TheComputerGuy96 / los141unifiedbuildcmdlineoutputons7580.txt
Created September 2, 2017 18:24
/proc/cmdline output on Samsung Galaxy Trend Plus (GT-S7580) running unified LOS 14.1 build
androidboot.hardware=hawaii_ss_kyleprods console=ttyS2,115200n8 mem=738M cma0=0M carveout0=0M vmalloc=136M androidboot.console=ttyS2 logbuf_nocache=1 sec_debug.reset_reason=0x1A2B3C00 sec_debug.level=0 androidboot.debug_level=0x4f4c loglevel=0 sec_log=0x70000@0xae900000 bootloaderfb=0xae980000,0x180000 lpcharge=0 cordon=794a45047a7de6a2604757d3e98ce859 androidboot.emmc_checksum=3 brd_ver=0 androidboot.serialno=4203ec78ce472100
@TheComputerGuy96
TheComputerGuy96 / aosp712losrecordertest.txt
Created August 5, 2017 20:00
LOS Recorder app screen recording fail on Samsung Galaxy Trend Plus
--------- beginning of main
08-05 22:41:39.012 1545 1592 D hawaii.hwcomposer: FBDevice::vsync called 64 times
08-05 22:41:40.005 1545 1592 D hawaii.hwcomposer: FBDevice::vsync called 63 times
08-05 22:41:41.001 1545 1592 D hawaii.hwcomposer: FBDevice::vsync called 64 times
08-05 22:41:41.078 1545 1545 D hawaii.hwcomposer: FBDevice::post called 1 times [0 0 1 0 0 0 0 0]
08-05 22:41:41.171 1865 1874 I art : Background partial concurrent mark sweep GC freed 16616(1242KB) AllocSpace objects, 4(144KB) LOS objects, 14% free, 23MB/27MB, paused 2.410ms total 170.043ms
08-05 22:41:42.000 1545 1592 D hawaii.hwcomposer: FBDevice::vsync called 65 times
08-05 22:41:43.001 1545 1592 D hawaii.hwcomposer: FBDevice::vsync called 64 times
08-05 22:41:44.000 1545 1592 D hawaii.hwcomposer: FBDevice::vsync called 64 times
08-05 22:41:45.012 1545 1592 D hawaii.hwcomposer: FBDevice::vsync called 65 times
@TheComputerGuy96
TheComputerGuy96 / lpmorplaylpm
Created April 30, 2017 16:55
Modified /system/bin/lpm and /system/bin/playlpm file to boot a Samsung device into Android if charger is inserted
#!/system/bin/sh
# Run "chmod 755 /system/bin/playlpm; chown 0:2000 /system/bin/playlpm || chmod 0:2000 /system/bin/lpm; chown 0:2000 /system/bin/lpm" with root access after creating this file
/system/bin/reboot
@TheComputerGuy96
TheComputerGuy96 / updater-script
Created April 2, 2017 10:52
Updated updater-script of Flyme OS for GT-S7580 by namterai2003
assert(getprop("ro.product.device") == "kylepro" || getprop("ro.build.product") == "kylepro" || abort("This package is for device: kylepro; this device is " + getprop("ro.product.device") + "."););
ui_print(" ");
ui_print("FLYME OS 5.1.5.20R");
ui_print(" FOR GT-S7580 ");
ui_print("PORT BY namterai2003");
ui_print("THX TO UHES MONSTER");
ui_print("THX TO UHES MASTER");
ui_print("THX TO DEV GALAXY S3");
ui_print("THX TO ALL USER ACE3 INDONESIA");
ui_print("THX TO XDA DEVELOVER ACE3");