Skip to content

Instantly share code, notes, and snippets.

View walmsles's full-sized avatar

Michael Walmsley walmsles

View GitHub Profile
@walmsles
walmsles / docker_profile.sh
Created January 20, 2017 00:53
Docker shell alias commands .... since I am lazy
# Docker environment
function dbash()
{
docker exec -it $1 bash
}
alias dockbuild='docker build . -f $1 -t $2'
alias dex='docker exec -it '
alias dps='docker ps '
@walmsles
walmsles / Serverless Aurora RDS Cluster
Last active August 9, 2018 01:37
Serverless Aurora RDS Setup (Clustered)
Cluster:
Type: AWS::RDS::DBCluster
Properties:
DatabaseName: db_name
Engine: aurora
MasterUsername: user
MasterUserPassword: password
Database:
Type: AWS::RDS::DBInstance
Properties:
@walmsles
walmsles / typescript-styleguide.md
Created April 16, 2025 07:24
Typescript Styleguide (geenrtaed from eslint configuration)

TypeScript Coding Style Guide

Core Rules

Type Safety

Always use proper types instead of 'any'.

// ❌ Bad
function process(data: any) { return data.value * 2; }
// ✅ Good
#!/bin/bash
set -e
# Script to download, unzip and install CodeWhisperer Q CLI tool
echo "Starting installation of Q CLI tool..."
# Create temporary directory
TEMP_DIR=$(mktemp -d)
echo "Created temporary directory: $TEMP_DIR"