Good Friend

Source: War and Peas 🙂

January 31, 2017

Show Docker Stats with Container Name Instead of Container ID

docker stats $(docker ps --format={{.Names}}) More details in the Docker CLI Reference

January 14, 2017

Spot the International Space Station in New Plymouth

If you don’t live in New Plymouth, choose your location, below:

January 10, 2017

Run a Bash Shell in a Running Docker Container

There was a time when I could never remember this… but now I’ve typed it so often! docker exec -it container_name /bin/bash More details in the Docker CLI Reference

November 24, 2016

Password Strength

This is a great comic which is a great lead in to Diceware 🙂

November 15, 2016

AWS IAM policy for granting privileges to S3 bitbuckets for WordPress UpdraftPlus Backups

Replace ‘mybucket’ with the name of the bitbucket that you wish to grant privileges to. { "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetBucketLocation", "s3:ListBucketMultipartUploads" ], "Resource": "arn:aws:s3:::mybucket", "Condition": {} }, { "Effect": "Allow", "Action": [ "s3:AbortMultipartUpload", "s3:DeleteObject", "s3:DeleteObjectVersion", "s3:GetObject", "s3:GetObjectAcl", "s3:GetObjectVersion", "s3:GetObjectVersionAcl", "s3:PutObject", "s3:PutObjectAcl", "s3:PutObjectVersionAcl" ], "Resource": "arn:aws:s3:::mybucket/*", "Condition": {} }, { "Effect": "Allow", "Action": "s3:ListAllMyBuckets", "Resource": "*", "Condition": {} } ] }

November 7, 2016

Docker - Logs

Fetch and follow the log output of a Docker container: docker logs -f CONTAINER_NAME

November 6, 2016

School Coding Class – 003

After getting to know the children, over the last two sessions, and finding out their strengths, I’ve decided to take a little detour from Scratch to a slightly more guided programme on code.org. The children can continue the course at home if they’d like to – they’ll just need to remember which step they are up to in class! If they would like to save their progress then feel free to create an account for them....

November 2, 2016

School Coding Class - 001

In the class, we are starting to learn some programming. The language we are using is called Scratch. Scratch is a free visual programming language. It is aimed at young people, mainly 8 years old and up, with a purpose of helping them learn programming. Scratch is available online and it’s easy to create an account if you’d like to use it outside of school. Just follow this link. The first challenge we are working on is below!...

October 21, 2016

Docker - Managing Dangling Volumes

List Dangling Volumes docker volume ls -qf dangling=true Remove Dangling Volumes docker volume rm $(docker volume ls -qf dangling=true)

September 22, 2016