Skip to content

Instantly share code, notes, and snippets.

View loftwah's full-sized avatar
💭
“Any sufficiently advanced technology is equivalent to magic.”

Dean Lofts loftwah

💭
“Any sufficiently advanced technology is equivalent to magic.”
View GitHub Profile
@loftwah
loftwah / kafka.md
Last active March 6, 2024 01:28
kafka-training

Real-Time Student Activity Monitoring in a Rails Application Using Amazon MSK

Overview

This detailed architecture leverages Amazon Managed Streaming for Apache Kafka (Amazon MSK) to enable a Rails application to monitor student activities in real-time effectively. The system is designed to handle streaming data, offering high throughput and durability to enhance educational experiences through real-time analytics and responsive interaction.

Architecture Details

graph TD
@loftwah
loftwah / pool_example.go
Created March 2, 2024 13:35
pool example
package main
import (
"fmt"
"sync"
"github.com/charmbracelet/lipgloss"
)
type Object struct {
@loftwah
loftwah / shareholder.md
Last active March 1, 2024 05:39
shareholder-agreement

Gay Fish Pty Ltd Shareholder Agreement

Shareholder Agreement of Gay Fish Pty Ltd

This Shareholder Agreement is made effective as of [Insert Date], by and between the shareholders of Gay Fish Pty Ltd, a company registered in Australia with the Australian Securities and Investments Commission (ASIC).

1. Parties:

  • Dean Lofts, [Insert Address], holding 49% of the shares.
  • Luna Tyler, [Insert Address], holding 51% of the shares.
@loftwah
loftwah / diagrams.md
Last active February 28, 2024 07:56
Diagram

Diagrams

Three regions with the same architecture, each with an AWS Load Balancer, EC2 instances in an Auto Scaling Group, RDS Postgres DB, Elasticache Redis, Elasticache Memcached, S3, SQS, SNS, SES.

graph TD
    subgraph ap-southeast-2 [ap-southeast-2 Region]
        ALB_A[(AWS Load Balancer)]
        EC2_ASG_A[EC2 Instances - ASG]
        RDS_PG_A[RDS - Postgres DB]
@loftwah
loftwah / socialdata.md
Created February 27, 2024 08:59
Echosight and SocialData.tools: Enhancing Analytics and Supporting Business Pivot

Echosight and SocialData.tools: Enhancing Analytics and Supporting Business Pivot

SocialData

Integrating SocialData.tools offers a strategic advantage for Echosight, enhancing its current platform and supporting a pivot towards a business-centric model. Here's a comprehensive overview:

Enhancing Echosight's Current Model with SocialData.tools

  • Cost Reduction: Leveraging affordable Twitter/X data extraction from SocialData.tools reduces operational costs, potentially making Echosight more sustainable and accessible for creators.
  • Deeper Analytics: Access to a wider dataset through SocialData.tools enables Echosight to offer more detailed insights, increasing value and appeal for creators.
@loftwah
loftwah / pitch_deck.md
Last active February 24, 2024 02:25
SOC 2 Compliance Solutions

Complisight Pitch Deck

Transforming SOC 2 Compliance

Streamlining Your Path to Compliance


The Compliance Challenge

@loftwah
loftwah / circletoss.md
Last active February 22, 2024 09:39
Circle Toss

Twitter/X Circle Toss: The Ultimate Fill-the-Blank Frenzy

Dive into the world of Twitter/X Circle Toss, an electrifying game that brings your social circle to life in a series of engaging, fill-the-blank challenges. With every toss of the ring, unlock a chance to craft hilarious, witty, and downright outrageous tweets based on the profiles you hit. It's a game of skill, creativity, and laughter, where your aim sets the stage for epic moments of fun.

How the Magic Happens

Setting Up Your Game Board

  1. Connect with Twitter/X: Log in to sync your Twitter/X circle and watch as their profiles populate your personalized game board.
  2. The Board Comes Alive: Each profile in your circle becomes a vibrant target, waiting for your expert aim and creative touch.
@loftwah
loftwah / s3.md
Last active February 22, 2024 00:21
aws-sso-s3

End-to-End Guide on Managing AWS S3 Buckets with AWS CLI and SSO

This guide provides a comprehensive overview of configuring and using AWS CLI with Single Sign-On (SSO), managing multiple AWS accounts, and organising S3 bucket information efficiently.

Setting Up AWS CLI with SSO

Prerequisites

  • AWS CLI version 2 installed on your system.
  • SSO configured in your AWS environment.
@loftwah
loftwah / sso.md
Last active February 21, 2024 22:38
aws-sso

Configuring AWS CLI for SSO

This guide provides a step-by-step process to configure AWS CLI for Single Sign-On (SSO) using a placeholder URL. Ensure you have the correct version of AWS CLI (version 2) installed.

Step 1: Run AWS Configure SSO

Start by initiating the SSO configuration in your terminal:

aws configure sso
@loftwah
loftwah / waf.md
Last active April 18, 2024 06:21
WAF

Ultimate Web Application Firewall (WAF) Design with Caddy

This design outlines an advanced Web Application Firewall (WAF) system using Caddy as the core reverse proxy and security gateway. The system integrates a comprehensive set of features aimed at providing top-tier security, performance, and manageability.

System Overview

The ultimate WAF design incorporates several layers of security and operational features, including:

  • Threat Detection and Mitigation: Advanced algorithms and patterns for detecting and mitigating a wide range of threats.
  • Performance Optimization: Features that ensure high availability and optimal performance.