Skip to content

Instantly share code, notes, and snippets.

@gvreddym
gvreddym / Dockerfile
Created August 20, 2019 00:16 — forked from mreferre/Dockerfile
Dockerfile (from alpine) for building a Greengrass 1.7 image for ARMv7
FROM alpine
MAINTAINER [email protected]
# Set ENV_VAR for Greengrass RC to be untarred inside Docker Image
ARG greengrass_release
ENV GREENGRASS_RELEASE=${greengrass_release}
# This Dockerfile builds a GG image for the ARMv7 platform
# curl this file: https://d1onfpft10uf5o.cloudfront.net/greengrass-core/downloads/1.7.0/aws-greengrass-docker-1.7.0.tar.gz
# untar it
@gvreddym
gvreddym / AWSRegionsAndAZs.md
Created July 5, 2019 10:13
List of AWS availability zones for each AWS region
AWS region code AWS region name Number of AZs AZ names
us-east-1 Virginia 4 us-east-1a, us-east-1b, us-east-1c, us-east-1e
us-west-1 N. California 2 us-west-1a, us-west-1b
us-west-2 Oregon 3 us-west-2a, us-west-2b, us-west-2c
eu-west-1 Ireland 3 eu-west-1a, eu-west-1b, eu-west-1c
eu-central-1 Frankfurt 2 eu-central-1a, eu-central-1b
ap-southeast-1 Singapore 2 ap-southeast-1a, ap-southeast-1b
ap-southeast-2 Sydney 2 ap-southeast-2a, ap-southeast-2b, ap-southeast-2c
ap-northeast-1 Tokyo 2 ap-northeast-1a, ap-nort
@gvreddym
gvreddym / git.migrate
Created June 22, 2019 08:05 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.