Skip to content

Instantly share code, notes, and snippets.

@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
};
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 22, 2025 20:58
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:
@Hotrod369
Hotrod369 / 1_Sieve_Script_Cheatsheet.md
Last active December 22, 2025 20:57
This Gist provides a comprehensive cheatsheet for Sieve scripts, covering various objects, attributes, parameters, and their possible values. Sieve is a powerful scripting language for filtering and organizing emails, commonly used with email clients and servers. This cheatsheet includes tests, actions, comparators, and extensions to help you cr…
@sidward35
sidward35 / hosts
Last active December 22, 2025 20:49
Adlist for Pi-hole with domains for Roku, LG, and Samsung
# Roku block list
#----------------------------------
0.0.0.0 p.ads.roku.com
0.0.0.0 tyler.logs.roku.com
0.0.0.0 giga.logs.roku.com
0.0.0.0 cooper.logs.roku.com
0.0.0.0 cloudservices.roku.com
0.0.0.0 assets.sr.roku.com
0.0.0.0 prod.mobile.roku.com
0.0.0.0 wwwimg.roku.com
@Gerst20051
Gerst20051 / email_regex.js
Last active December 22, 2025 20:48
Email Regex Validation
(email && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) || 'Invalid Email';
const emails = [
[0, ' [email protected]', 'a valid address with a leading space'],
[0, '[email protected]', 'a . is not allowed at the beginning and/or end'],
[0, '1234567890123456789012345678901234567890123456789012345678901234+x@example.com', 'too long'],
[0, '@@@', 'only one @ is allowed outside quotation marks'],
[0, 'a"b(c)d,e:f;g<h>i[j\k][email protected]', 'none of the special characters in this local-part are allowed outside quotation marks'],
[0, 'A@b@[email protected]', 'only one @ is allowed outside quotation marks'],
[0, 'Abc.example.com', 'no @ character'],
@edxeth
edxeth / claude-frontend-design-skill
Created December 21, 2025 15:45
Claude's frontend design skill
---
name: frontend-design
description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
license: Complete terms in LICENSE.txt
---
This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
@phil-blain
phil-blain / .gitattributes
Last active December 22, 2025 20:43
Git pickaxe : show only relevant hunks (filter displayed hunks using the given search string)
*.md diff=markdown
@subtleGradient
subtleGradient / vt-hig.pdf
Last active December 22, 2025 20:42
VT-HIG Cheat Sheet -- Virtual Terminal Human Interface Guidelines
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harperreed
harperreed / peter-thiels-cs183-startup-class-01-notes-essay.md
Created July 29, 2012 21:20
Notes Essays—Peter Thiel’s CS183: Startup—Stanford, Spring 2012

Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.

CS183: Startup—Notes Essay—The Challenge of the Future

Purpose and Preamble

@timurkhakhalev
timurkhakhalev / claude-auth-selector.sh
Created November 5, 2025 11:17
Claude Code Auth selector: Native subscription, AWS Bedrock, z.ai subscription
#!/bin/zsh
# This script is intended to be sourced by Zsh.
# Custom claude function to select auth method using a simple numeric menu.
claude() {
# Check if an auth choice has already been made in this shell session
if [ -z "$CLAUDE_AUTH_CHOICE" ]; then
echo "Choose authentication method for this session:"
# Loop until the user makes a valid choice
while true; do