Activity for stephansama.info
Loading activity...
Stop Building Inside Containers in CI | stephansama blog
Swapping Dagger for mise on GitHub Actions cut my uncached CI builds from 17–27 min to 6–16. Why containers are the wrong fix for toolchain pinning.
How to Install Neovim on Windows | stephansama blog
Two ways to install Neovim on Windows: natively with Chocolatey, Git Bash and mise, or the easier WSL route. Includes WezTerm setup and clipboard fixes.
Mastering CSS Counters: A Guide to Dynamic Web Numbering
Learn how CSS counters work: counter-reset, counter-increment, counter() vs counters(), nested numbering, formatting and counter-set, with examples.
Maintaining Package Versions with pnpm and YAML Anchors
Use YAML anchors with pnpm catalogs to define each dependency version once in pnpm-workspace.yaml and keep every package in your monorepo in sync.
Using is operator in typescript for type narrowing
Learn how to use the TypeScript `is` operator to create custom type guards, narrow union types, and improve type safety with practical examples.
Determining the Age of a Git Repository | stephansama blog
Find when a Git repository was created by locating its root commit with git rev-list and git log, then calculate its age in days from the terminal.
How Cloudflare Rebuilt Next.js with Vite Using AI Vibe Coding | stephansama blog
Vinext, built by Cloudflare on Vite, reimplements Next.js with AI-powered “vibe coding,” enabling faster builds, smaller client bundles, and effortless deployment to Cloudflare Workers.
How to pipe data into a node script | stephansama blog
Learn how to use process.stdin to pipe data from terminal commands into Node.js. A step-by-step guide on stream handling, data events, and best practices.
How to Connect Cloudflare Tunnel to Synology NAS | stephansama blog
Securely access your Synology NAS without port forwarding. Learn how to install and configure Cloudflare Tunnel using Container Manager for encrypted remote access.
Adding TypeScript to My Neovim Configuration | stephansama blog
Learn how I added TypeScript to my Neovim config using language packs, schema-driven keymaps, and modern completion tools.
How to automatically load node version based on nvmrc file | stephansama blog
Learn how to automatically switch Node.js versions in your terminal based on a local .nvmrc file using nvm and a simple Zsh script. Save time and avoid version conflicts by setting up automatic Node version management in your development workflow.
My Neovim Config | stephansama blog
A tour of my modular Neovim config: plugin management, keybindings, per-language setups, automated language servers and the utility scripts I rely on.
Integrating fzf into tmux for Efficient Navigation | stephansama blog
Learn how to integrate the powerful fuzzy finder fzf into your tmux workflow for faster and more efficient navigation. This guide covers installation, configuration, and customization of fzf with tmux, along with plugins like tmux-fpp and tmux-open for enhanced file and URL management. Streamline your workflow by replacing default tmux keybindings and improving session, window, and pane switching with fuzzy search. Perfect for developers looking to boost productivity in the terminal.
Creating a Tmux Keybinding for Pop-up Sessions | stephansama blog
Learn how to enhance your tmux workflow by creating keybindings for popup windows. This guide covers setting up a custom script, binding keys in tmux, and optimizing popup sessions to streamline your terminal management.
Combining clsx and tailwind-merge for dynamic class lists in web applications
Combine clsx and tailwind-merge to build conditional Tailwind class lists without conflicting utilities. Covers installation, usage and practical examples.
Restoring TMUX sessions after a system reboot | stephansama blog
Learn how to easily restore your tmux sessions after a system reboot with the tmux-resurrect plugin. This guide walks you through the installation, configuration, and usage of tmux-resurrect, including saving and restoring your sessions automatically. Whether you're looking to save your tmux sessions on exit or load the last session on startup, this plugin streamlines your workflow and ensures you never lose your progress.
Viewing GitHub Repositories in Visual Studio Code: A Quick Guide
Open any GitHub repository in VS Code in your browser by changing github.com to github.dev, then navigate, edit and use source control without cloning.
Troubleshooting ::after and ::before Pseudo Elements: A Guide to Common Issues | stephansama blog
Discover common issues with CSS ::after and ::before pseudo-elements and learn how to troubleshoot them. This guide explains key problems like missing content properties, using pseudo-elements on replaced elements, and conflicts with parent or conflicting styles. With practical solutions and examples, you’ll understand how to ensure your ::after and ::before pseudo-elements behave as expected, helping you streamline your development process and enhance your CSS styling skills.
Using React Hook Form with Material UI | stephansama blog
Learn how to integrate React Hook Form with Material UI for efficient form handling in React. This guide covers how to use the Controller component to wrap MUI input fields, ensuring proper value tracking and error display. Get step-by-step instructions on using validation rules and displaying error messages with Material UI’s built-in styling, making your forms more user-friendly and effective.