Skip to content

Instantly share code, notes, and snippets.

View xntric78's full-sized avatar

Christopher M Pieper xntric78

View GitHub Profile
@xntric78
xntric78 / active_m$_products.md
Created December 21, 2021 21:46 — forked from khiemdoan/active_m$_products.md
Active M$ products

Active Windows 11

Active Windows 11 Pro

# Open Powershell/Command Prompt as administrator
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms s8.uk.to
slmgr /ato
<!-- : Begin batch script
@setlocal DisableDelayedExpansion
@set uivr=v45
@echo off
:: ### Configuration Options ###
:: change to 1 to enable debug mode (can be used with unattended options)
set _Debug=0
:: change to 0 to turn OFF Windows or Office activation processing via the script
@echo off
title Activate Windows 11 (ALL versions) for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Windows 11 Home&echo - Windows 11 Professional&echo - Windows 11 Education&echo - Windows 11 Enterprise&echo.&echo.&echo ============================================================================&echo Activating your Windows...&cscript //nologo slmgr.vbs /ckms >nul&cscript //nologo slmgr.vbs /upk >nul&cscript //nologo slmgr.vbs /cpky >nul&set i=1&wmic os | findstr /I "enterprise" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 >nul&cscript //nologo slmgr.vbs /ipk DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 >nul&cscript //nologo slmgr.vbs /ipk WNMTR-4C88C-JK8YV-HQ7T2-76DF9 >nul&cscript //nologo slmgr.vbs /ipk 2F77B-TNFGY-69QQF-B8YKP-D69TJ
@xntric78
xntric78 / aws_orgs_for_each_account.py
Created September 2, 2021 11:47 — forked from benkehoe/aws_orgs_for_each_account.py
Template for running work in every account in an organization
import aws_assume_role_lib # https://github.com/benkehoe/aws-assume-role-lib
account_role_name = "YOUR_ACCOUNT_ROLE_NAME_HERE" # TODO: put your role name here
management_account_session = boto3.Session()
# if you're using AWS SSO in your management account and there's a specific role for this work, you could use aws-sso-lib
# https://github.com/benkehoe/aws-sso-util/blob/master/lib/README.md
# management_account_session = aws_sso_lib.get_boto3_session(start_url, sso_region, management_account_id, management_role_name, region=sso_region)
orgs = management_account_session.client('organizations')
@xntric78
xntric78 / buckets.tf
Created September 2, 2021 11:35 — forked from nagelflorian/buckets.tf
Terraform config for static website hosting on AWS
# AWS S3 bucket for static hosting
resource "aws_s3_bucket" "website" {
bucket = "${var.website_bucket_name}"
acl = "public-read"
tags {
Name = "Website"
Environment = "production"
}

Keybase proof

I hereby claim:

  • I am xntric78 on github.
  • I am cpieper_trhc (https://keybase.io/cpieper_trhc) on keybase.
  • I have a public key ASBb2QuYgnHoEF67kfj0-wwnXDJjZibyJd1ZgavFpGz_yQo

To claim this, I am signing this object:

cpieper_trhc
Christopher Pieper
### Keybase proof
I hereby claim:
* I am xntric78 on github.
* I am cpieper_trhc (https://keybase.io/cpieper_trhc) on keybase.
* I have a public key ASBb2QuYgnHoEF67kfj0-wwnXDJjZibyJd1ZgavFpGz_yQo
@xntric78
xntric78 / set-fastest-nordvpn.sh
Created October 6, 2020 05:05 — forked from mzpqnxow/set-fastest-nordvpn.sh
Script to periodically reset an OpenVPN tunnel for NordVPN to the fastest server on Ubiquiti EdgeRouters
#!/bin/vbash
#
# Script for Ubiquiti devices to find the fastest NordVPN OpenVPN
# server and switch your current VPN tunnel over to it fairly
# seamlessly
#
# COUNTRY_ID=38 # Canada
# COUNTRY_ID=228 # USA
# COUNTRY_ID=140 # Mexico
IP_PROTOCOL=udp
BEGIN MESSAGE.
Gc5QFgFaGh7aIn9 lKdrTJfqg39Ed6q NAzxNMMi082BFxx gXuSijqhSAoHpmo
RXlipmqKOgQ6LHs H5F5U7gQCScTCKq 6Xr2MZHgg4eiygC k8XzslxQd0SicCP
V83fV6IJnPFSAYc lKCPifKMuNX4SgD MaJ1o0qXMJbXRlC miuMSZxN2s4VZ1s
CNgGvqoNpO3kmQ6 y41q5LJ0vp7UiAP JvU970Qz5Z.
END MESSAGE.