Skip to content

Instantly share code, notes, and snippets.

@herrera-ignacio
Last active December 11, 2021 01:52
Show Gist options
  • Save herrera-ignacio/d96e1f90de13df8473914d030226263f to your computer and use it in GitHub Desktop.
Save herrera-ignacio/d96e1f90de13df8473914d030226263f to your computer and use it in GitHub Desktop.
Daily Operator Handbook

Daily Operator Handbook

Docker

  • docker ps
  • docker kill <container>
  • docker logs -f <container>

Networking & OS

Linux

  • journalctl -u sshd: See logs for sshd
  • ps aux | grep [process name]: Get PID.
  • kill -fW :PID: Kill process by PID.
  • du -hc or tree -d -h: Get size of a directory

Arch

  • Instal AUR packages
    • pacman -S --needed base-devel
    • tar -xvf package_name.tar.gz
    • cd package_name
    • makepkg
    • pacman -U package_name-version-architecture.pkg.tar.zst
  • Docker setup
    • sudo pacman -S docker
    • sudo systemctl enable docker.service
    • sudo systemctl start docker.service
    • sudo usermod -aG docker $USER
    • sudo pacman -Sy docker-compose

Windows

  • netstat -ano | findstr :YourPortNumber: Find processes running in port.
  • taskkill /PID enterPID /F: Kill process by PID.

Local DNS

You can setup a local DNS resolution by editing your Windows/System32/drivers/etc/hosts file. For example adding this new line:

# <IP_address> <name>
192.168.0.78 jenkins.local
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment