Skip to content

Instantly share code, notes, and snippets.

View tommipontinen76's full-sized avatar

Tommi Pöntinen tommipontinen76

  • Tampere, Finland
  • 07:10 (UTC +03:00)
View GitHub Profile
@thekosmix
thekosmix / UT_Install_ReadMe.md
Last active January 19, 2026 18:10
How to install Ubuntu Touch in Lenovo Tab M10 HD (2nd Gen) - X306X (Wi-Fi+LTE)

If your device is X306F (Wi-Fi Only), follow the standard process on UT's website: https://devices.ubuntu-touch.io/device/amar-row-wifi/

Steps for Installing UT in Lenovo Tab M10 HD (2nd Gen) - X306X (Wi-Fi+LTE) using Linux

  1. Install adb and fastboot version 30.0
  2. Unlock Bootloader and Enable USB debugging
  3. Download the latest firmware of Android 11 and extract the zip.
  4. Boot your device in fastboot mode by holding volume down and power keys together.
  5. Run fastboot devices to confirm if the device is being detected or not.
  6. Open a terminal in unzipped directory and run the following commands
@carrot-c4k3
carrot-c4k3 / gspoc.txt
Last active October 4, 2025 18:03
Game Script native code execution PoC
// native code exec PoC via Game Script - @carrot_c4k3 (exploits.forsale)
//
// sample shellcode: mov rax, 0x1337; ret;
// drop your own shellcode inplace here
let shellcode = [0x48,0xC7,0xC0,0x37,0x13,0x00,0x00,0xC3]
// hex printing helper functions
let i2c_map = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']
let c2i_map = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, 'A': 0xA, 'B': 0xB, 'C': 0xC, 'D': 0xD, 'E': 0xE, 'F': 0xF}
@reneklacan
reneklacan / aoe4-mp-fix.sh
Last active April 6, 2026 22:26
Script to fix AOE4 desync issues
#!/bin/bash
set -ex
STEAM_DIR=/home/$USER/.steam/steam/steamapps
AOE4_DIR=$STEAM_DIR/compatdata/1466860
AOE4_WIN_DIR=$AOE4_DIR/pfx/drive_c/windows
AOE4_WIN_SYS32_DIR=$AOE4_WIN_DIR/system32
AOE4_WIN_SYS64_DIR=$AOE4_WIN_DIR/syswow64
@coreybruce
coreybruce / Dead Rising 2 infinite loading fix
Last active June 26, 2024 13:03
Dead Rising 2 infinite loading fix & controller fix instructions
You will first need to install xact first to fix the infinite loading screen bug
"WINEPREFIX=/home/$USER/.steam/steam/steamapps/compatdata/427190/pfx/ winetricks xact"
Change the location on the command above if your library is on a different drive location.
Please use the latest Proton-GE to also fix wierd controller layout issues
https://github.com/GloriousEggroll/proton-ge-custom/releases
After that your game will run without issues.
@jedieaston
jedieaston / Install-WinGet.ps1
Last active July 30, 2025 08:06
Install WinGet (.ps1)! (on x64 systems)
$ErrorActionPreference = "Stop"
$apiLatestUrl = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest'
$tempFolder = $env:TEMP
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$WebClient = New-Object System.Net.WebClient
function Update-EnvironmentVariables {
foreach($level in "Machine","User") {
@3lpsy
3lpsy / readme.md
Created June 11, 2021 17:55
How to automatically launch apps in certain workspaces in SwayWM

Fun Stuff

I recently figured out how to launch applications in sway on login (or config reload) in specific workspaces. I tried doing this a year or so ago using procedural calls to swaymsg with manual changes to workspaces but it failed due to the delay in launching apps (the workspace would change too quickly). However, I recently figured out how to actually do it by combining swaymsg with assign.

First, you'll want to get the app_id, class or title of window you want to launch. Then you'll want to add it to the your sway config file.

The syntax looks like:

@DerFichtl
DerFichtl / tampermonkey-adblock-block.md
Last active November 12, 2025 12:09
Tampermonkey Adblock Script - This Ad-Blocker is running on pages with Adblock-detectors and can remove or click elements to cleanup before you start browsing.
layout post
title Tampermonkey ad-blocker
published true
tags
adblock
tampermonkey
browser

This ad-blocker script for Tampermonkey won't trigger an adblock-block / adblock-detector script and so you could use it for pages that are annoying you with "please turn of your adblock" messages. It's just hiding the ads and don't try to intercept the requests or remove the ads at all. So it don't make the websites faster, but it makes them cleaner and easier to read.

This script is not a generic solution and has to be configured for every website it should clean up. I don't provide configs for pages, just use your browser developer-tools to find the elements you want remove or click.

@MiyacoGBF
MiyacoGBF / 01_NieR_FAR.md
Last active February 9, 2026 11:56
How to Install FAR, HD Texture Pack, and ReShade (GShade) for NieR:Automata on Linux
@keegoid
keegoid / WindowsBootEFI.sh
Last active May 24, 2024 15:30
How to repair Windows Boot Manager from Linux
# use Windows repair disc to run Startup Repair
# update grub config file for EFI system
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg # Fedora
sudo update-grub # Ubuntu
# if grub doesn't find Windows Boot Manager
# find EFI partition (could be on sdb, sdc, etc if you have more than one hard drive)
gdisk -l /dev/sda