PS1='\u:\W\$ '
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
`nautilus admin://` |
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
php bin/magento admin:user:create --admin-user="<admin>" --admin-password="<newpassword>" --admin-email="<[email protected]>" --admin-firstname="<Test>" --admin-lastname="<Test>" |
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
# Get current region | |
aws configure get region |
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
kubectl Cheat Sheet | |
See also: Kubectl Overview and JsonPath Guide. | |
Kubectl Autocomplete | |
$ source <(kubectl completion bash) # setup autocomplete in bash, bash-completion package should be installed first. | |
$ source <(kubectl completion zsh) # setup autocomplete in zsh | |
Kubectl Context and Configuration | |
Set which Kubernetes cluster kubectl communicates with and modifies configuration information. See Authenticating Across Clusters with kubeconfig documentation for detailed config file information. | |
$ kubectl config view # Show Merged kubeconfig settings. |
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
FROM ruby:2.3.1 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
# Configuring main directory | |
RUN mkdir -p /app_name | |
WORKDIR /app_name | |
# Setting env up | |
ENV RAILS_ENV='production' | |
ENV RAKE_ENV='production' |
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
docker stop $(docker ps -a -q); docker rm $(docker ps -a -q); docker volume rm $(docker volume ls -qf dangling=true) | |
docker network rm $(docker network ls -q) | |
sudo lsof -nP | grep LISTEN | |
sudo kill -9 1548 | |
# Where on the last line, 1548 was a service that was using port 80 as returned by the penultimate line. |
- have fun with them
- projections
- filters
- resource-keys
- https://cloud.google.com/sdk/docs/scripting-gcloud
- http://cloudplatform.googleblog.com/2018/03/introducing-GCPs-new-interactive-CLI.html
kubectl uses OAuth token generated by
gcloud config config-helper --format json