Skip to content

Instantly share code, notes, and snippets.

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

Mac itsmemac

:electron:
Exploring
View GitHub Profile
@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));
@krisleech
krisleech / renew-gpgkey.md
Last active June 15, 2024 07:12
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@Software-Noob
Software-Noob / migrate-pterodactyl.md
Last active June 14, 2024 14:31
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