Skip to content

Instantly share code, notes, and snippets.

View itsmemac's full-sized avatar
:electron:
Exploring

Mac itsmemac

:electron:
Exploring
View GitHub Profile
@Software-Noob
Software-Noob / migrate-pterodactyl.md
Last active March 26, 2024 19:00
Pterodactyl panel and wings migration

Pterodactyl Migration

Migrating panel

  1. Backup your hidden .env file containing the decryption APP_KEY from /var/www/pterodactyl

  1. Export the database, in this case ours is named panel
@games647
games647 / minecraft-offline-uuid.php
Last active May 7, 2024 10:10
Generate an offline minecraft UUID v3 based on the case sensitive player name
<?
/**
* Generates a offline-mode player UUID.
*
* @param $username string
* @return string
*/
public static function constructOfflinePlayerUuid($username) {
//extracted from the java code:
//new GameProfile(UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes(Charsets.UTF_8)), name));