Last active
December 16, 2021 15:39
-
-
Save Muttsuri/b2ffd04e1f6f8e014f60a0f1b7804cdf to your computer and use it in GitHub Desktop.
Useful commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run portainer | |
## Linux (you can add user to docker group to avoid sudo, just be careful cuz that allows for privilege escalation) | |
docker run -d -p 9000:9000 --name portainer \ | |
--restart=always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v portainer_data:/data \ | |
cr.portainer.io/portainer/portainer-ce | |
# Flush DNS (SystemD / Ubutnu 18+) | |
sudo systemd-resolve --flush-caches | |
# Add directory to path | |
set -Uax fish_user_paths "path/I/generally/put/global" | |
# Remove from var(Path) | |
# index of the entry you want to change | |
set -e fist_user_paths[index] | |
#set ghci prompt to: | |
# Prelude (modules) | |
# λ> | |
":set prompt \"\ESC[1;34m%s\n\ESC[0;34mλ> \ESC[m\"" > ~/.ghci | |
sudo chmod go-w .ghci | |
## apt autoremove pacman equivalent (may need to be run more than once) | |
pacman -Qtdq | pacman -Rn - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment