This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Pterodactyl backup downloader script | |
| # made with <3 by ari melody | |
| # | |
| # Usage: ./pterodactyl-backup-downloader.sh <server_uuid> <backup_uuid> [-y] | |
| # `-y` will force the script to download without a prompt (useful for backup automation!) | |
| # | |
| # this script requires a `.env` file containing the following variables: | |
| # BASE_API_URL="https://pterodactyl.example.host/api" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run this script as root! Not all directories may be properly backed up otherwise." | |
| exit 1 | |
| fi | |
| BASE_DIR="/pds" | |
| BACKUP_DIR="./backups/bluesky-pds" | |
| BACKUP_NAME="bluesky-pds_backup-$(date '+%Y-%m-%d')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <assert.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| int main(int argc, char *argv[]) { | |
| if (argc != 2) { | |
| printf( | |
| "Usage: %s <bytes>\n" | |
| "Allocates a single byte, and attempts read/writes `bytes` ahead, starting from that memory pointer.\n", | |
| argv[0]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Creates a reorderable list from any `container` and viable list item selector. | |
| * | |
| * This function is absolute magic and I love it | |
| * | |
| * Example: | |
| * ```html | |
| * <ul id="list"> | |
| * <li>Item 1</li> | |
| * <li>Item 2</li> |