Skip to content

Instantly share code, notes, and snippets.

View mkpanq's full-sized avatar

Marek Pankowski mkpanq

View GitHub Profile
@mkpanq
mkpanq / generateTodos.js
Created August 14, 2025 14:11
Small JS script to scan the whole codebase for TODOs and save it to the separate TODO.md file - makes it easier for me to track all the todos, without any IDE plugins
const fs = require("fs");
const path = require("path");
const crypto = require("crypto");
const { execSync } = require("child_process");
const repoRoot = process.cwd();
const todoFilePath = path.join(repoRoot, "TODO.md");
const ignoredDirs = ["node_modules", ".git", "dist", "build", ".next", "out"];
const allowedExtensions = [".js", ".ts", ".tsx", ".jsx", ".mjs", ".cjs"];
@mkpanq
mkpanq / Dockerfile
Last active August 3, 2025 11:44
Dockerfile with the newest asdf installed, which takes .tool-version from the current folder, installs plugins, and all versions.
# syntax=docker/dockerfile:1
FROM ubuntu:latest
LABEL maintainer='Marek Pankowski <mkpanq.com>'
LABEL last-update='2025-08-03'
SHELL ["/bin/bash", "-l", "-c"]
# Be sure to install the proper version of asdf
# Available version type for each tag:
@mkpanq
mkpanq / README.md
Last active September 3, 2024 16:55
ZSH Function for asdf package manager to easy install and set specific package version locally

How to set it up in your shell

  • Open .zshrc
    nano ~/.zshrc
  • Paste function.sh at the end of file and save it
  • Reload shell configuration
    source ~/.zshrc

Example usage (for bun package)

asdf_latest_local bun

@mkpanq
mkpanq / zed_config
Last active May 28, 2024 16:43
Zed Configuration
{
"auto_update": true,
"theme": {
"mode": "system",
"dark": "Ayu Mirage",
"light": "Ayu Light"
},
"base_keymap": "JetBrains",
"buffer_font_family": "Fira Code",
"buffer_font_size": 15,