Skip to content

Instantly share code, notes, and snippets.

View FossilBlade's full-sized avatar
🦥
I may be slow to respond.

FossilBlade

🦥
I may be slow to respond.
View GitHub Profile
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
{
@FossilBlade
FossilBlade / README.md
Created September 18, 2019 09:49 — forked from developius/README.md
Setup SSH keys for use with GitHub/GitLab/BitBucket etc

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)