Skip to content

Instantly share code, notes, and snippets.

Avatar

Péter Tombor Smart123s

  • Hungary
View GitHub Profile
@Smart123s
Smart123s / pou_recalculate_check.sh
Created May 9, 2022
Re-calculates and updates the value of `check` in me.pou.app_preferences.xml for the Android game Pou
View pou_recalculate_check.sh
#!/bin/bash
# Read the value of state from me.pou.app_preferences.xml
state=$(grep -oPm1 '(?<=<string name="state">)[^<]+' me.pou.app_preferences.xml)
# Format state to the hashable string & calculate it's hash
check=$(echo -n "p@v_4"${state//&quot;/\"} | md5sum | awk '{ print $1 }')
# Update the value of check in the me.pou.app_preferences.xml
# Regex from https://stackoverflow.com/a/17333829/9767089
@Smart123s
Smart123s / Update-Force-Test-.md
Last active Dec 25, 2021
Update Force Test Report #powershell #chocolatey
View Update-Force-Test-.md
@Smart123s
Smart123s / Update-AUPackages.md
Last active Aug 15, 2022
Update-AUPackages Report #powershell #chocolatey
View Update-AUPackages.md