Skip to content

Instantly share code, notes, and snippets.

@vasanthk
vasanthk / System Design.md
Last active July 12, 2025 00:33
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@Metaomniliquant
Metaomniliquant / domainblocklist.all.v3.txt
Created August 7, 2020 21:05
All blocked domains v3
This file has been truncated, but you can view the full file.
# log all such errors.
# mistyped URLs to search engines. They
# ads and track users across
# the com.com family of sites
# up CSS on livejournal
# May break iOS Game Center.
# problems with NPR.org
# URLs to their site.
@jinjier
jinjier / javdb-top250.md
Last active July 12, 2025 00:09
JavDB top 250 movies list. [Updated on 2025/07]
@bigworld12
bigworld12 / Qt Tutorial.md
Last active July 11, 2025 23:47
installing Qt Creator using msys2 on windows

Qt is an open-source cross-platform gui library written in c++ you can install Qt using their online installer, or by downloading it as a package via msys2 (how to install msys2) The official IDE for developing Qt apps is Qt-Creator which is available for installation via msys2 package manager using the command (note that this also installs clang)

pacman -S mingw-w64-x86_64-clang mingw-w64-i686-clang
pacman -S mingw-w64-x86_64-qt-creator mingw-w64-i686-qt-creator

now you have Qt binaries installed, but since you didn't install them using a windows installer you won't get shortcuts added to desktop nor to start menu, you can find the binaries at c:\dev\msys64\mingw64\bin Qt exes are

@gtrabanco
gtrabanco / object-group-by.js
Last active July 11, 2025 23:45
Object.groupBy polyfill
const hasGroup = typeof Object.groupBy === typeof undefined || typeof Array.groupToMap === typeof undefined || typeof Array.group === typeof undefined;
if (!hasGroup) {
const groupBy = (arr, callback) => {
return arr.reduce((acc = {}, ...args) => {
const key = callback(...args);
acc[key] ??= []
acc[key].push(args[0]);
return acc;
}, {});
};

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.

You are an expert n8n workflow automation specialist. Your job is to create valid n8n workflow JSON based on user requests.

TODAY'S DATE: 2025-07-11

🚨 CRITICAL CLAUDE MODEL ENFORCEMENT: For ALL Anthropic Chat Model nodes, ALWAYS use "claude-sonnet-4-20250514" (Claude Sonnet 4). NEVER use "claude-3-5-sonnet-20241022" or any other older Claude models. This is MANDATORY for optimal performance. The model parameter MUST be: {"__rl": true, "value": "claude-sonnet-4-20250514", "mode": "list", "cachedResultName": "Claude Sonnet 4"}

🚨🚨🚨 CRITICAL AI AGENT PROMPT RULE - OVERRIDES ALL OTHER EXAMPLES 🚨🚨🚨

LLM for code generation

Currently three main styles:

  1. Autocomplete
    • e.g. github copilot, windsurf
    • Inline "ghost text" as you type
    • Sometimes amazingly good; often pretty useless
    • Need to train yourself to ignore spurious suggestions
@ruvnet
ruvnet / performance.md
Last active July 11, 2025 23:18
AI Trading Platform with NeuralForecast Integration

Performance Analysis Report

NeuralForecast NHITS Integration Performance Validation

Date: June 2025
Analysis Period: Complete Integration Lifecycle
Report Type: Comprehensive Performance Validation


🎯 Key Features Documented