Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

46 total results found

Usefull stuff

Windows

open startup folder alias: autorun, autostart press Windows + r enter shell:startup hit Enter edit hosts file press Windows + r enter notepad C:\Windows\System32\drivers\etc\hosts hit Ctrl + Shift + Enter

Podman

Docker

install docs is deamonless uses the same cli specificatio than docker docker run ... -> podman run ... docker-compose ... -> podman-compose ... must be installed before autostart at boot linuxhandbook podman is deamonless so it wont autostart, create a sytem...

WSL Windows subsystem for linux

Windows

install manual wsl --install Ubuntu-24.04 --name Number2 backup and restore xda developers commands from link: # backup wsl -l wsl --export (distribution) (file path) # remove wsl -v #-> uninstall dist form startmenu wsl --unregister <distribution> # restor...

tmux

Linux CLI tools

links tutorial cheatsheet configs edit file ~/.tmux.conf as you like -> gpakosz github keyboard shortcuts Ctrl + b ? - show keyboard shortcut overview pane Ctrl+b " — split pane horizontally. Ctrl+b % — split pane vertically. Ctrl+b arrow key — switch pane...

Stash / Worktree

Git

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

Linux

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

Linux

#!/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

Linux CLI tools

suspend and continue Ctrl - z suspend command fg to continue

Priciples

Clean Code

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...

conciseness - readability

Clean Code

naming https://www.freecodecamp.org/news/how-to-write-better-variable-names variable naming avoid variable names without meaning. use int elapsedTimeinDays; instead of int d; method naming TODO Naming conventions Style Example Common Usage camelCase use...