Skip to content

Instantly share code, notes, and snippets.

@DhruvPasricha
DhruvPasricha / contest4.md
Created November 15, 2026 14:03
Winter Camp: Contest IV - Starter Code

A. Longest Streak

C++
#include <bits/stdc++.h>
using namespace std;

// ===================== Implement this =====================

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active November 16, 2026 05:43
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@dexhorthy
dexhorthy / the-no-ai-slop-manifesto.md
Last active November 16, 2026 06:15
The No AI Slop Manifesto

No AI Slop: A Manifesto

Written by the speakers and attendees of AIE Code Summit 2026

In 2001, 17 software engineers and leaders got together at a ski lodge in Snowbird, Utah to understand the biggest challenge of their time: heavyweight, documentation-driven software development processes.

Out of this we got the Agile Manifesto, four values and twelve principles that changed how most of the industry builds software.

Today we convene to build our own manifesto - the No AI Slop manifesto.

@maykinayki
maykinayki / ipip-tunnel.sh
Created October 30, 2022 14:15
Create IPIP (IP over IP) tunnel between two VM instance
TUNNEL_NAME=tun0
TUNNEL_SUBNET_CIDR=24
FIRST_INST_PUBLIC_IP=35.246.240.232 # Set public IP address of VM instance
FIRST_INST_PRIVATE_IP=10.156.0.8 # Set private IP address of VM instance
FIRST_INST_TUNNEL_IP=192.168.1.11
FIRST_INST_TUNNEL___SUBNET=192.168.1.0/${TUNNEL_SUBNET_CIDR}
SECOND_INST_PUBLIC_IP=34.65.55.169 # Set public IP address of VM instance
SECOND_INST_PRIVATE_IP=10.172.0.3 # Set private IP address of VM instance

TMux Cheat Sheet

Note: The default prefix key for all shortcuts is Ctrl + b.

Session Management

Command Action
tmux Start a new session
tmux new -s Start a new named session

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.