Skip to content

Instantly share code, notes, and snippets.

View Omikrone's full-sized avatar

Roman Omikrone

  • Strasbourg, France
View GitHub Profile
@lykn
lykn / selects_or_dropdowns.md
Last active July 5, 2024 18:39
A gist explaining the right way to make drop down menus/select menus/selects in discord.py v2(version 2.0.0a)

Note: Before we go any further. Let me make this real clear that the following gist uses the OFFICIAL discord.py library and not forks like discord_components, nextcord, etc... So when your using this code but a different library and fuck up don't comment something mean or go to a help channel in the server and say "this gist is misleading" or "bad gist who wrote this" when your at fault, trust me I'm going to fuck you up😅

Just a reminder^^

Related Links:

DPY's Docs

Discord's Docs

@zrsmithson
zrsmithson / mngw-w64_boost.MD
Last active April 23, 2024 04:55
Installing boost on Windows using MinGW-w64 (gcc 64-bit)

Installing boost on Windows using MinGW-w64 (gcc 64-bit)

Introduction

Boost is easy when you are using headers or pre-compiled binaries for visual studio, but it can be a pain to compile from source on windows, especially when you want the 64-bit version of MinGW to use gcc/g++. This installation process should be thorough enough to simply copy and paste commands, but robust enough to install everything you need.

Note: if you need to install any of the libraries that need dependencies, see this great answer from stack overflow

Get files needed for install

Get the MinGW installer mingw-w64-install.exe from Sourceforge
Get the boost_1_68_0.zip source from Sourceforge
__Note: This should work perfectly w

@Tony3-sec
Tony3-sec / Manually insert RIGHT-TO-LEFT OVERRIDE character into the filename
Last active July 10, 2021 09:42
Manually insert RIGHT-TO-LEFT OVERRIDE character into the filename
http://www.charbase.com/202e-unicode-right-to-left-override
When a RIGHT-TO-LEFT OVERRIDE character is inserted into the filename, the characters that follow are displayed in reverse order.
When named properly, an .exe file can appear to be a .pdf file (e.g. evil[RTL Unicode]fdp.exe will appear as evilexe.pdf).
This does not affect the file's execution.
## By Python
>>> f = open('evil\xE2\x80\xAEfdp.exe', 'w')
>>> f.close()