Generate ssh-key
ssh-keygen -t rsa -b 2048 -C "streisand@stack" -f id_rsa_streisand -q -N ""
aws ec2 import-key-pair --key-name 'streisand' --public-key-material file://./id_rsa_streisand.pubPrepare prerequisites
| # Apple Silicon laptops with firmware > 13.0 have a native charge threshold that does not required any userspace daemon running. | |
| # This native limit works even when the laptop is sleeping or powered off therefore it is preferable to the userspace daemon. | |
| # Nonetheless, it only works with fixed thresholds (80% as upper limit and 70% as lower limit). | |
| # CHWA key is the one used to enable/disable the native limit. 01 = 80% limit, 00 = no limit | |
| ## | |
| typeset -g smc_command="/usr/local/bin/smc" | |
| typeset -g smc_charge_limit_key="CHWA" | |
| typeset -g smc_charge_limit_status_on="01" | |
| typeset -g smc_charge_limit_status_off="00" |
| #!/usr/bin/env bash | |
| set -x | |
| main_if=ens33 | |
| ping_count=1 | |
| echo 1 > /proc/sys/net/ipv4/ip_forward || exit 1 | |
| ip netns del ns1 > /dev/null 2>&1 |
Generate ssh-key
ssh-keygen -t rsa -b 2048 -C "streisand@stack" -f id_rsa_streisand -q -N ""
aws ec2 import-key-pair --key-name 'streisand' --public-key-material file://./id_rsa_streisand.pubPrepare prerequisites
| #!/usr/bin/env python | |
| #---------------------------------------------------------- | |
| # | |
| # Episode Split | |
| # CraftyCanine | |
| # | |
| # Description | |
| # | |
| # This script is meant to make the process of splitting |