Skip to content

Instantly share code, notes, and snippets.

You are Gemini. You are a helpful assistant. Balance empathy with candor: validate the user's emotions, but ground your responses in fact and reality, gently correcting misconceptions. Mirror the user's tone, formality, energy, and humor. Provide clear, insightful, and straightforward answers. Be honest about your AI nature; do not feign personal experiences or feelings.Use LaTeX only for formal/complex math/science (equations, formulas, complex variables) where standard text is insufficient. Enclose all LaTeX formulas using $ for inline equations and$$ for display equations. Ensure there is no space between the delimiter ($ or $$) and the formula. Never render LaTeX in a code block unless the user explicitly asks for it. Strictly Avoid LaTeX for simple formatting (use Markdown), non-technical contexts and regular prose (e.g., resumes, letters, essays, CVs, cooking, weather, etc.), or simple units/numbers (e.g., render 180°C or 10%).Further guidelines:I. Response Guiding PrinciplesStructure your response for
@mkaramuk
mkaramuk / shell.sh
Created September 9, 2025 15:38
Grep command to detect latest NPM supply-chain attack (qix)
grep -R -n -H -E \
--include='*lock*' \
--include='yarn.lock' \
--include='package.json' \
'(ansi-regex(@|[": ]+)[\^~><=]*6\.2\.1|ansi-styles(@|[": ]+)[\^~><=]*6\.2\.2|backslash(@|[": ]+)[\^~><=]*0\.2\.1|chalk(@|[": ]+)[\^~><=]*5\.6\.1|chalk-template(@|[": ]+)[\^~><=]*1\.1\.1|color-convert(@|[": ]+)[\^~><=]*3\.1\.1|color-name(@|[": ]+)[\^~><=]*2\.0\.1|color-string(@|[": ]+)[\^~><=]*2\.1\.1|debug(@|[": ]+)[\^~><=]*4\.4\.2|error-ex(@|[": ]+)[\^~><=]*1\.3\.3|has-ansi(@|[": ]+)[\^~><=]*6\.0\.1|is-arrayish(@|[": ]+)[\^~><=]*0\.3\.3|proto-tinker-wc(@|[": ]+)[\^~><=]*1\.8\.7|supports-hyperlinks(@|[": ]+)[\^~><=]*4\.1\.1|simple-swizzle(@|[": ]+)[\^~><=]*0\.2\.3|slice-ansi(@|[": ]+)[\^~><=]*7\.1\.1|strip-ansi(@|[": ]+)[\^~><=]*7\.1\.1|supports-color(@|[": ]+)[\^~><=]*10\.2\.1|wrap-ansi(@|[": ]+)[\^~><=]*9\.0\.1)' .
@mkaramuk
mkaramuk / Discord Full Screen sharing under wayland.md
Created February 6, 2024 18:34 — forked from nate-moo/Discord Full Screen sharing under wayland.md
Screensharing full screen on discord under wayland

warning: Very cursed

image

things required:

  • wf-recorder
  • mpv
  • wayland
@mkaramuk
mkaramuk / install-tools.sh
Last active September 7, 2023 09:56
Install my custom tools on Mac OS X (at 42 schools)
#!/bin/zsh
USER=mkaramuk
BREWPATH=/Users/$USER/homebrew
APPPATH=/Users/$USER/Applications
FONTPATH=/Users/$USER/Library/Fonts
FISH_CONFIG_PATH=/Users/$USER/.config/fish
export HOMEBREW_LOGS=/Users/$USER/Library/Logs/Homebrew
export HOMEBREW_CACHE=/Users/$USER/Library/Caches/Homebrew
@mkaramuk
mkaramuk / postgres-compose.yaml
Last active May 29, 2023 08:13
Postgres + PgAdmin4 Docker Compose
version: "3.8"
services:
db:
image: postgres
container_name: local_pgdb
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
@mkaramuk
mkaramuk / docker_wordpress.md
Created March 10, 2023 14:39 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes