git clone git@github.com: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
| import json | |
| import sys | |
| import os | |
| def dotenv_to_json(dotenv_path, json_path): | |
| with open(dotenv_path) as f: | |
| data = f.readlines() | |
| result = {} | |
| for line in data: |
| #!/usr/bin/env python3 | |
| # Demonstrates the use of Python to work with Cognito. | |
| # Create a new a user, log in, check tokens and call an API. | |
| # The purpose was to learn about Cognito. Security has been | |
| # circumvented in the interest of keeping it simple. | |
| # Notably, the authentication procedure uses the most insecure | |
| # method. This code is not intended for use in production. | |
| # | |
| # https://www.neant.ro/aws/working-with-cognito-and-api-gateway-in-python.html |
| // Dependencies =============== | |
| import {Auth} from 'aws-amplify' | |
| const store = {namespaced: true} | |
| // State ====================== | |
| store.state = { | |
| authorized: false, |
| # Assume we are in your home directory | |
| cd ~/ | |
| # Clone the repo from GitLab using the `--mirror` option | |
| $ git clone --mirror git@your-gitlab-site.com:mario/my-repo.git | |
| # Change into newly created repo directory | |
| $ cd ~/my-repo.git | |
| # Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. |
| { | |
| "AF": "Afghanistan", | |
| "AX": "Aland Islands", | |
| "AL": "Albania", | |
| "DZ": "Algeria", | |
| "AS": "American Samoa", | |
| "AD": "Andorra", | |
| "AO": "Angola", | |
| "AI": "Anguilla", | |
| "AQ": "Antarctica", |