Advanced Search
Search Results
52 total results found
Stash / Worktree
git stash git worktree git gitkraken use add new worktree git worktree add <path> <branch> --force force creating a new worktree (e.g. create new worktree with already checked out branch) list worktrees git worktree list remove unused worktree git worktree r...
special tools
bpftrace homepage docs sudo bpftrace --unsafe -e 'tracepoint:signal:signal_generate /args->sig ==9/ { printf("SIGKILL: target pid=%d sender pid=%d processname=", args->pid, pid); system("ps -p %d -o comm | sed -n \"2 p\"", pid); }'
New Server Setup
#!/usr/bin/bash sudo apt update && sudo apt upgrade sudo apt -y install fail2ban ufw git curl zsh cat >> ~/.ssh/authorized_keys << EOF ---pub ssh key--- EOF echo "vps2" > /etc/hostname cat >> /etc/hosts << EOF 127.0.0.1 vps2 46.38.233.182 vps2.draab...
basic
suspend and continue Ctrl - z suspend command fg to continue
Priciples
KISS - keep it simple, stupid code should be as simple as possible. don’t overengineer, avoid unnecessary complexity DRY - don’t repeat yourself don’t duplicated code YAGNI - You aren’t gonna need it additional functionality should been added when it is requir...