Skip to content

Instantly share code, notes, and snippets.

View rozsival's full-sized avatar
🤘
I do what I like

Vít Rozsíval rozsival

🤘
I do what I like
View GitHub Profile
@rozsival
rozsival / ubuntu-srvr-dch.md
Last active March 26, 2026 18:15
Docker Credential Helper Setup (Ubuntu Server)

🐳 Docker Credential Helper Setup for Ubuntu Server

Recommended setup to handle Docker login credentials securely on Ubuntu Server.

Prerequisites

@rozsival
rozsival / git-worktree-setup.md
Last active February 23, 2026 17:40
Git Worktree Setup

🌳 git-worktree-setup

A utility script for cloning and setting up Git repositories as bare clones with an opinionated worktree-enabled structure.

🤔 Why?

Git worktrees are becoming the go-to solution for managing repositories with AI-driven development workflows, allowing developers to work on multiple features in parallel while your AI assistant works in separate branches without conflicts.

📦 Installation

@rozsival
rozsival / sphp
Created March 3, 2021 16:16
Easy Brew PHP-FPM switch
#!/usr/bin/env bash
latest="8.0"
versions=("7.0" "7.1" "7.2" "7.4" "$latest")
valid=$(printf "|%s" "${versions[@]}")
switch="$1"
ERROR=$(tput setaf 1)
SUCCESS=$(tput setaf 2)
if [ -z "$switch" ]