Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jackofallops on github.
  • I am kitaeru (https://keybase.io/kitaeru) on keybase.
  • I have a public key ASDSz8Y7jUegfx6bHlTeelBjYgOQtmuufjlK0EsZZG3alAo

To claim this, I am signing this object:

@jackofallops
jackofallops / Docker cli cheatsheet
Created September 18, 2018 07:28
Docker cli cheatsheet (basic)
# Show running containers
docker ps
# show running and stopped containers
docker ps -a
# show container logs, -f option follows logs like "tail"
docker logs [-f] [container ID or name]
# stop a container
@jackofallops
jackofallops / git basics
Created September 12, 2018 07:18
Some command hints for GIT for new starters
# Clone a project
git clone [URL]
# List Branches (all local and remote)
git branch -a
# List Branches (local copies)
git branch -l
# Switch branches
@jackofallops
jackofallops / ingress-nginx-local.json
Last active March 23, 2018 08:16
Kubernetes ingress-nginx Azure loadbalancer - enabling whitelisting
# In order for the nginx-ingress controller to correctly process the `nginx.ingress.kubernetes.io/whitelist-source-range` annotation
# it is necessary to set the `externalTrafficPolicy` to `Local` from `Cluster`. This allows the external IP to be visible to the
# controller, rather than the internal addressing (resultng in 403's for all sources).
# template of a "patch" can be found in the main project: https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/azure/service.yaml
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {