Skip to content

Instantly share code, notes, and snippets.

View detnon's full-sized avatar
🗿

Sam Detnon detnon

🗿
View GitHub Profile
@detnon
detnon / wsl_setup_script.sh
Last active September 10, 2025 16:34
Python Build packages
#!/bin/bash
## Get AWS credential for user
read -p 'AWS Access Key: ' ACCESS_KEY
read -sp 'AWS Secret Key: ' SECRET_KEY
read -p 'AWS MFA ARN: ' MFA_TOKEN_ARN
read -p '(Optional) Python Version: ' PYTHON_VERSION
PYTHON_VERSION=${PYTHON_VERSION:-3.5}
## Install build tools for compiling Python from source
@detnon
detnon / domain_set.py
Last active November 3, 2022 00:53
Quick'n'dirty script to update a record set in a hosted zone upon restart of an EC2 Instance.
import boto3
import requests
DOMAIN_NAME = "<DOMAIN>"
SUB_DOMAIN = "<SUBDOMAIN>"
FQDN = SUB_DOMAIN + "." + DOMAIN_NAME
client = boto3.client("route53")
def get_hosted_zone_id():