I hereby claim:
- I am sharepointoscar on github.
- I am sharepointoscar (https://keybase.io/sharepointoscar) on keybase.
- I have a public key ASAH0NpuBw9WPHx6rVbQmtvcNxI6BImjZM1nW7P0LcYHsQo
To claim this, I am signing this object:
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) |
sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill |
(gwmi win32_service -filter "name='service_name'").delete() |
# docker ip | |
docker inspect -f '{{.Name}} - {{.NetworkSettings.IPAddress }}' $(docker ps -aq) | |
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) |
# The yaml file | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
creationTimestamp: 2017-03-30T04:36:20Z | |
name: default | |
namespace: default | |
selfLink: /api/v1/namespaces/default/serviceaccounts/default | |
uid: 6bd2e599-1502-11e7-9a0e-080027e762a7 | |
secrets: |
# delete all pods | |
kubectl delete --all pods --namespace=default | |
# deete all deployments | |
kubectl delete --all deployments --namespace=default | |
# delete all services | |
kubectl delete --all services --namespace=default |
#!/usr/bin/env bash | |
padding () { | |
local char=" " | |
if [ "$#" -gt "1" ]; then | |
local char=${1:-$char} | |
local count=${2:-"1"} | |
elif [ "$#" -eq "1" ]; then | |
local count=${1:-"1"} | |
fi |
sudo lsblk -o name,mountpoint,label,size,uuid |
I hereby claim:
To claim this, I am signing this object:
# remove images based on a pattern | |
docker images | grep "pattern" | awk '{print $1}' | xargs docker rm | |
# remove all images | |
docker rmi $(docker images -a -q) |