Skip to content

Instantly share code, notes, and snippets.

View thc282's full-sized avatar
🎮
Gaming Student

thc282

🎮
Gaming Student
View GitHub Profile
@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
@errorseven
errorseven / obj2str.ahk
Last active August 26, 2023 13:56
Obj2Str Function - Useful for printing out Objects/Arrays!
/* ___ _ _ ____ __ _
/___\ |__ (_)___ \/ _\ |_ _ __
// // '_ \| | __) \ \| __| '__|
/ \_//| |_) | |/ __/_\ \ |_| |
\___/ |_.__// |_____\__/\__|_|
4/17/17 |__/ by errorseven
What this does:
Takes an Object/Array and turns it into a string. Maintains exact format,