docker-compose --file file.yml pull
docker-compose --file file.yml up
echo "This is the body" | mail -s "This is the subject" user@gmail.com |
# confirmation | |
alias mv='mv -i' | |
alias cp='cp -i' | |
alias ln='ln -i' | |
# Brew shortcuts | |
alias update='brew update' | |
alias upgrade='brew upgrade' | |
alias services='brew services list' | |
alias start='brew services start' |
# Install KubeCtl | |
brew install kubectl | |
# Starting Minikube | |
minikube start | |
# Run Hello World | |
kubectl run hello-world --replicas=2 \ | |
--labels="run=load-balancer-example" \ | |
--image=gcr.io/google-samples/node-hello:1.0 \ |
package specs | |
import geb.spock.GebReportingSpec | |
class GebDemoSpec extends GebReportingSpec { | |
def "Testing Basic Page Contents"(){ | |
setup: | |
go "http://localhost:9000/#/demo/geb-demo" |
## Listing Topics | |
./kafka-topics --list --zookeeper localhost:2181 | |
## Create Topic | |
./kafka-topics --create --topic pin-promotions-data-local --zookeeper localhost:2181 --partitions 1 --replication-factor 1 | |
# ******************************************************************** | |
# Control Statements | |
# ******************************************************************** | |
num = 20 | |
### IF Statement | |
if num == 20: | |
print 'The Number is 20' | |
else: |