git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Most of programs will not accept an email using just @localhost as domain.
So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:
127.0.0.1 localhost.com
| #!/bin/bash | |
| echo "Getting list of Availability Zones" | |
| all_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort) | |
| all_az=() | |
| while read -r region; do | |
| az_per_region=$(aws ec2 describe-availability-zones --region $region --query 'AvailabilityZones[*].[ZoneName]' --output text | sort) | |
| while read -r az; do |
| func ComputeHmac256(message string, secret string) string { | |
| key := []byte(secret) | |
| h := hmac.New(sha256.New, key) | |
| h.Write([]byte(message)) | |
| return base64.StdEncoding.EncodeToString(h.Sum(nil)) | |
| } |
| # This config came around after a friend had problems with a Steam cache on his | |
| # Cox internet connection. Cox would intercept any requests to Steam content | |
| # servers and return a 302 to Cox's servers. The cache would return the 302 | |
| # to the Steam client, and the Steam client would go directly to Cox, bypassing | |
| # the cache. | |
| # This config makes nginx follow the 302 itself, and caches the result of the | |
| # redirect as if it was the response to the original request. So subsequent | |
| # requests to the URL that returned a 302 will get the file instead of a 302. |
| Create a tmux conf file | |
| #> touch ~/.tmux.conf | |
| Install TMP | |
| #> git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
| [Copy and paste tmux.conf below into local file.] | |
| Load tmux configurations | |
| #> tmux source-file ~/.tmux.conf |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/rekognition" | |
| "github.com/blackjack/webcam" | |
| "os" |
$ for region in `aws ec2 describe-regions --query 'Regions[*].RegionName' --output text`; do aws ec2 describe-availability-zones --query 'AvailabilityZones[*].ZoneName' --region ${region}; done
[
"ap-south-1a",
"ap-south-1b"
]
[
"eu-west-2a",
"eu-west-2b"| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowAllUsersToListAccounts", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:ListAccountAliases", | |
| "iam:ListUsers", | |
| "iam:GetAccountPasswordPolicy", |