Skip to content

Instantly share code, notes, and snippets.

View DaisukeDaisuke's full-sized avatar
overwork

DaisukeDaisuke

overwork
View GitHub Profile
@intsuc
intsuc / example.mcfunction
Last active July 13, 2024 12:52
Get the high 32 bits of a LongTag
function high32:init
data modify storage _ a set value -1145395493543608220L
# (0xf01abcde00000064)
function high32:get {source: "storage _ a"}
# Function high32:get returned -266683170
# (0xf01abcde)
@Yuki2718
Yuki2718 / gist:6d9fea46e153e98e89aaca4c867245af
Last active October 28, 2024 04:02
hide see-results-closer-to-you
www.google.com###before-appbar + #lb[style="visibility: visible;"]:has([role="dialog"] update-location)
www.google.com##html.TaoyYc:style(overflow: auto !important; position: static !important;)
@HerringtonDarkholme
HerringtonDarkholme / nihongo.cpp
Last active July 23, 2024 06:25
g++ nihongo.cpp
#define エスティーディー std
#define アイオーストリーム <iostream>
#define ユージング using
#define イフ if
#define インクルード #include
#define イント int
#define シーアウト cout
#define シーイン cin
#define ネームスペース namespace
#define ブール bool
@JustTalDevelops
JustTalDevelops / client_blob_cache_exploit.md
Last active August 27, 2025 19:32
Exploiting the Blob Cache in Bedrock Edition

Exploiting the Blob Cache in Minecraft: Bedrock Edition

...and why it matters.

Preface

You might have seen my HiveCorruptor plugin on Poggit. To be clear, I don't have a vendetta against The Hive or anything like that, the plugin was more so a comedic demonstration of how the blob cache can be exploited to crash clients. The next thing you're probably thinking is "how the hell does this work?" - and this is what this article will go over.

Introduction

#!/bin/bash
# Change the date under CUTOFF_DATE to change how far back you want to delete
# Install the GitHub CLI tool by following the instructions in the official documentation: https://cli.github.com/manual/installation
# Make sure you auth first to github with 'gh auth login'
REPO_OWNER="OWNER"
REPO_NAME="REPO_NAME"
CUTOFF_DATE=$(date --date='30 days ago' +'%Y-%m-%dT%H:%M:%SZ')
PAGE=1
@Azvyl
Azvyl / UninitializedSyncedPropertiesFix.php
Last active November 12, 2022 21:13
A plugin that helps you to fix "Typed property (packet)::$syncedProperties must not be accessed before initialization" error which actually occurs because one of your plugins is outdated, but the plugin is not detected in the crashdump. This plugin will tell you which plugins you should update
<?php
namespace DavyCraft648\UninitializedSyncedPropertiesFix;
use pocketmine\event\EventPriority;
use pocketmine\event\server\DataPacketSendEvent;
use pocketmine\network\mcpe\protocol\AddActorPacket;
use pocketmine\network\mcpe\protocol\AddPlayerPacket;
use pocketmine\network\mcpe\protocol\SetActorDataPacket;
use pocketmine\network\mcpe\protocol\types\entity\PropertySyncData;
@sevenc-nanashi
sevenc-nanashi / ansi-colors-discord-ja.md
Last active October 15, 2025 10:04 — forked from kkrypt0nn/ansi-colors-discord.md
ANSIコードをDiscordで

色つきのメッセージ:

Discordは現在自由に色がつけられるコードブロックをロールアルトしています。ANSIカラーコードを使っているため、ターミナルに色つき文字を出力しようとしたことがある人は簡単にできるでしょう。

色つきのメッセージを送るには、コードブロックの言語をansiにしてこのようなプレフィックスを前につける必要があります:

\u001b[{設定}m

{設定}には変更する{スタイル}{文字色}{背景色};区切りで指定できます。 例:

@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active March 11, 2026 01:05
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active March 8, 2026 16:14
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01