Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 19, 2025 17:30
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@imrekoszo
imrekoszo / bash_strict_mode.md
Created December 19, 2025 17:30 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active December 19, 2025 17:30
set -e, -u, -o, -x pipefail explanation
@hackermondev
hackermondev / writeup.md
Last active December 19, 2025 17:28
How we pwned X (Twitter), Vercel, Cursor, Discord, and hundreds of companies through a supply-chain attack

hi, i'm daniel. i'm a 16-year-old high school senior. in my free time, i hack billion dollar companies and build cool stuff.

about a month ago, a couple of friends and I found serious critical vulnerabilities on Mintlify, an AI documentation platform used by some of the top companies in the world.

i found a critical cross-site scripting vulnerability that, if abused, would let an attacker to inject malicious scripts into the documentation of numerous companies and steal credentials from users with a single link open.

(go read my friends' writeups (after this one))
how to hack discord, vercel, and more with one easy trick (eva)
Redacted by Counsel: A supply chain postmortem (MDL)

@lestan
lestan / basic_autogen_agent_llm.py
Created March 13, 2024 03:19
AutoGen AI Agents with Local LLM served via Ollama
"""Author: https://github.com/lestan"""
"""Tested on AutoGen version 0.2.19"""
"""This is a basic working version of AutoGen that uses a local LLM served by Ollama"""
from autogen import AssistantAgent, UserProxyAgent, ConversableAgent
from autogen.coding import LocalCommandLineCodeExecutor, DockerCommandLineCodeExecutor
import os
from pathlib import Path
import pprint
#model = "mixtral:latest"
@rannn505
rannn505 / common.itermkeymap
Created January 26, 2022 23:34
Common keyboard shortcuts for iTerm2
{
"Key Mappings": {
"0xf702-0x300000-0x7b": {
"Label": "Cursor Start ⌘←",
"Action": 11,
"Text": "0x01"
},
"0xf703-0x300000-0x7c": {
"Label": "Cursor End ⌘→",
"Action": 11,
@AalbatrossGuy
AalbatrossGuy / extract_sig.md
Last active December 19, 2025 00:05
Extracting Signatures from PDFs

Signature Extraction From PDFs

The core principle behind extracting a signature from a PDF involves identifying and isolating the signature's visual representation, whether it's a digitally embedded signature or a scanned image of a handwritten signature.

Digital signatures

They are embedded within the PDF structure as data objects, often associated with a signature handler that uses Public/Private Key cryptography. These data objects include information about what parts of the document were signed, the signer’s identity, and a cryptographic hash. The extraction involves locating these fields, reading their content, and interpreting the digital certificate and signature metadata. Digital signatures are generally interactive with form field of type /Sig th

@d7samurai
d7samurai / .readme.md
Last active December 19, 2025 17:15
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube

hollowcube

Other gists in this series:

@macfergusson
macfergusson / SQL_Resources.md
Last active December 19, 2025 17:14
SQL Community Discord Resources