Skip to content

Instantly share code, notes, and snippets.

View DevWichrowski's full-sized avatar
💥
Hacking

Patryk Wichrowski DevWichrowski

💥
Hacking
  • Monza, IT
View GitHub Profile
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
@DevWichrowski
DevWichrowski / Kubernetes commands
Created April 9, 2018 13:25
Few Kubernetes commands I used during video course
minikube start - to start minikube
minikube status - to check the status
kubectl get nodes - to return nodes
minikube dashboard - to open darshboard
kubeadm init - set nodes up to master
kubectl run ghost --image=ghost - create deployment from dockerhub
kubectl delete deployments ghost - to delete deployment
kubectl proxy - to start proxy on localhost
kubectl create ns test - to create namespace test
kubetl get ns - to get namespaces
=========Docker Basics===========
docker login - to login into docker hub
docker run - to run container
docker rm - to remove container from sys
docker rmi - to remove container from disk
docker kill- to close
docker ps - list running containers
docker ps -a shows stopped containers
docker ps -l shows last runned container
docker logs - show log of container