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

45 total results found

disk/file management

Linux CLI tools

disk show disk size check disk space: df -h - human readable show folder size show folder size: sudo du -shc ./* find biggest folders of current directory du -hs * | sort -rh | head -5 file movements rsync Links https://wiki.ubuntuusers.de/rsync/ opti...

Database

Docker Projects

MariaDB with PHPmyAdmin code snipped for mariadb with phpmyadmin (use only for development) mariadb: image: mariadb:10.6 restart: always environment: MYSQL_ROOT_PASSWORD: YOUR_ROOT_PASSWORD_HERE MYSQL_USER: YOUR_MYSQL_USER_HERE ...

Permissions, Groups

Linux

TODO https://www.pluralsight.com/blog/it-ops/linux-file-permissions groups add primary group (restart is necessary): sudo usermod -g primarygroupname username add group: sudo usermod -a -G secondarygroupname username desc: -g primary group assigned to th...

CLI Editor

Linux CLI tools

nano cli parameters/flags -c, --const - Constantly display the cursor position and line number on the statusbar. Note that this overrides -U. -U, --quickblank - Do quick statusbar blanking. Statusbar messages will disappear after 1 keystroke instead of 25. ...

find, search, grep

Linux CLI tools

find use cases: find ./subfolder -name sample.txt - Search a file with specific name find ./subfolder -name *.txt - Search a file with pattern find ./GFG -name sample.txt -exec rm -i {} \; - find and delete a file with confirmation find ./subfolder -empty - S...

Hooks

Git

git hooks pre-commit-msg This example adds the branch name as prefix to the commit message: create the file ~/.githooks/prepare-commit-msg #!/bin/sh # # Automatically adds branch name every commit message. # NAME=$(git branch | grep '*' | sed 's/* //' | cut -...

GUI / visualize

Git

CLI ui show logs in a graph git log --oneline --graph --color --all --decorate for linux use alias gg="git log --oneline --graph --color --all --decorate" in ~/.bashrc lazygit lazygit on Github GUI

Games

Docker Projects

minecraft java edition version: "3.8" services: mc: image: itzg/minecraft-server tty: true stdin_open: true ports: - "25565:25565" environment: EULA: "TRUE" MEMORY: 1G SERVER_NAME: "DRaab Minecraft Server" vol...

user management

Linux CLI tools

create user useradd john set password passwd john create user with root privilages: useradd -ou 0 -g 0 john check if id are set correctly: $ grep john /etc/passwd john:x:0:0::/home/john:/bin/sh add user to root group usermod -a -G root john delete...

DE Desktop environments

Linux

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

Docker Projects

i hate money https://ihatemoney.readthedocs.io/en/latest/ facto https://github.com/nymanjens/facto

Github / Gitlab

Git

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

Linux

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

Git

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

Docker Projects

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

Linux

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

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