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 / system_design.md
Last active March 18, 2024 09:52
System Design Guide

Loftwah's Ultimate Guide to System Design: A Comprehensive Analysis of Linkarooie

Introduction to System Design

System design is a crucial aspect of software development that forms the backbone of building robust, scalable, and maintainable systems. It involves understanding the system's requirements, defining clear specifications, and creating a detailed blueprint that guides the development process. A well-designed system architecture ensures that the system can handle growth, adapt to changing needs, and deliver a seamless user experience.

In this guide, we'll embark on a deep dive into the world of system design, using Linkarooie, an innovative platform for managing and synchronizing online presence across popular platforms like Twitter/X, Instagram, and Facebook, as our case study. We'll explore the functional and non-functional requirements, system architecture, components, and various considerations that go into designing a complex system like Linkarooie.

Linkarooie: Revolutionizing Online

@loftwah
loftwah / landing_page.md
Last active March 11, 2024 01:56
Landing pages

Gay Fish Landing Page Creation Guide

Introduction

This guide is designed to assist the Gay Fish team in developing a cohesive, impactful landing page that showcases its innovative product suite, drawing inspiration from other well-crafted landing pages.

Objective

Create a landing page that encapsulates the essence of Gay Fish's brand while effectively promoting its key products: ai.fish.lgbt (AI chatbot), studio.fish.lgbt (graphics studio), feetchair.fish.lgbt (feature flag service), and lgbt.fish (URL shortener).

@loftwah
loftwah / url_shortener.md
Last active March 9, 2024 23:58
URL Shortener Ruby on Rails

URL Shortener Service Design

This comprehensive design document outlines a URL shortener service using Ruby on Rails, detailing each component's role within the system, infrastructure setup on AWS, CI/CD processes with GitHub Actions, and Terraform for infrastructure management. The design aims to ensure scalability, security, and maintainability.

System Architecture Overview

The system is divided into several core components, each designed to handle specific aspects of the service:

  • Frontend: A web interface for user interaction, built with Rails views and Tailwind CSS for styling.
  • Backend: Rails application handling business logic, data processing, and server-client communication.
@loftwah
loftwah / architecture.md
Last active March 9, 2024 09:58
Echosight Architecture

Echosight Application Deployment Architecture

This document outlines a detailed deployment architecture for the Echosight Rails application, utilizing AWS for hosting and Cloudflare for DNS and CDN functionalities. The deployment is automated through GitHub Actions, triggered by merges to the master branch, ensuring an efficient CI/CD pipeline.

Architecture Overview

graph LR
    subgraph Cloudflare
 DNS(DNS Management for app.echosight.io)
@loftwah
loftwah / network.md
Last active March 18, 2024 12:48
Rails application network

The Symphony of Connectivity: A Deep Dive Into a Rails Application's Network Journey

Explore the nuanced journey of data as it traverses through the layers of the OSI model, beginning with a user's action in a Ruby on Rails application, delving deep into the orchestration of network interactions, and culminating in the physical transmissions facilitated by dark fiber.

Scenario Overview

Imagine a Ruby on Rails application, a sophisticated platform for users to interact with, hosted in a state-of-the-art data center. This data center is interconnected with the wider internet through dark fiber, providing a direct, high-speed, and low-latency channel, ensuring swift and reliable data transmission. The application, backed by a robust Postgres database, serves a multitude of users, processing and responding to their requests in real-time.

1. Physical Layer: The Intricate Tapestry of Connectivity

@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.