Create a new repository, or reuse an existing one.
Generate a new SSH key:
ssh-keygen -t rsa -C "your_email@example.com"
Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings.
Test SSH key:
| Here is a working example via aws-cli and jq. | |
| Preparation | |
| Create S3 bucket: | |
| aws s3 mb s3://wei20181202s3 | |
| make_bucket: wei20181202s3 | |
| Create SNS topic: | |
| aws sns create-topic --name wei20181202sns | |
| { |
Create a new repository, or reuse an existing one.
Generate a new SSH key:
ssh-keygen -t rsa -C "your_email@example.com"
Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings.
Test SSH key:
| DELETE TAG FROM REGISTRY | |
| See: https://github.com/docker/distribution/blob/master/docs/spec/api.md#deleting-an-image | |
| Working usage: https://github.com/byrnedo/docker-reg-tool | |
| Stackoverflow: https://stackoverflow.com/questions/25436742/how-to-delete-images-from-a-private-docker-registry | |
| yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel | |
| readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel |
| # Creating an empty dictionary | |
| data = {} | |
| # OR | |
| data = dict() | |
| # Creating a dictionary with initial values | |
| data = {'a':1,'b':2,'c':3} | |
| # OR | |
| data = dict(a=1, b=2, c=3) |