Horizontal Scroll on MacOS
Scroll Horizontally on macOS With Any External Mouse
On MacOS, when using external (non apple) mice, hold SHIFT and use the scroll whell to scroll Horizontally on any application.
Scroll Horizontally on macOS With Any External Mouse
On MacOS, when using external (non apple) mice, hold SHIFT and use the scroll whell to scroll Horizontally on any application.
Duplicate The Current Browser Tab in Windows: ALT + D + ENTER
Duplicate The Current Browser Tab in macOS: Command + L, then Command + Return
#!/usr/bin/env bash searches PATH for bash whereas in #!/bin/bash path to bash must be located in /bin
Use #!/usr/bin/env bash for better portability.
Set the namespace in current context
kubectl config set-context --current --namespace=<namespace>Get the OS
kubectl get po -o custom-columns="POD:.metadata.name" | tail -n +2 | xargs -I {} kubectl exec {} -- sh -c 'echo "Pod - $(hostname): $(cat /etc/os-release | grep PRETTY_NAME)"'If git push is prompting for user & password:
$ git pushUsername for 'https://github.com':The issue is the repository was cloned with https url instead of SSH. To fix this, simply set the remote URL to SSH URL of the repository.
git remote set-url origin git@github.com:username/repo.gitpress Enter key followed by ~. (tilde, period).
docker cp src/. container_id:/targetdocker cp container_id:/src/. targetConventional Commit is a formatting convention that provides a set of rules to formulate a consistent commit message structure.
Structure:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]The commit type can include the following:
feat β a new feature is introduced with the changesfix β a bug fix has occurredchore β changes that do not relate to a fix or feature and donβt modify src or test files (for example updating dependencies)refactor β refactored code that neither fixes a bug nor adds a featuredocs β updates to documentation such as a the README or other markdown filesstyle β changes that do not affect the meaning of the code, likely related to code formatting such as white-space, missing semi-colons, and so on.test β including new or correcting previous testsperf β performance improvementsci β continuous integration relatedbuild β changes that affect the build system or external dependenciesrevert β reverts a previous commit