<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>${user.home}/.m2/repository</localRepository>
<interactiveMode>true</interactiveMode>
<usePluginRegistry>false</usePluginRegistry>
<offline>false</offline>
<profiles>
...
This file contains hidden or 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
| # Show all processes that use a port | |
| lsof -i 4tcp | |
| # or | |
| netstat -anvp tcp | awk 'NR<3 || /LISTEN/' |
Docker container, images, networks management is easy with the prune command which is available for all types of Docker artifacts (see https://stackoverflow.com/a/32723127/4964553 & https://docs.docker.com/config/pruning/#prune-images & https://docs.docker.com/engine/reference/commandline/system_prune/#filtering).
docker container prune --filter "until=48h"
docker image prune -a --filter "until=2020-10-25"
This file contains hidden or 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
| # Go to last line | |
| Crtl + Shift + _ | |
| Crtl V | |
| # Delete whole line | |
| Crtl + K |
This file contains hidden or 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
| # Update Jekyll GitHub-Pages site | |
| https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/#keeping-your-site-up-to-date-with-the-github-pages-gem | |
| bundle update github-pages | |
| # Test Jekyll with GitHub-Pages locally | |
| https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/#step-4-build-your-local-jekyll-site | |
| bundle exec jekyll serve |
k9s cheatsheet: https://www.hackingnote.com/en/cheatsheets/k9s/
https://discuss.kubernetes.io/t/kubectl-tips-and-tricks/192
krew as the Kubernetes CLI (kubectl) plugin manager helps to install all the tools: https://krew.sigs.k8s.io/
This file contains hidden or 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
| # 0. need root access to system | |
| #### Show environment variables | |
| printenv | |
| #### Set env var | |
| export FOO=BAR | |
| #### Set env var for root | |
| # sudo export FOO=BAR doesnt work! (see https://askubuntu.com/questions/272637/i-have-a-problem-when-using-export-command) |
- Create a gist if you haven't already.
- Clone your gist:
# make sure to replace `<hash>` with your gist's hash git clone https://gist.github.com/<hash>.git # with https git clone git@gist.github.com:<hash>.git # or with ssh
NewerOlder