Advanced Search
Search Results
52 total results found
Linux
Docker
Git
Windows
Clean Code
Collection of prinziples, examples, hints,... for helping to write clean code.
Projects
CLI tools
Boot
add boot entry https://linuxconfig.org/booting-a-ms-windows-os-using-grub Boot to your Linux Open a Terminal window Type: sudo os-prober If the results identify a Windows 10 install, type sudo update-grub which will update the GRUB entries and add it...
Installation
install current version (ubutnu/debian) curl -sSL https://get.docker.com | sh sudo usermod -aG docker $USER newgrp docker # to add docker in your current shell instance execute docker without sudo sudo groupadd docker if not already exists sudo usermod -aG d...
Docker CLI
container docker ps shows all running container docker ps -a shows all existing container docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...] --name <container-name> gives the created container a custom name --rm removes the container after s...
General
https://github.com/awesome-selfhosted/awesome-selfhosted portainer docker run -d -p 8000:8000 -p 9443:9443 -p 9000:9000 \ --name portainer \ --restart=always \ -v /var/run/docker.sock:/var/run/docker.sock \ -v ./data/portainer:/data \ portainer/portainer-ce:l...
Proxy
traefik links youtube tutuorial traefik boilerplate (Lempa) labels for connected containers services: demo labels: - traefik.enable=true - traefik.http.services.demo.loadbalancer.server.port=9000 - traefik.http.routers.demo.service=de...
Development
Code Server (Vistual Studio Code) https://docs.linuxserver.io/images/docker-code-server docker run -d \ --name=code-server \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Europe/Vienna \ -e PASSWORD=password `#optional` \ -e HASHED_PASSWORD= `#optional` ...
Monitoring
Uptime Kuma Link: https://github.com/louislam/uptime-kuma does not work on RPi ? How to install: sudo docker run -d --restart=always -p 3021:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma or: version: "2" services: uptime-kuma: ...
Collaboration
Cryptpad Link: https://hub.docker.com/r/promasu/cryptpad Etherpad Links: https://hub.docker.com/r/etherpad/etherpad https://github.com/ether/etherpad-lite/blob/develop/doc/docker.md version: '3' networks: etherpad: services: db: restart: always ...
Files/Storage
Filebrowser For loading files to the server... (like music, backup files, ...) https://filebrowser.org/installation sudo \ docker run -d \ -v /:/srv \ -p 8012:80 \ --name filebrowser \ filebrowser/filebrowser Default credentials: admin:admin P...
Media
Ampache - Music streaming Jellyfin https://jellyfin.org/docs/general/installation/container
Network
wireguard https://jakew.me/2020/10/19/wireguard-docker/ https://hub.docker.com/r/linuxserver/wireguard https://goneuland.de/wireguard-ui-wireguard-webinterface-mittels--compose-und-traefik-installieren/ version: "2.1" services: wireguard: image: lscr.i...
Merge, Rebase, Reset, Clean
merge vs rebase https://www.atlassian.com/git/tutorials/merging-vs-rebasing Make the current Git branch a master branch git checkout better_branch git merge --strategy=ours master # keep the content of this branch, but record a merge git checkout master git...
Basics
Bare basics semantic versioning https://semver.org/ clone git clone <url> clone an arbitrary repository add git add . add all files to stage commit git commit -m "some commit message" commit staged changes with inline commit message checkout -> switch ...
special distro behaviour
Ubuntu Browser graphic issue: https://askubuntu.com/questions/1413703/graphics-issue-with-google-chrome application shortcut in folder /usr/share/applications or ~/.local/share/applications .desktop file example: [Desktop Entry] Name=Visual Studio Code Co...
SSH
ssh public key auth generate key: ssh-keygen copy ssh key to remote: windows: type $env:{userProfile}\.ssh\id_rsa.pub | ssh -p{port} {user@serverAddress} "cat >> .ssh/authorized_keys" linux: ssh-copy-id -i {userHome}/.ssh/id_rsa.pub -p{port} {user@serverA...
Cronjob, tar, autostart, sudo, ln
cronjob execute all listed cronjobs: crontab -l | grep -v '^#' | cut -f 6- -d ' ' | while read CMD; do eval $CMD; done send output to mail address MAILTO="empfänger@adresse.de" https://de.godaddy.com/blog/behalten-sie-ihre-cron-jobs-unter-kontrolle/ ta...
Shell
bash basics default text editor for inline shell call: sudo EDITOR=nano crontab -e add to ~/.bashrc or ~/.zshrc: export EDITOR=nano for default root editor, edit also /root/.bashrc or /root/.zshrc echo "export VISUAL=nano\nexport EDITOR=nano" >> ~/.b...
Network
settings set static ip address sudo nano /etc/network/interfaces: auto ens18 iface ens18 inet static address 192.168.0.2 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 89.207.128.252 89.207.130.252 sudo reboot check local network settin...
Dockerfile
Dockerfile dockerfile manuals: https://takacsmark.com/dockerfile-tutorial-by-example-dockerfile-best-practices-2018/ best practice: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ key instructions FROM - base image ENV vari...
Docker-compose CLI
Basics usedocker-compose -p "nginx-proxy-manager" up -d to: -p with custom stack name -d as deamon (in background) -f from specific docker-compose file docker compose file https://docs.docker.com/compose/compose-file/compose-file-v3/ version: '3.1' s...