Skip to content

Instantly share code, notes, and snippets.

View dinhanhhuy's full-sized avatar

Đinh Anh Huy dinhanhhuy

View GitHub Profile

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

# Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
module "sandbox_account_01" {
source = "./modules/aft-account-request"
control_tower_parameters = {
AccountEmail = "john.doe@amazon.com"
AccountName = "sandbox-account-01"
ManagedOrganizationalUnit = "Sandbox"
aft-account-customizations/
├── PRODUCTION
│ └── terraform
│ ├── ...
│ └── main.tf
└── SANDBOX # <-------------- this is customizations group
└── terraform
├── ...
└── main.tf
resource "aws_s3_account_public_access_block" "block_all_public" {
block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}
module "sandbox_account_01" {
source = "./modules/aft-account-request"
control_tower_parameters = {
AccountEmail = "john.doe@amazon.com"
AccountName = "sandbox-account-01"
# Syntax for top-level OU
ManagedOrganizationalUnit = "Sandbox"
# Syntax for nested OU
# ManagedOrganizationalUnit = "Sandbox (ou-xfe5-a8hb8ml8)"
$ ip netns exec c84ad4878642 netstat -lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8080 127.0.0.1:* LISTEN 52583/nginx: master
# create meta data file for network namespace
$ pid=$(docker inspect -f '{{.State.Pid}}' ${container_id})
$ mkdir -p /var/run/netns/
$ ln -sfT /proc/$pid/ns/net /var/run/netns/[container_id]
# list all the network namespace on host
$ ip netns ls
c84ad4878642 (id: 77)
# listed all Linux namespace attach by process 52507
$ lsns | grep 52507
4026539260 mnt 4 52507 root /bin/sh -c ./env.sh
4026539261 uts 4 52507 root /bin/sh -c ./env.sh
4026539262 pid 4 52507 root /bin/sh -c ./env.sh
$ docker inspect c84ad4878642
[
{
"State": {
"Pid": 52507,
...
$ unshare --net some-sql start