Skip to content

Instantly share code, notes, and snippets.

@SametHope
SametHope / Get-FilesByBlameAge.ps1
Last active December 23, 2025 12:11
Powershell script/function to list files by the age of their oldest or newest surviving line of code using git blame
<#
.SYNOPSIS
Lists files under a given path and orders them by the age of their
oldest or newest surviving line of code, based on git blame.
.DESCRIPTION
For each file matching the specified extension(s) under the given path,
this function runs `git blame -w --line-porcelain` and extracts all
author timestamps.
@phith0n
phith0n / fpm.py
Last active December 23, 2025 12:04
Fastcgi PHP-FPM Client && Code Execution
import socket
import random
import argparse
import sys
from io import BytesIO
# Referrer: https://github.com/wuyunfeng/Python-FastCGI-Client
PY2 = True if sys.version_info.major == 2 else False
@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
}