Scratches

Tips worth saving • A collection of thoughts and tutorials

May 3, 2026
Wifi popos

Pop!_OS WiFi

popOS wifi

April 5, 2025

Install gopls

Solves an issue where gopls hung in vim on Ubuntu and CentOS Vim hung with this a bottom of vim window: <pre>vim-go: initializing gopls</pre> ensure yo...

April 4, 2025

Jenkins API: curl with CSRF crumb and token

Create CSRF Crumb and save to Environment Variable $CRUMB <pre>CRUMB=$(wget -q --auth-no-challenge --user JenkinsAdmin --password $PASSWORD --output-docum...

April 3, 2025

AWS ECS FarGate 1.3.0 uses Docker, 1.4.0 uses containerd

In terraform the ECS version can be specified.<br> Using platform_version 1.3.0 uses Docker for your containers.<br> Using platform_version 1.4.0 uses containe...

April 1, 2025
k8s, kubctl, pods

Kubernetes delete all running pods

<pre>kubectl delete pods -n development kubectl get pods -n development | grep Running | awk '{print $1}'</pre> ...

March 30, 2025
capability, aws, awscli

AWS create-stack aws cli capabilities and parameters

<a href="https://aws.amazon.com/blogs/devops/passing-parameters-to-cloudformation-stacks-with-the-aws-cli-and-powershell/">https://aws.amazon.com/blogs/devops/...

March 29, 2025
powershell, script, api automation

Powershell API Call with base64 encoded auth

<pre> Ignore Certificate Issues >add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolic...

March 27, 2025
Python, mail server, DebuggingServer

mock mail server in python that writes to stdout

<pre>python -m smtpd -n -c DebuggingServer localhost:8025</pre> ...

March 24, 2025

boot.sh: Docker container start-up script -- explains use of 'bash exec'

<pre> !/bin/sh source venv/bin/activate flask db upgrade exec gunicorn -b :5000 --access-logfile - --error-logfile - microblog:app </pre> Note the __exec__...

March 22, 2025
aws, cloudwatch, collectd

AWS Install CloudWatch Agent on Amazon Linux2

<pre> wget https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm sudo rpm -U ./amazon-cloudwatch-agent.rpm sudo ...

March 20, 2025
aws, cloudformation, multiple accounts

AWS CloudFormation Multiple Accounts and Regions

<a href="https://aws.amazon.com/blogs/infrastructure-and-automation/multiple-account-multiple-region-aws-cloudformation/">https://aws.amazon.com/blogs/infrastr...

March 19, 2025
aws, account number, get-caller-id

AWS CLI get account id

To launch some stacks, you need the AWS account ID for each account. If you don’t know the account IDs, you can get them from the AWS CLI by using the sts ge...

March 18, 2025
spotify, ubuntu, snap

Location of Spotify prefs file on Ubuntu after Snap install

Spotify Prefs file location on Ubuntu <pre>/home/&lt;USER&gt;/snap/spotify/current/.config/spotify/prefs</pre> Set app.window.position.saved value to f...

March 13, 2025
aws cli, aws iam, mfa

AWS CLI - setup iam mfa with cli

Use AWS CLI to setup virtual MFA device token <pre>aws iam create-virtual-mfa-device --virtual-mfa-device-name {username} outfile /home/{username}/QRCod...

March 10, 2025
aws cli, aws iam, mfa

AWS IAM - get temporary credentials with cli

Run the&nbsp;<a href="https://docs.aws.amazon.com/cli/latest/reference/sts/get-session-token.html" target="_blank" rel="noreferrer noopener">sts get-session-to...

March 5, 2025

Powershell sendKeys to Java installer

We used this to enable sending keystrokes to a Java-based installer in Windows <pre> [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Draw...

March 2, 2025

Create launch template in AWS CLI

<pre> aws ec2 create-launch-template --launch-template-name my-template-for-auto-scaling --version-description version1 --launch-template-data file://co...

February 26, 2025

install ruby gem

<pre> gem install tzinfo -v "~&gt; 1.2" gem install tzinfo-data </pre> ...

February 23, 2025

IAM Policy for uploading docker image to ECR

<pre> { "Version": "2012-10-17","Statement": [ { "Sid": "", "Effect": "Allow","Action": [ "ecr:CreateReposit...

February 20, 2025

Windows select to end of current line

Home key sends the cursor to start of line, Shift-END selects to end of line from cursor <pre>{HOME} then +{End}</pre> ...

February 17, 2025

AWS Create Bucket with LocationConstraint

Create S3 bucket in AWS CLI with LocationConstraint <pre> aws s3api create-bucket --bucket my-bucket --region us-west-2 --create-bucket-configurat...

February 15, 2025

Powershell 2.0 get ip address (Windows 2008)

<pre>ip_address=(Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter 'IPEnabled=True').IPAddress</pre> ...

February 15, 2025

aws userdata log and start apache (aws linux/rhel)

<pre> !/bin/bash -xe exec &gt; &gt;(tee /var/log/user-data.log| logger -t user-data -s 2&gt;/dev/console) 2&gt;&amp;1 yum -y update echo "...

February 13, 2025

Powershell string check for null or empty

<pre> if([string]::IsNullOrEmpty($VERSION)){ Write-Host "No NSM Version Found" $installType='new install' } </pre> <pre> $VERSION -notmatch "\S" &gt; $null...

February 11, 2025
powershell, win32_product, windows

List installed applications in Windows

<pre> Get-CimInstance win32_product | Select-Object Name, PackageName, InstallDate | Out-GridView </pre> look in both locations for installed software <pre> ...

February 9, 2025
apt, dpkg, error

sub-process /usr/bin/dpkg returned an error code (1)

This was the help on dpkg errors when running yum updates in Windows WSL Ubuntu <pre> Options to Fix sub-process /usr/bin/dpkg returned an error code (1) s...

February 7, 2025
aws, aws-cli, awscli

AWS Canonical ID - get via command line (aws cli)

List S3 buckets with AWS CLI and get Canonical ID <pre>aws s3api list-buckets --query Owner.ID --output text</pre> ...

February 4, 2025
auth, remote, remote login

Windows Create Secure Creds

In a secure Windows environment, create a SecureString to authenticate between Windows computers <pre> $adminName = 'admin-username' $pw = 'St00p1dP@ssw0r...

February 1, 2025
linux, pgrep, processes

top -- pgrep for specific app

Make top return results for only one process <pre> top -p $(pgrep -d, "(events|sshd)") </pre> ...

January 28, 2025
bash, linux, return code

rsyslog check return code

<pre> !/bin/bash rsyslogd -N1 retCode=$? if [ "$retCode" -eq 0 ] then echo ryslogd succeeded with return code: "$retCode" else echo rsyslo...

January 26, 2025
alpine, docker, docker run

Docker Notes

Dockerfile: <pre> FROM alpine:latest RUN apk upgrade RUN apk add nginx COPY files/default.conf /etc/nginx/conf.d/default.conf RUN mkdir -p /var/www/html W...

January 24, 2025
azureDevOps, create pipelines, powershell

Powershell loop to create AzureDevOps pipelines

<pre> $pipeline_names = $("pipeline1", "pipeline2")$environment_name = 'test_environment'$branch = 'master' </pre> <pre> cd C:\\repo\directory foreach ($pipeli...

January 22, 2025

Get VersionId of Object in S3 bucket

<pre> aws s3api list-object-versions --bucket ${bucket_name} --prefix ${bucket_path}/${object_name} | jq ".Versions[].VersionId" </pre> ...

January 20, 2025

decrypt an ansible string

This will prompt for vault password <pre> ansible-vault decrypt oo-encrypted.txt --output=/dev/stderr &gt; /dev/null </pre> ...

January 18, 2025

ansible install on ubuntu

Add ppa repo for ansible install on ubuntu <pre> sudo apt update sudo apt install software-properties-common sudo apt-add-repository --yes --update ppa:ans...

January 16, 2025

Ansible encrypt string

Encrypt string for use in ansible vault <pre> echo -n ${pwdstring} | ansible-vault encrypt_string --vault-password-file ${pwdFile} --stdin-name Application...

January 15, 2025

Linux command line Password Generator

use apg to create passwords on the CLI <pre> alias mkpsswd='apg -s -a 1 -m 32 -n 4' </pre> apg command line help <pre> apg [-a algorithm] [-M m...

January 11, 2025
classes, methods, OOP

OOP Class Planning

Before you decide to define a new class, there are a few things to keep in mind, and questions you should ask yourself: <ul> <li><strong>Figure out your data...

January 7, 2025

Continuous Delivery vs Continuous Deployment

<ul> <li>Continuous <strong>Delivery</strong> does <strong>not</strong> mean every commit is deployed to <strong>production</strong> after passing automated te...

January 4, 2025

What is Continuous Integration and Continuous Delivery/Deployment?

<strong>Continuous Integration</strong> <ul> <li>Developers <strong>regularly</strong> merge code changes into a central repository <ul> <li>this <strong>tri...

December 31, 2024

Policy and Standards Automation (2)

<strong>AWS Secrets Manager</strong> <strong>Troubleshoot Cross-Account Secret Sharing</strong> <ul> <li>When Sharing credentials cross-account <ul> <li>cr...

December 28, 2024

AWS Monitoring and Logging

<strong>AWS Lambda Monitoring</strong> <ul> <li>Lambda does not provide a built-in metric for memory usage</li> <li>you can set up a CloudWatch metric filter...

December 26, 2024

High Availability, Fault Tolerance and Disaster Recovery

<strong>AWS Solution to migrate data from relational database to DynamoDB</strong> <ul> <li>use Amazon DMS to migrate data to a DynamoDB table</li> <li>creat...

December 23, 2024

Incident and Event Response

<strong>Amazon CloudSearch vs ElasticSearch</strong> <ul> <li><strong>CloudSearch</strong> is a <strong>managed</strong> service <ul> <li><strong>no</strong>...

December 22, 2024

Software Development Life Cycle Automation

<strong>Using CodePipeline Build and Deploy .Net Application</strong> <ul> <li>To build a .Net application from source, use an <strong>MSBuild</strong> Windo...

December 17, 2024

Configuration Management and Infrastructure as Code

<strong>CloudFormation Template Errors</strong> <ul> <li>Invalid Value or Unsupported Resource Property <ul> <li>EITHER Parameter naming mistake</li> <li>OR ...

December 15, 2024

AWS Policies and Standards Automation

<strong>AWS Config</strong> <ul> <li><strong>Error</strong>: "We are unable to complete the request at this time. Please contact AWS Support." <ul> <li>eithe...

December 14, 2024

Kinesis Data Streams Terminology

<strong>Kinesis Data Stream</strong> <ul> <li>A Kinesis data stream is set of shards. Each shard is a sequence of data records. <ul> <li>each data record in ...

December 13, 2024

Writing Data to Amazon Kinesis Data Streams

<ul> <li>A producer is an application that writes data to Amazon Kinesis Data Streams</li> <li>An Amazon Kinesis Data Streams producer is an application that p...

December 9, 2024

Infrastructure as Code - Reusable Templates

<strong>Reuseable Templates</strong> <ul> <li><strong>Nested Stacks</strong> and <strong>Cross-Stack References </strong>can be used to modularize stack temp...

December 9, 2024

Infrastructure as Code on AWS

<strong>Introduction</strong> <ul> <li>Cloud computing takes advantage of virtualization to enabled on-demand provisioning of compute, network and storage</l...

December 7, 2024

Using AWS to Create Microservice Architectures

<strong>User Interfaces</strong> <ul> <li>User Interfaces for microservices are typically Javascript</li> <li>Javascript can be chatty and cause latency</li>...

December 6, 2024

Using Data Management tools to redo transactions

<ul> <li>Microservices need a way to synchronize their data and roll back state, where possible.</li> <li>AWS Step functions allow implementation of a Saga Exe...

December 5, 2024

Distributed Data Management

<ul> <li>Each microservice should have its own data persistence layer</li> <li>distributed microservice architectures trade <strong>consistency</strong> for <s...

December 4, 2024

AWS App Mesh

<ul> <li>Provides application level networking</li> <li>allows service intercommunication across multiple types of infrastructure</li> <li>standardizes how ser...

December 2, 2024

Service Meshes are Transparent

application developers don't need to modify code to make their applications function in a service mesh ...

November 29, 2024

Service Mesh - data plane + control plane

<ul> <li><strong>data plane</strong> is a set of intelligent proxies</li> <li>deployed with the application code</li> <li>as a special <strong>sidecar</strong>...

November 26, 2024
microservices, service discovery, service mesh

Implementing Microservices on AWS

<strong>Service Meshes</strong> <ul> <li>microservice applications can be made up of <strong>thousands</strong> of services</li> <li>most <strong>complex</st...

November 24, 2024

Welcome to Jekyll!

You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different way...

November 24, 2024

Lousy Conversation

I'm a terrible conversationalist, I lose track of my train of thought in the middle of talking, especially when I start to feel passionate about a subject, and...

November 20, 2024
art, classics, literature

The Lost Generation

I have a BA in French Literature, and spent a couple years in grad school working on a Master's degree in that subject. I loved interpretation of lit, finding ...

November 17, 2024
existential, misery, transcendant

Misery, but not miserable

Miserable can mean physical poverty, to the point of hunger and despair. It can also mean emotional unhappiness totally unrelated to your physical state. Mi...

November 16, 2024
life, school, training

Are you working in the wrong field?

Nobody should expect to be paid for their passion, but your greatest satisfaction, your greatest benefit to your community is where you can actually contribute...

November 11, 2024

Volatile People and Me

See the opposition there, in my title? I may be volatile, too, a little emotional, but the emotions don't show like some other folks. That's why I fit in with e...

November 8, 2024

What's it mean to be a new manager?

So, suddenly, I'm "in a manager role". Trying to figure out what that means, or even what I'm supposed to do in that role. It hasn't been announced to anybody y...

November 8, 2024

I hate Phone Interviews

Got yet another phone interview scheduled, it's a lousy way to find new employees, so hard to communicate. I feel sorry for the candidate, half the time we brin...

November 5, 2024
Apple, Buble, frustration

iTunes for Windows Blows!

Spent a couple hours trying to update my wife's 3gs, couldn't get one playlist to synch to the phone. Was a new Michael Buble album, not new to the world, 2007,...

November 3, 2024

It was a Drive-By Fruiting!

One of those days at work, lots of meetings, some "drive-by" conversations. Not really satisfying, but tiring. I miss the opportunity to do real thinking, plann...

October 31, 2024

Short form posts

Interesting that Amazon now sells short books, some under a hundred pages. I wonder if that's a good thing? Is there something special about the 300 to 500 page...

October 28, 2024
linux

list of all listening TCP ports with lsof

<pre> To get a list of all listening TCP ports with lsof type: sudo lsof -nP -iTCP -sTCP:LISTEN Copy The options used are as follows: -n - Do not convert por...

October 27, 2024
git

Git Rebase to Squash Commits

you can squash multiple commits on a local branch into a single commit using the git rebase command with the -i or --interactive option. <h3>Steps:</h3> First...

October 25, 2024
aws

AWS SystemsManager CLI Examples

Ubuntu install only security updates <pre> apt-get install -y --only-upgrade $( apt-get --just-print upgrade | awk 'tolower($4) ~ /.security./ || tolower(...

October 21, 2024
aws

AWS SystemsManager CLI Examples

Loop over many users with paginate <pre> self.iam_client = self.session.client("iam") paginator = self.iam_client.get_paginator('list_users') fo...

October 18, 2024
aws

Python Loop over List and swap elements

Terraform module aws_lb_listener_rule oidc the module accepts a variable called lb_listener_rules which is a list of objects containing the rule name, typ...

October 15, 2024
aws

Jenkinsfile using AWS assumed-role

Jenkinsfile using AWS assumed role to deploy a docker container <pre> stage('Deploy - Prod') { when { branch 'main' ...

October 10, 2024
aws

Python Loop over List and swap elements

Swap elements in a list of any size assign length variable with the current list's length for convenience for loop runs through body length // 2 tim...

October 7, 2024
python

Python Bubble Sort

Bubble Sort a List of Numbers Check adjacent elements and swap them if right element < left element <pre> my_list = [8, 10, 6, 2, 4] list to sort swap...

October 7, 2024
aws

AWS SystemsManager CLI Examples

Run yum update against specific Patch Group Tag <pre> PATCH_GROUP=development aws ssm send-command --document-name "eXp-YumUpdateSecurityOnly" --document-ve...

October 3, 2024

AWS CodeBuild Sample buildspec.yaml

CodeBuild buildspec.yaml example <pre> version: 0.2 phases: pre_build: commands: - echo Logging in to Amazon ECR... - aws --version ...

October 2, 2024
aws, jq, json

Use jq to parse AWS CLI

list cidrs for VPC's accross accounts <pre> for acct in acct1 acct2 acct3 acct4 acct5 acct6; do aws ec2 describe-vpcs --profile ${acct} --region us-east-1 |...

September 27, 2024

AWS EC2 Userdata to install docker and set systemd config

UserData install Docker/systemctl config <pre> !/bin/bash -xe exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 echo "...

September 23, 2024

Symlink log files to stdout and stderr

Symlink logfile writes to stdout and stderr <pre> ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log </pre> <pre...

September 22, 2024

Python function to tag aws instances based on AMI name

<pre> import json import boto3 environment = "dev" instance_list = ["i-05e7e29b0d2d2a58c"] region_name="us-west-2" def lambda_handler(event, context): ses...

September 21, 2024

Python fstring mini-language specification

Format Specification Mini-Language <pre> The general form of a standard format specifier is: format_spec ::= [[fill]align][sign][][0][width][grouping...

September 18, 2024

Python get LastModified date

<pre> for page in page_iterator['Contents']: if page['LastModified'] <= utc.localize(datetime.datetime.now()) - datetime.timedelta(days=1): print('Ob...

September 14, 2024

Python aws lambda cross account tagging

Format Specification Mini-Language python import json import boto3 from boto3.session import Session acct_ids = { "qa": "123456789", "productio...

September 12, 2024

Python function to tag aws instances based on AMI name

sample jenkinsfile to run script from git repo groovy pipeline { parameters { string defaultValue: '1234567890', name: 'account-number' }...

September 11, 2024

Create Docker Secret from openssl rand

write secret to stdout <pre> openssl rand -base64 20 | docker secret create my_secret_data - </pre> write secret to file <pre> openssl rand -base64 20 >...

September 7, 2024

2022-09-04-jenkins-shared-libraries

run shared libraries from github https://github.com/darinpope/github-api-global-lib/blob/main/vars/helloWorld.groovy <pre> @Library("shared-library") _ pi...

September 4, 2024

try and catch boto3 client exceptions

<pre> https://stackoverflow.com/questions/43354059/catching-boto3-clienterror-subclass If you're using the client you can catch the exceptions like this: imp...

September 1, 2024
aws, aws-cli, efs

AWS CLI Filters and Queries

delete aws backup recovery points, so you can delete the vault <pre> !/bin/bash set -e echo "Enter the name of the vault where all backups should be de...

August 31, 2024

2022-09-02-reconnaissance-tools

get info about domains/websites <pre> There are hundreds of tools relevant to security assessments, network reconnaissance, vulnerability scanning, and pene...

August 28, 2024

2022-09-02-password-crackers

PASSWORD CRACKERS Although there are some Windows tools, including the infamous Cain and L0phtcrack (l0phtcrack.com) tools, most password crackers run...

August 25, 2024

AWS CLI describe-images from describe-instances

<pre>aws ec2 describe-images --owner amazon --image-id $(aws ec2 describe-instances --instance-ids i-05e7e29b0d2d2a58c --query "Reservations[0].Instances[0].Im...

August 22, 2024

Ansible playbooks and templates

ansible playbook to replace text in config file yaml --- - hosts: labservers become: yes handlers: - name: restart apache service: name="...

August 18, 2024

Ansible playbooks and templates - part two

Use a variable in a playbook {% raw %} yaml --- - hosts: localhost vars: inv_file: /home/ansible/vars/inv.txt tasks: - name: file: pa...

August 14, 2024

Boom Load Tester Tips

Run Boom against localhost passing a custom header <b> 30 concurrent requests, total requests of 3000 <pre> boom http://localhost/ --header Host:test-webs...

August 12, 2024

MySql Tips

reset mysql root password <pre> 1. Stop Service 2. mysqld_safe --skip-grant-tables & mysql UPDATE mysql.user SET Password=PASSWORD('the-pw') WHERE U...

August 9, 2024

Nginx Tips

Create Self-Signed SSL Certificate for Nginx <pre> mkdir /etc/nginx/ssl openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ -keyout /etc/nginx/ssl...

August 5, 2024

SELinux Tips

Updating SELinux Permissions for Nginx <b>ngx_modsecurity_module.so: failed to map segment from shared object: Permission Denied</b> <p>After installing a ...

August 2, 2024

Vim Tips

Open a second file within same window <pre> -ESC- :e $filename </pre> Switch __back__ to previous buffer ('file') <pre> -ESC- :bn </pre> ...

July 28, 2024

Jenkins Tips

Backup jobs directories with subdirectories but not builds directories <pre> tar zcvf jenkins-backup-jobs.tar.gz --exclude "builds" /var/tmp/jenkins/jobs/...

July 27, 2024

Git Tips

Git's HEAD pointer For me, the key to understanding how git works came when I grasped that the HEAD notation is similar to a window that can slide over a se...

July 24, 2024
aws, boto3, python

Get Size of S3 Buckets with Boto3

Get Size of S3 Buckets with Boto3 https://www.slsmk.com/getting-the-size-of-an-s3-bucket-using-boto3-for-aws/ <pre> import boto3 import datetime now = dat...

July 20, 2024

Curl Tips

Send 'Host' header to localhost with a custom value <pre> curl --header "Host: example.com localhost" </pre> ...

July 16, 2024

AWS Patch Management

AWS Patch Management with SSM <pre> Use Patch Manager to patch different SSM-supported OSes. Create a patch baseline and see how it can help maintain and...

July 12, 2024
aws, cli, vpc

Use AWS CLI to build a VPC with a Bastion

Create VPC <pre>aws ec2 create-vpc --cidr-block $VPC_CIDR --tag-specifications 'ResourceType=vpc,Tags=[{Key="Name",Value="TOOLS_VPC"}]'</pre> Create ...

July 10, 2024
error, eventlistener, null

Resolve JavaScript error 'cannot add EventListener of null'

this was causing an error 'cannot add EventListener of null', until I moved the script tag in index.html to after the element I was listening for <pre> doc...

July 6, 2024
python, json, dict

Combine Two Json API responses into a dict of lists

Take json response for 'apps' and combine it with json response for 'branches' Makes dictionary of app names, each with a list of app branches in a li...

July 3, 2024
aws, ebs, ec2

AWS CLI Filters and Queries

allow bucket owner to read objects written by other accounts <pre> How to know if your disk is EXT4, XFS, etc? Remember, in Linux, everything is a ...

July 1, 2024
aws, awscli, s3

AWS CLI Filters and Queries

allow bucket owner to read objects written by other accounts <pre> s3client = session.client('s3') s3client.put_object(Key=iam_username, ...

June 30, 2024
aws, awscli, queries

AWS CLI Filters and Queries

list load balancer attributes for each LoadBalancerArn <pre> for i in $( aws elbv2 describe-load-balancers --region ${aws_region} --profile ${profile_name}...

June 28, 2024

Python Method Resolution Order .__mro__

Python Method Resolution Order When dealing with class inheritance, it can be tricky to understand which objects are inherited in which order. Using <cla...

June 26, 2024

Git Tips

Enable Default encryption for new EBS volumes, run once per account <pre> aws ec2 enable-ebs-encryption-by-default --region us-east-1 { "EbsEncryptionBy...

June 24, 2024
aws, ssh-keygen, openssl

Create AWS pem file with CLI

use openssl to create a pem file to ssh into an aws instance <pre>ssh-keygen -t rsa -b 4096 -m PEM -f vm_base mv vm_base vm_base.pem</pre> ...

June 23, 2024
aws, awscli, describe-images

AWS CLI get latest AMI

Using SSM: Amazon Linux2 <pre> aws ssm get-parameters --names /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 --region us-east-2 </pr...

June 21, 2024
bash, file rename

2021-05-24-bash-rename-file-extension

<pre> Rename all .html to .markdown for f in .html; do mv -- "$f" "${f%.html}.markdown" done </pre> <br> <pre>-- marks the end of the option list.</p...

June 18, 2024

2021-05-21-remove-config-recorder

AWS Control Tower sets up a number of required rules in each account’s Config service to protect the integrity of the configuration checks and logs. Adding an...

June 14, 2024

2021-05-12-macos-install-ebcli

1. install Xcode 2. install Xcode commandline tools 3. git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git 4. ./aws-elastic-beanstalk-cli-setu...

June 14, 2024

2021-05-07-aws-sam-pathlib-exist-ok

Using python3.8 with AWS SAM to create a lambda from a script that runs without error before applying changes for SAM. Using pathlib to check if a path exists ...

June 10, 2024

AWS CLI run-instances with keyname and region

<pre>aws ec2 run-instances \ --image-id $(aws ssm get-parameters \ --names /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 \ ...

June 8, 2024

2021-05-02-terragrunt-advantages

<h4>Terraform weaknesses that can be helped with Terragrunt:</h4> <strong>the lack of Terraform module dependencies:</strong> it is not possible t...

June 6, 2024

2021-04-22-terragrunt-notes

you can define your backend configuration just once in the root terragrunt.hcl file <pre> stage/terragrunt.hcl remote_state { backend = "s3"...

June 3, 2024

Kubernetes: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress

troubleshoot error: <pre>UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress</pre> (the release that was in progress didn't show wh...

June 2, 2024

Windows java installer research

Researching how to Automate a Java-based installer in Windows <strong>extract .msi from .exe</strong> https://www.codetwo.com/kb/msi-from-exe/ https://...

© 2026 David Hull. Built with Next.js & Glassmorphism.