Skip to content

Instantly share code, notes, and snippets.

@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