Skip to content

Instantly share code, notes, and snippets.

View hamburgerghini1's full-sized avatar

Tommi Pöntinen hamburgerghini1

  • Tampere, Finland
  • 20:46 (UTC +03:00)
View GitHub Profile
@carrot-c4k3
carrot-c4k3 / gspoc.txt
Last active March 28, 2025 04:07
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 December 8, 2024 14:48
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 25, 2023 22:08
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 April 24, 2025 13:35
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 title published tags
post
Tampermonkey ad-blocker
true
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 March 19, 2025 23:38
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