Skip to content

Instantly share code, notes, and snippets.

View the-vampiire's full-sized avatar
💭
ive lost a shade of color in my life. rest in peace.

the-vampiire

💭
ive lost a shade of color in my life. rest in peace.
View GitHub Profile
@the-vampiire
the-vampiire / creative-breakdown.md
Created September 26, 2026 05:38 — forked from Heyvhuang/creative-breakdown.md
creative-breakdown: turn any reference into a JSON prompt with Ling-3.0-flash-VL

creative-breakdown: turn any reference into a JSON prompt with Ling-3.0-flash-VL

Give it a photo, a website screenshot, an ad, or a video. It picks the matching prompt, sends the file to Ling-3.0-flash-VL on OpenRouter, and saves the JSON it gets back.

Codex or Claude Code builds and runs the Skill. Ling-3.0-flash-VL does all the visual analysis.

Setup

  1. Set your OpenRouter API key as the OPENROUTER_API_KEY environment variable.
  2. Open Codex or Claude Code in your project and send it the whole setup prompt below. The copy button at the top right of the block copies all of it.
@the-vampiire
the-vampiire / CLAUDE.md
Created September 21, 2026 05:42 — forked from defuse/CLAUDE.md
CLAUDE.md -- no silent failures, testing, anti-entropy, etc.

Claude Code Instructions

Working Style

  • Push back on genuinely bad ideas, with reasoning. Point out bugs, misleading names, and better approaches when you see them. Direct but collaborative.
  • If requirements are ambiguous or a design decision could reasonably go multiple ways, ask rather than guess. A quick question is cheaper than reworking a wrong assumption.
  • If a prompt looks damaged or wrong, STOP and say so — truncated mid-sentence, duplicated blocks, garbled copy/paste, references to context that doesn't exist, or
@the-vampiire
the-vampiire / gist:a3621c22de5daf2e804fa3942d37de97
Created October 11, 2019 15:07 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes:

@the-vampiire
the-vampiire / spectre.c
Created January 9, 2018 06:42 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif

Ok, so, you might know about JavaScript regular expressions. Well, here is a tutorial about them, but written by a 13 year old, so it isn't actually any good!

Regular expressions go between / characters. Here is an exampe, /hi/.

Ok, now then. Let's learn how to match the string abc. Well, that's quite simple.

/abc/. Yey! So putting letters next to each other makes them match one after the other.

Ok, now, after the second / we can put a g to make it match globally, that is, we can extract abc from xyzabcghi.