Skip to content

Instantly share code, notes, and snippets.

@kdmukai
kdmukai / README.md
Created September 3, 2023 13:24
Fix Realtek r8111 / r8169 NIC driver in Proxmox 8.x host

Overview

Have to install r8168 driver and remove r8169.

Update package sources:

/etc/apt/sources.list

deb http://ftp.us.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://ftp.us.debian.org/debian bookworm-updates main contrib
@hackermondev
hackermondev / writeup.md
Last active December 19, 2025 05:33
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)

@showa-yojyo
showa-yojyo / thebookofshaders1.md
Last active December 19, 2025 05:32
The Book of Shaders 学習ノート Pt. 1
title
The Book of Shaders 学習ノート

The Book of Shaders 学習ノート。 GLSL の、特に断片シェーダーのプログラミングに関する教科書として読む。

About this book

いろいろと書いてあるが、付録との絡みにしか興味がない。

@bem13
bem13 / danbooru_tag_count_scraper.py
Created February 9, 2024 13:15
Danbooru tag count scraper Python script
import requests
import csv
import time
# Base URL without the page parameter
base_url = 'https://danbooru.donmai.us/tags.json?limit=1000&search[hide_empty]=yes&search[is_deprecated]=no&search[order]=count'
# Specify the filename for the CSV
csv_filename = 'danbooru_tags_post_count.csv'
@whiskey76
whiskey76 / install.sh
Last active December 19, 2025 05:26
Bash script that installs a 12-player coop Insurgency: Sandstorm server
#!/usr/bin/env bash
###############################################
# Remember to forward 3 ports in your router. #
###############################################
menu() {
MAG="\e[35m"
GREEN="\e[32m"
YELLOW="\e[33m"
@rexim
rexim / dup.c
Last active December 19, 2025 05:24
Xor Party Tricks
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int xs[] = {7,62,2,46,73,43,26,82,5,95,57,56,44,21,40,79,13,6,9,8,72,59,65,81,60,78,13,85,87,58,48,25,32,47,67,4,31,19,33,1,92,14,53,89,84,54,29,10,17,3,77,70,45,97,34,23,86,55,15,64,68,83,76,41,18,39,94,22,74,11,69,49,12,35,20,90,100,98,36,63,91,38,66,93,50,96,61,71,75,37,52,88,30,28,99,27,42,51,80,24,16};
int main()
{
int x = 0;
for (int i = 1; i <= 100; ++i) {
@benelog
benelog / mysql-options.adoc
Last active December 19, 2025 05:21
MySQL JDBC Configuration for High-Performance Batch Jobs

MySQL JDBC Configuration for High-Performance Batch Jobs

Using Server-Side Prepared Statements

PreparedStatement helps optimize repeated query execution. Instead of declaring the entire SQL string such as SELECT * FROM CITY WHERE COUNTRY = 'KOREA' AND POPULATION > 10000, it separates the static SQL structure SELECT * FROM CITY WHERE COUNTRY = ? AND POPULATION > ? from the dynamic parameters.

@bferguson3
bferguson3 / Roguelike Half - Core Rules.md
Last active December 19, 2025 05:19
Roguelike Half - Core Rules (eng)

Roguelike Half

Core Rules (Compat. to +6 Level)

By: Sugimoto=Yohane
Editor: Shion Neko

1: To Start

@tophf
tophf / patch-chrome-mv2-2025-11-18.ps1
Last active December 19, 2025 05:18
Enables ManifestV2 for extensions in Chrome 140+
<# 1. To patch dll in a protected folder like "c:\program files" run this script as Administrator.
2. If your Windows isn't configured to run ps1 files, you can run it from command prompt like this:
powershell -ep bypass -noprofile "patch-chrome-mv2.ps1"
#>
param([string]$dll, [string]$dir = $pwd)
function doPatch([string]$path, [string]$pathLabel = '') {
$dll = $script:dll = if ($path.EndsWith('\')) { Join-Path $path chrome.dll } else { $path }
if (!(Test-Path -literal $dll)) { return }
$localAppData = [Environment]::GetFolderPath('LocalApplicationData')