Skip to content

Instantly share code, notes, and snippets.

View oq-x's full-sized avatar

oq oq-x

  • Israel
  • 22:09 (UTC +03:00)
View GitHub Profile
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active May 5, 2026 19:31
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
@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active May 9, 2026 15:37
An unofficial list of discord app protocol routes

Discord app protocol routes

I know these links work on Windows, have not tested this on any other operating systems.

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
@trenutoo
trenutoo / migrate-pterodactyl.md
Last active April 3, 2026 04:30
Pterodactyl panel and wings migration

Pterodactyl Migration

Migrating panel

  1. Backup your hidden .env file containing the decryption APP_KEY from /var/www/pterodactyl

  1. Export the database, in this case ours is named panel
@fnky
fnky / ANSI.md
Last active May 9, 2026 14:58
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@ageis
ageis / systemd_service_hardening.md
Last active April 29, 2026 14:26
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict