A list of all the region names and locations for Azure
You can recreate the list anytime using this command:
az account list-locations -o table| // Brandon Azad (@_bazad) | |
| #include <assert.h> | |
| #include <errno.h> | |
| #include <mach/mach.h> | |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> |
| // exporting from a bs58 private key to an Uint8Array | |
| // == from phantom private key to solana cli id.json key file | |
| // npm install bs58 @solana/web3.js | |
| const web3 = require("@solana/web3.js"); | |
| const bs58 = require('bs58'); | |
| let secretKey = bs58.decode("[base58 private key here]"); | |
| console.log(`[${web3.Keypair.fromSecretKey(secretKey).secretKey}]`); | |
| // exporting back from Uint8Array to bs58 private key |
| #!/bin/bash | |
| sudo yum install gcc -y | |
| sudo yum install openssl-devel -y | |
| sudo yum install zlib-devel -y | |
| sudo yum install mlocate -y | |
| sudo yum install autoconf -y | |
| wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.2p1.tar.gz | |
| tar zxvf openssh-8.2p1.tar.gz | |
| cd openssh-8.2p1 && ./configure && make && sudo make install |
| # sh -c "$(curl -fsSL https://gist.githubusercontent.com/gjgd/5a08da85a98bf147294f331461e44d1f/raw/a63bf0f4169a8ab651adfa0a56e676e6bc465876/setup-github-action-runner.sh)" | |
| # Update instance | |
| sudo apt update -y | |
| sudo apt upgrade -y | |
| # Install latest version of git | |
| sudo add-apt-repository ppa:git-core/ppa -y | |
| sudo apt-get update | |
| sudo apt-get install git -y |
| # sh -c "$(curl -fsSL https://gist.githubusercontent.com/gjgd/5a08da85a98bf147294f331461e44d1f/raw/a63bf0f4169a8ab651adfa0a56e676e6bc465876/setup-github-action-runner.sh)" | |
| # Update instance | |
| sudo apt update -y | |
| sudo apt upgrade -y | |
| # Install latest version of git | |
| sudo add-apt-repository ppa:git-core/ppa -y | |
| sudo apt-get update | |
| sudo apt-get install git -y |
| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| Disclaimer: The instructions are the collective efforts from a few places online. | |
| Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did. | |
| First off, bundle. | |
| ================== | |
| 1. cd to the project directory | |
| 2. Start the react-native packager if not started | |
| 3. Download the bundle to the asset folder: | |
| curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle" |