Skip to content

Instantly share code, notes, and snippets.

View TwistedAsylumMC's full-sized avatar

Seb TwistedAsylumMC

View GitHub Profile
@TwistedAsylumMC
TwistedAsylumMC / wiki-mirror.yml
Created July 29, 2022 21:58
A github action to use a repository as a mirror of a wiki, allowing for quality control over community contributions.
name: Mirror to wiki
on: [push]
jobs:
mirror:
name: Mirror
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
@TwistedAsylumMC
TwistedAsylumMC / egg-portal.json
Created January 24, 2021 20:38
A Pterodactyl panel egg to automatically install the latest Portal version
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1",
"update_url": null
},
"exported_at": "2021-01-24T15:37:39-05:00",
"name": "Portal",
"author": "twistedasylummc@gmail.com",
"description": "Portal is a lightweight transfer proxy written in Go for Minecraft: Bedrock Edition that is developed and maintained by Paroxity.",
@TwistedAsylumMC
TwistedAsylumMC / egg_pocketmine-mp-4.0.json
Created August 27, 2020 00:12
An Egg to setup & install PocketMine-MP 4.0 on Pterodactyl Panel
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1"
},
"exported_at": "2020-08-26T20:11:31-04:00",
"name": "PocketMine-MP 4.0",
"author": "twistedasylummc@gmail.com",
"description": "An Egg to setup & install PocketMine-MP 4.0 on Pterodactyl Panel",
"image": "quay.io\/parkervcp\/pterodactyl-images:base_ubuntu",
@TwistedAsylumMC
TwistedAsylumMC / Example.php
Last active July 10, 2020 16:47
plugin.yml permissions generator for pocketmine 4
<?php
$generator = new \twisted\permissiongenerator\PermissionGenerator();
// From a directory and all sub directories
$permissions = $generator->fromDirectory("/path/to/directory");
// From a single directory
$permissions = $generator->fromDirectory("/path/to/directory", false);
@TwistedAsylumMC
TwistedAsylumMC / HotbarShortcuts.ahk
Created February 29, 2020 21:39
This script allows Windows 10 users to use the 1-9 keys in their inventories to act as shortcuts to easily move items in and out of their hotbar slots.
; Hotbar Shortcuts for Minecraft Bedrock Edition by TwistedAsylumMC
; This script allows Windows 10 users to use the 1-9 keys in their inventories
; to act as shortcuts to easily move items in and out of their hotbar slots.
; How to use this script:
; 1. Download AutoHotKey (If you haven't already) from https://www.autohotkey.com/download/
; 2. Save this file to your device and double click it to start the script
; 3. Load up your Minecraft client and go inside of a world
; 4. Inside your inventory, you can use the 1-9 keys to swap items around
@TwistedAsylumMC
TwistedAsylumMC / pixel-enlarger.php
Last active April 19, 2021 08:18
Increases the size of each pixel within an image
<?php
// Validate file input
$file = $argv[1] ?? "";
if($file === ""){
echo "Please provide an image" . PHP_EOL;
return;
}
if(substr($file, -4) !== ".png"){

Keybase proof

I hereby claim:

  • I am twistedasylummc on github.
  • I am twistedasylum (https://keybase.io/twistedasylum) on keybase.
  • I have a public key ASCtPdjgurigwBqq4cTUr-m0MgNgWPqSqyhYQazXl1cGkAo

To claim this, I am signing this object:

@TwistedAsylumMC
TwistedAsylumMC / borders.php
Created August 7, 2019 21:29
A php script which adds borders around text! (Made for educational purposes)
<?php
declare(strict_types=1);
if(isset($_POST["text"])){
$text = htmlspecialchars($_POST["text"], ENT_QUOTES, "UTF-8");
if($text === ""){
echo "You must enter some text<hr>";
}else{
$lines = preg_split('/\r\n|[\r\n]/', $text);