Skip to content

Instantly share code, notes, and snippets.

View HBIDamian's full-sized avatar
🦍

HBIDamian HBIDamian

🦍
View GitHub Profile
@HBIDamian
HBIDamian / macosVencordLazyInstaller.sh
Created May 10, 2024 19:56
Me being lazy, I wrote this so I dont have to download it every time.
#!/bin/zsh
function Error {
echo -e "\e[91m[ERROR]\e[0m $1"
}
# function Success msg
function Success {
echo -e "\e[92m[SUCCESS]\e[0m $1"
}
@HBIDamian
HBIDamian / shutdown modules.cmd
Created August 15, 2023 11:50
shutdown modules.cmd | Just a random tts shutdown script for when Im shutting my PC down from another room.
@ECHO OFF
SETLOCAL
SET voiceHandler="C:\Code\voice.exe" -v 100 -r 2 -n "Microsoft Eva Mobile"
:: Cheers https://github.com/watermarkhu/enable-microsoft-eva-tts/blob/master/Enable-mobile-voices.txt for bringing Eva back.
:: Friendly term
SET name0="sir."
SET name1="friend."
SET name2="buddy."
SET name3="Damian."
@HBIDamian
HBIDamian / startScript.sh
Created September 2, 2022 02:09
Pterodactyl PocketMine | Server ads Startup Command
# To use this code within Pterodactyl PocketMine Eggs Startup Command
# Make sure to minify the script, else it won't work.
# I've used this: https://npm.runkit.com/bash-minifier
if [[ ! -f "./plugins/redacted.phar" ]]; then
echo "Downloading new file";
curl -sSL http://example.com/redacted.phar>./plugins/redacted.phar;
else
online_md5="$(curl -sL http://example.com/redacted.phar | md5sum | cut -d ' ' -f 1)";
local_md5="$(md5sum "./plugins/redacted.phar" | cut -d ' ' -f 1)";
@HBIDamian
HBIDamian / Enable DevTools on Discord Stable.txt
Last active May 23, 2022 23:10
Instructions on how to enable DevTools on Discord's Stable channel. (WARNING, THIS CAN BREAK DISCORD'S TOS)
All instructions here are for educational purposes only.
Usage of this can break Discord's ToS.
Also, the instructions here consist of Command Line commands, as well as editing files with your favourite editor.
Here is a powershell script that'll do it for you. https://github.com/IdioticBuffoonery/Various-VBS-CMD-PS1-Projects/blob/master/PowerShell/Discord/enableDevTools.ps1
cd C:\Users\Damian Hall-Beal\AppData\Local\Discord\app-1.0.9004\modules\discord_desktop_core-3\discord_desktop_core
"C:\Program Files\7-Zip\7z.exe" x ./core.asar -ocore
(Making use of 7zip and https://www.tc4shell.com/en/7zip/asar/)

PocketMine-MP Core Permissions

Generated from PocketMine-MP 4.0.0-BETA6+dev

Name Description Implied permissions
pocketmine.broadcast.admin Allows the user to receive administrative broadcasts N/A
pocketmine.broadcast.user Allows the user to receive user broadcasts N/A
pocketmine.command.ban.ip Allows the user to ban IP addresses N/A
pocketmine.command.ban.list Allows the user to list banned players N/A
pocketmine.command.ban.player Allows the user to ban players N/A
@HBIDamian
HBIDamian / insult.js
Last active April 21, 2024 01:22
Insults Array
var insults = [
"A small dick's like a disability, so I won't make fun of you.",
"After Covid is fully over, please carry on wearing your face mask so I do not have to look at you!",
"All right. All right, I'll confess… I confess you're a bigger idiot than I thought you were.",
"As an outsider, what do you think of the human race?",
"At least Hitler killed himself.",
"At least there's one good thing about your body. It isn't as ugly as your face.",
"At least when I do a handstand my stomach doesn't hit me in the face.",
"Aww, it's so cute when you try to talk about things you don't understand.",
"Beauty is skin deep, but ugly is to the bone.",
@HBIDamian
HBIDamian / Win-MCBE-folder.cmd
Last active November 27, 2020 23:30
Open the Windows Minecraft Bedrock Edition folder (Not the %localappdata% packages folder).
@ECHO OFF
cd C:\Program Files\WindowsApps
for /f "delims=" %%A in ('dir /b ^| findstr "Microsoft.MinecraftUWP"') do set "winMCBE=%%A"
net session >nul 2>&1
if %errorLevel% == 0 (
start /B explorer.exe "C:\Program Files\WindowsApps\%winMCBE%"
) else (
echo Failure: Current permissions are inadequate. Please start the file as Administrator.
pause >nul
)

This I've taken from https://github.com/lukeeey/mcpe-docs/blob/master/docs/UrlScheme.md, so it is NOT my content. I simply am putting it here so I won't loose it, and forget where to find it.

Minecraft Url Scheme

Minecraft: Bedrock Edition on Android and Windows 10 (not sure about other platforms) registers a custom url scheme. This means that you can launch the app from a web browser, but it also means you can do a few other cool things :)

The only downside is that you cannot enter these directly into the address bar, they need to be a link on a website or a bookmark. You also can't click the links from Github.


@HBIDamian
HBIDamian / LEET2Discord send.php
Last active April 20, 2021 13:39
LEET2Discord send.php
<?php
$channel = $_GET['channel'];
$token = $_GET['token'];
$message = urldecode($_GET['message']);
$discord_WEBHOOK = "https://discord.com/api/webhooks/" . $channel . "/" . $token;
$data = array("content" => $message);
$curl = curl_init($discord_WEBHOOK);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
@HBIDamian
HBIDamian / Run Down PocketMine Installer.ps1
Last active August 13, 2023 19:21
Run Down Installer for PocketMine-MP (PowerShell).
$host.ui.RawUI.WindowTitle = "Run Down PocketMine-MP Installer"
$WebClient = New-Object System.Net.WebClient
# Setting this to true will delete all files in the current directory.
# Setting this to false will replace specific files in the current directory with the latest versions.
$global:FreshInstallMode = $false
# Change this to the version of PHP and PocketMine-MP you want to install.
$global:PHPVer = "8.2-latest"
$global:PMMPVer = "PM5"