- Backup your hidden
.envfile containing the decryption APP_KEY from/var/www/pterodactyl
- Export the database, in this case ours is named panel
| import { z } from 'zod'; | |
| import { ZipWriter, BlobReader, configure } from '@zip.js/zip.js'; | |
| // Without this, we get uncaught error due to Workers runtime bug | |
| // See: https://github.com/gildas-lormeau/zip.js/discussions/514 | |
| configure({ | |
| useCompressionStream: false, | |
| }); | |
| // Payload schema that lists the files to be bundled, their filenames and the archive filename |
| const jsonwebtoken = require('jsonwebtoken'); | |
| const bs58check = require('bs58check'); | |
| const EC = require('elliptic').ec; | |
| const ec = new EC('secp256k1'); | |
| const KeyEncoder = require('key-encoder').default; | |
| /** | |
| * Thank you to https://github.com/mattetre/bitclout-jwt-validate/blob/main/index.js | |
| * @param {String} publicKey | |
| * @param {String} jwt |
| /** | |
| * Returns a Promise which resolves with a value in form of a tuple. | |
| * @param promiseFn A Promise to resolve as a tuple. | |
| * @returns Promise A Promise which resolves to a tuple of [error, ...results] | |
| */ | |
| export function tuple (promise) { | |
| return promise | |
| .then((...results) => [null, ...results]) | |
| .catch(error => [error]) | |
| } |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git