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 / astro.md
Last active March 20, 2025 10:04
Astro Setup Guide

Loftwah's Astro Guide

G'day mates, I'm Loftwah, and here's my guide to setting up an Astro 5.x project using TypeScript, Tailwind 4, Cloudflare Pages with Functions, and Cloudflare D1 integration. I've also added a test CRUD (Create, Read, Update, Delete) example to show you how to handle data with D1.


Step 1: Set Up Astro 5.x Project

1. Clone the Template Repository (Optional)

@loftwah
loftwah / linkarooie.md
Last active March 16, 2025 07:35
Linkarooie V4

Linkarooie V4 - Design Document

1. Project Overview

Linkarooie V4 is a modern Linktree alternative built with Astro and deployed on Cloudflare Pages. It transforms the previous static site (V3) into a full-featured web application with user authentication, profile management, analytics tracking, and more.

Core Functionality

  • User registration and authentication (email/password + 2FA)
  • Profile customization (bio, avatar, banner, social links)
@loftwah
loftwah / report.md
Last active March 14, 2025 00:01
music-film-report

AI Disruption and Control Shifts: A Comparative Analysis of Artificial Intelligence Impact on Music and Film Industries

Executive Summary

This comprehensive report examines the disruptive impact of Artificial Intelligence (AI) on the music and film industries, with a focus on how AI is transforming content creation processes and shifting control dynamics within these sectors. Through systematic analysis of current literature and empirical evidence, this research investigates the implications for creative professionals, copyright frameworks, economic models, and consumer acceptance.

Key findings include:

  • AI is fundamentally transforming content creation in both industries, with more immediate replacement potential in music due to its individualistic nature, while film faces complex collaborative restructuring.
  • Legal frameworks are inadequate to address emerging challenges of AI-generated content, with significant variations in how jurisdictions handle ownership and attribution. The European Union'
@loftwah
loftwah / aws.md
Last active March 13, 2025 01:19
AWS-services-how-they-link

Comprehensive Guide to Building a Scalable AI-Driven Application on AWS with LangChain

This guide provides a beginner-friendly, version-agnostic resource for building a scalable, AI-driven application on AWS, incorporating LangChain for advanced language model capabilities. It covers essential AWS services, third-party tools, and integration strategies, complete with a block diagram to illustrate how everything fits together. Citations are included for further exploration.


Introduction

This resource helps you create a modern application using AWS services like ECS, CodeBuild, CodePipeline, Bedrock, RDS, ElastiCache, S3, and IAM, alongside third-party tools such as FastAPI, Streamlit, OpenAI, Anthropic Claude, and LangChain. Whether you're deploying customer-facing APIs, internal dashboards, or AI-powered workflows, this guide offers a step-by-step approach. It’s designed to be comprehensive yet accessible, with practical examples and a focus on scalability and security.

@loftwah
loftwah / assets.md
Last active March 6, 2025 05:35
number-8

Number 8 - Asset Requirements for Vite Project

Directory Structure

number-8/
├── public/             # Static assets that bypass Vite processing
│   ├── favicon.ico     # Site favicon
│   └── manifest.json   # PWA manifest
├── src/
@loftwah
loftwah / optimystic.md
Last active February 28, 2025 13:31
protektahz

OptiMystic: The Perth-Born Hip Hop Titan Who Took on the World

Matthew Cambell, known to the world as OptiMystic, stands as one of Australia’s most relentless and visionary hip hop artists. From the sun-drenched streets of Perth, Western Australia, he’s spent over 15 years forging a career that blends the raw, unfiltered grit of ‘90s New York boom-bap with a philosophical optimism that’s uniquely his own. Since bursting onto the scene in 2009, OptiMystic has built an empire through his independent label, Stay Independant, collaborating with giants like Method Man, Onyx, Canibus, and Killah Priest while remaining fiercely rooted in his hometown’s underground ethos. His journey, from sweaty local gigs to shooting music videos in Times Square, has made him a bridge between Australian hip hop and the global stage, a testament to his passion, which he calls “oxygen to breathe, hip hop to live.” As of February 28, 2025, he’s still dropping heat, cementing a legacy that resonates far beyond Perth’s shores.

This

@loftwah
loftwah / annex.md
Last active February 28, 2025 11:54
traefik-jitsi

Annex: TURN Server Configuration for Jitsi Meet Stable-10008

This annex provides a comprehensive guide to configuring and troubleshooting a TURN server for Jitsi Meet stable-10008 when self-hosting behind Carrier-Grade NAT (CGNAT) using Localtunnel. It ensures media traffic (audio/video) works reliably despite network restrictions, aligning with the Docker-based setup in the main walkthrough.


Why TURN is Necessary

  • CGNAT Constraints: Your mobile hotspot uses CGNAT, meaning your server lacks a public IP for direct inbound connections. Jitsi’s Videobridge (JVB) relies on UDP port 10000 for media, which CGNAT blocks.
  • Localtunnel Limitation: Localtunnel tunnels TCP traffic (e.g., HTTP on port 8000), but JVB’s UDP traffic can’t be tunneled this way. A TURN server relays media over TCP or TLS, bridging this gap.
@loftwah
loftwah / slack.md
Created February 24, 2025 23:56
slack-webhooks

Below is a complete, copy‑paste-ready Slack webhook cheatsheet with detailed descriptions for each variation—no extra meta commentary from our conversation. All examples use "Loftwah Comms" as the sender and your specified icon URL.

Ultimate Slack Webhook Cheatsheet

This document provides detailed examples for sending messages via Slack webhooks. It covers plain text messages as well as custom messages with bot name, icon, emoji, and structured formatting using Block Kit.


1. Basic Slack Webhook (Plain Message, No Customisation)

This method sends a simple text message with basic Markdown formatting. It uses Slack’s default webhook settings.

@loftwah
loftwah / annex.md
Last active February 8, 2025 03:06
ict-salaries

Annex: Commentary on the Comprehensive Overview of Current Australian ICT Salary Data

This commentary is intended to serve as a companion document to the main ICT salary overview. It provides insights, context, and reflections on the data and structure, drawing on examples from the tech industry and a personal perspective (using Loftwah as an illustrative example).


Table of Contents

  1. Introduction
  2. Government Sector Pay Scales
@loftwah
loftwah / cheatsheet.md
Last active February 4, 2025 22:59
LLM Data Structures

Ultimate End-to-End Cheatsheet for Fine-Tuning LLM Data Structures

This cheatsheet covers various data structures used for fine-tuning large language models (LLMs). It goes far beyond basic Q&A, providing multiple examples to help you visualise how each format can be applied in both DevOps (AWS/Terraform) and educational communication (Skippy) contexts.


1. Question-Answer Pairs (QA)

Example 1 (AWS / DevOps):