Skip to content

Instantly share code, notes, and snippets.

View VladSez's full-sized avatar
🍳

Vlad Sazonau VladSez

🍳
View GitHub Profile
@jh3y
jh3y / fluid-type.css
Created May 14, 2026 22:16
fluid typography scales with css pow()
/*
* Fluid Modular Type Scale
*
* A pure-CSS fluid typography system that smoothly scales font sizes
* between a minimum and maximum viewport width using a modular scale.
*
* Based on the great work of those at Clearleft, modified for modern css (pow())
* (https://utopia.fyi/blog/css-modular-scales/)
*
* Required custom properties (set on a parent or :root):
@mcollina
mcollina / guide.md
Created April 30, 2026 09:41
Configuring minimum release age across npm, pnpm, and yarn

Configuring minimum release age across npm, pnpm, and yarn

Setting a minimum release age (a "cooldown") on dependencies is a cheap, high-leverage defense against supply-chain attacks. Most malicious package versions are detected and yanked within hours, so a 24-hour delay filters out the smash-and-grab incidents (axios 1.14.1, ua-parser-js, Solana web3.js, etc.).

All three major Node.js package managers now support this, but each one used a different name and a different unit. Here is what you need.

Minimum versions

Tool Setting Unit Introduced in
@greenstevester
greenstevester / how-to-setup-ollama-on-a-macmini.md
Last active June 1, 2026 14:17
April 2026 TLDR setup for Ollama + Gemma 4 12B on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR Setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon)

Prerequisites

  • Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
  • At least 16GB unified memory for Gemma 4 (default 8B)
  • macOS with Homebrew installed
@JonnyBurger
JonnyBurger / conversation.txt
Created March 19, 2026 14:40
What's new in Remotion - Editing with Claude Code
╭─── Claude Code v2.1.79 ──────────────────────────────────────────────────────╮
│ │ Tips for getting │
│ Welcome back Jonny! │ started │
│ │ Run /init to create a … │
│ ▐▛███▜▌ │ ─────────────────────── │
│ ▝▜█████▛▘ │ Recent activity │
│ ▘▘ ▝▝ │ No recent activity │
│ Opus 4.6 (1M context) · Claude Max · │ │
│ jonny@remotion.dev's Organization │ │
│ ~/whats-new │ │
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
"workbench.editor.customLabels.enabled": true,
"workbench.editor.customLabels.patterns": {
"**/page.*": "${dirname}.${extname}",
"**/layout.*": "${dirname}/layout.${extname}",
"**/default.*": "${dirname}/default.${extname}",
"**/error.*": "${dirname}/error.${extname}",
"**/forbidden.*": "${dirname}/forbidden.${extname}",
"**/instrumentation.*": "${dirname}/instrumentation.${extname}",
"**/instrumentation-client.*": "${dirname}/instrumentation-client.${extname}",
"**/loading.*": "${dirname}/loading.${extname}",
@jediahkatz
jediahkatz / SKILL.md
Created January 23, 2026 20:25
Cursor skill for capturing learnings from conversations into reusable skills
name capture-skill
description Capture learnings, patterns, or workflows from the current conversation into a new or existing skill. Use when the user wants to save what was learned, discovered, or built during a conversation as a reusable skill for future sessions.

Capture Skill from Conversation

This skill helps you extract knowledge, patterns, and workflows from the current conversation and persist them as a reusable skill.

When to Use

@hackermondev
hackermondev / writeup.md
Last active May 8, 2026 15:19
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)

Bank‑Based Anonymous Age Verification (BAV)

A zero‑storage, privacy‑preserving age check that leverages banks’ existing KYC — with the user as the transport layer.


TL;DR

  • Banks sign an age claim, not an identity. They never learn which site you’re visiting.
  • Merchants verify a short‑lived token against their own nonce and a one‑time WebAuthn key. No database required.
@leerob
leerob / agent.py
Created July 30, 2025 23:14
agent.py
import os
import json
import subprocess
from anthropic import Anthropic
# Tool definitions
TOOLS = [
{
"name": "list_files",
"description": "List files and directories at a given path",