export PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/')\$"
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
| az group list --query '[].{name:name,loc:location}' --output table | |
| az vm list --query '[].{name:name,rg:resourceGroup,loc:location}' --output table |
After my DockerForMac update itself to Version 17.12.0-ce-rc4-mac44 (21438) k8s is not starting.
after nsentering the VM, i found 2 containers exiting:
/ # docker ps --filter status=exited
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b2b6f7eba42e gcr.io/google_containers/kube-apiserver-amd64 "kube-apiserver --ad…" 2 minutes ago Exited (255) About a minute ago k8s_kube-apiserver_kube-apiserver-docker-for-desktop_kube-system_9999fff5022435b112a99158001bcaa3_10
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
| token() { | |
| scope=${1:?scope required} | |
| export T=$(curl -s 'https://auth.docker.io/token?service=registry.docker.io&scope=repository:'$scope | jq .token -r; ) | |
| } | |
| blobUrl() { | |
| repo=${1:?required repo (library/alpine)} | |
| token ${repo}:pull | |
| export BLOBURL=$(curl -Lsi -H "Authorization: Bearer $T" https://registry-1.docker.io/v2/library/alpine/blobs/${BLOB}| sed -n '/^Location:/ {s/.$//;s/Location: //p;}') | |
| echo BLOBURL=$BLOBURL |
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
| query instances($AWS_DEFAULT_REGION: String, $AWS_ACCESS_KEY_ID: String, $AWS_SECRET_ACCESS_KEY: String) { | |
| aws(config: {accessKeyId: $AWS_ACCESS_KEY_ID, secretAccessKey: $AWS_SECRET_ACCESS_KEY, region: $AWS_DEFAULT_REGION}) { | |
| ec2 { | |
| describeInstances { | |
| Reservations { | |
| Instances { | |
| InstanceId | |
| PublicIpAddress | |
| VpcId | |
| } |
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
| #!/bin/bash | |
| curl -s http://myboogie.hu/boogie-woogie/boogie-zenek \ | |
| |sed -n '/mp3/ {s:^.*/images:http\://myboogie.hu/images:;s/.,.*$//;p;} ' \ | |
| |xargs -n 1 -P10 curl -LO |
docker-machine create \
--driver amazonec2 \
--amazonec2-open-port 80 \
--amazonec2-open-port 8080 \
--amazonec2-open-port 60000 \
--amazonec2-open-port 60001 \
--amazonec2-open-port 60002 \
--amazonec2-open-port 60003 \
--amazonec2-root-size "16" \
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
| <meta name="go-import" content="bit.ly/szikret git https://github.com/lalyos/secret"> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |