Here's how to init your Node.js project with latest Yarn version:
Enable corepack (Node.js >=16.10)
corepack enable
Set the latest versions:
useradd $username | |
passwd $username | |
# open and uncomment "%wheel ALL=(ALL) ALL" line | |
visudo | |
# add user to wheel group, this is the admin group | |
usermod -aG wheel $username | |
# check if user has root permissions |
firewall-cmd --list-all | |
firewall-cmd --zone=public --add-port=55555/tcp --permanent | |
firewall-cmd --reload |
# How to encrypt a sensitive file with symmetric cipher. (e.g. Solana keypairs) | |
keypair="$HOME/.config/solana/mainnet.json" | |
# This will create a new encrypted file "mainnet.json.gpg" on the target location | |
# You'll be asked to enter a passphrase | |
gpg -c --no-symkey-cache $keypair | |
# Run this command to decrypt the file using your previous passphrase | |
gpg -d --no-symkey-cache "$keypair.gpg" |
import time | |
import threading | |
def do_work(work): | |
print(f'Doing {work}') | |
time.sleep(3) | |
print(f'Finished {work}') | |
def do_all_the_work(work): | |
index = 0 |
# Windows | |
# Use System Preparation Tool | |
sysprep /generalize | |
# Linux | |
# Take a backup of the VM first | |
sudo waagent -deprovision+user | |
# Template | |
# https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-copy-managed-disks |
#!/bin/bash | |
# Load Variables | |
source dev.local.env | |
# Decrypt the API password | |
api_password=$(gpg --decrypt --no-symkey-cache $pwd_encrypted_file) | |
# Authenticate to MuleSoft and get the token (requires jq to be installed) | |
access_token=$(curl -X POST -u $username:$api_password -d $auth_url | jq -r '.access_token') |
nc -zvu ntp.pool.org 123 |
sudo apt update && sudo apt upgrade -y | |
sudo apt install build-essential python3-pip python3-venv -y | |
python3 -m pip install --upgrade pip | |
sudo pip install virtualenv pipx | |
pipx install pipenv | |
git submodule sync | |
git submodule update --init --recursive | |
python3 -m pip install -e . --upgrade |
maven_version='3.8.6' | |
wget "https://dlcdn.apache.org/maven/maven-3/$maven_version/binaries/apache-maven-$maven_version-bin.tar.gz" | |
tar -xvf apache-maven-*-bin.tar.gz | |
sudo mv "apache-maven-$maven_version" /usr/share/maven | |
echo 'export PATH="$PATH:/usr/share/maven"' >> ~/.bashrc | |
echo 'export PATH="$PATH:/usr/share/maven/bin"' >> ~/.bashrc | |
source ~/.bashrc |
Here's how to init your Node.js project with latest Yarn version:
Enable corepack (Node.js >=16.10)
corepack enable
Set the latest versions: