Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
- Set
EditionID
Key toProfessional
- Set
ProductName
Key toWindows 10 Professional
- Set
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion
- Set
EditionID
Key toProfessional
- Set
ProductName
Key toWindows 10 Professional
- Set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install docker client | |
curl https://download.docker.com/linux/static/stable/x86_64/docker-19.03.8.tgz > ~/docker.tar.gz | |
tar xzvf ~/docker.tar.gz --directory ~/ | |
sudo mv ~/docker/docker /usr/local/bin/docker | |
rm -rf ~/docker | |
rm -f ~/docker.tar.gz | |
# install docker-compose client | |
curl -L https://github.com/docker/compose/releases/download/1.28.0/docker-compose-Linux-x86_64 > ~/docker-compose | |
chmod +x ~/docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# allow `mount` cmd without password | |
echo "$USER ALL=NOPASSWD: /bin/mount" | (sudo su -c 'EDITOR="tee -a" visudo') | |
# add the mount directive to `fstab` | |
sudo mkdir -p /c | |
sudo sh -c "echo '/mnt/c /c none bind' >> /etc/fstab" | |
# update to `.bashrc` to auto mount at login | |
echo "sudo mount -a" >> ~/.bashrc | |
# now reload it | |
source ~/.bashrc |
Python 3.6 is not avaliable via apt-get
using a trusted source for the
WSL's current version of Ubuntu (v16.04). Therefore, it is recommended to
install Python 3.6 from source using the steps below. Be warned,
installing Python from source takes several minutes to complete.
sudo apt-get install -y build-essential checkinstall
sudo apt-get install -y libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
cd /usr/src
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ========================================================== configurations === | |
RAID_NAME=ephemeral_raid | |
RAID_DEVICE=/dev/md0 | |
RAID_MOUNT_PATH=/mnt/ephemeral | |
# =============================================================== functions === |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import boto3 | |
# parameters for source account | |
SRC_ACCOUNT_PROFILE = 'aws_profile_name' | |
SRC_ACCOUNT_REGION = 'us-east-1' | |
SRC_TABLE = 'your-source-table-name' | |
# parameters for destination account | |
DST_ACCOUNT_PROFILE = 'aws_profile_name' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
from configparser import SafeConfigParser | |
from pathlib import Path | |
import boto3 | |
import botocore | |
AWS_PROFILE_PATH = f"{Path.home()}/.aws/credentials" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import re | |
import sys | |
import os | |
import boto3 | |
# -------------------------------------------------------------------- main --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import boto3 | |
from botocore.exceptions import ClientError | |
# -------------------------------------------------------------------- main --- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import os | |
import sys | |
from configparser import ConfigParser | |
from datetime import datetime | |
from pathlib import Path | |
import boto3 |
OlderNewer