Skip to content

Instantly share code, notes, and snippets.

View armando-herastang's full-sized avatar

Armando Heras Tang armando-herastang

View GitHub Profile
@qcho
qcho / aliases\Logitech_G923_TRUEFORCE_Racing_Wheel_PS_USB.xml
Created August 1, 2021 03:00
City Car Driving Preset - Logitech G923 TRUEFORCE Racing Wheel PS
<?xml version="1.0"?>
<Alias targetDevice1="Logitech G923 TRUEFORCE Racing Wheel PS USB"
targetDevice2="Logitech G923 TRUEFORCE Racing Wheel PS"
targetProductGuid="{C266046D-0000-0000-0000-504944564944}">
<Axis axis="x" name="Steering" />
<Axis axis="y" name="Gas" />
<Axis axis="rz" name="Brake" />
<Axis axis="slider:0" name="Clutch" />
<Button number="1" name="X" />
<Button number="2" name="Square" />
@josemmo
josemmo / repair-mysql-data.ps1
Created August 28, 2020 18:48
Repair MySQL data directory (for XAMPP)
# Based on this answer: https://stackoverflow.com/a/61859561/1956278
# Backup old data
Rename-Item -Path "./data" -NewName "./data_old"
# Create new data directory
Copy-Item -Path "./backup" -Destination "./data" -Recurse
Remove-Item "./data/test" -Recurse
$dbPaths = Get-ChildItem -Path "./data_old" -Exclude ('mysql', 'performance_schema', 'phpmyadmin') -Recurse -Directory
Copy-Item -Path $dbPaths.FullName -Destination "./data" -Recurse