Advanced Search
Search Results
53 total results found
DE Desktop environments
gnome taskbar changes gnome extentions install browser extention (in not snap browser) install chrome-gnome-shell or gnome-browser-connector via apt-get install extentions: network stats https://extensions.gnome.org/extension/4308/network-stats/ system mo...
Finance
i hate money https://ihatemoney.readthedocs.io/en/latest/ facto https://github.com/nymanjens/facto
Github / Gitlab
Common create patch from commit add .patch for a patch file or .diff for a plain diff file as a suffix onto commit links or merge request links. examples: https://github.com/magento/magento2/commit/18dee3d979ed8ee68a44324e892e6b7f570c987c.diff Gitlab s...
Different issues and settings
time time sync simples time check: date more details: timedatectl activate time sync: sudo timedatectl set-ntp true necessary: apt install systemd-timesyncd
Special usecases
rename branch git checkout <old_name> git branch -m <new_name> (move/rename the local branch) git push origin -u <new_name> (push new branch to remote) git push origin --delete <old_name> (remove old branch from remote) clone repo in existing folder wi...
Home Automation
mqtt client docker run -d --rm --network=nodered_node-red-net --network=npm_default --name mqttx-web -p 8000:80 emqx/mqttx-web
Shell scripting
cheatsheets: https://devhints.io/bash bash basics $? last result conditions check if file exists: [ -f /path/to/file ] && do something if [ -f /path/to/file ]; then do something; fi find biggest folders of current directory du -hs * | sort -rh | head -5
Usefull stuff
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
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
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
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 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...
conciseness - readability
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...