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 / 00.md
Last active July 14, 2024 01:10
Rails and DevOps with Docker for Pirates

Linux for Pirates! Ruby on Whales

This version will no longer be updated. It has been moved here.

Introduction

Ahoy, mateys! Welcome aboard the grand adventure that be "Linux for Pirates! Ruby on Whales" This here tome be yer trusty map through the treacherous seas of Ruby on Rails, Docker, and the mystical arts of DevOps. Whether ye be a scallywag just learning the ropes or a seasoned buccaneer, this book be the compass to guide ye through the stormy waters of modern application deployment.

What Ye Will Learn:

@loftwah
loftwah / tracking.md
Last active July 5, 2024 04:40
Tracking Twitter/X Ads in a Rails Application with Ahoy Matey

Tracking Twitter/X Ads in a Rails Application with Ahoy Matey

This guide will walk you through setting up tracking for your Twitter/X ads using Ahoy Matey in a Rails application.

Step-by-Step Guide

Step 1: Add UTM Parameters to Your Ad Links

What are UTM parameters?

@loftwah
loftwah / echosight.md
Last active June 27, 2024 03:05
Traction and Bullseye Framework

Traction

  • Public Page Views: Track the number of views on users’ public pages.
  • Time Spent on Pages: Measure how long visitors stay on the public pages.
  • Engagement on Public Pages: Track actions like clicks on links, shares, and interactions with charts.
  • Referral Traffic: Monitor where your traffic is coming from (e.g., blogs, social media).
  • Conversion Rates: Measure the percentage of visitors who sign up after viewing an ad or landing page.
  • Customer Satisfaction: Collect feedback through surveys to gauge user satisfaction and areas for improvement.

We should note that our users may not actively use the platform. For example I am a customer with Typefully and I love Typefully's product but they rarely see me actively on there as a user. It works and does the thing in the background. They could track me by using things like how many people are viewing my public page, what they are doing and how long they are there for.

@loftwah
loftwah / docker.md
Last active June 21, 2024 12:27
Docker Ruby in 2024

Docker and Dockerfile Guide for Ruby on Rails with NodeJS and Yarn

Step-by-Step Instructions

1. Setting Up the Dockerfile

The Dockerfile is the cornerstone of your Docker setup. It defines the environment and steps needed to create a Docker image for your application.

Dockerfile for Ruby on Rails with NodeJS and Yarn

@loftwah
loftwah / guide.md
Last active June 13, 2024 11:10
HTML Landing Page Guide

Creating a Landing Page with HTML and Tailwind CSS in VS Code

This guide will walk you through setting up and creating a basic landing page using HTML and Tailwind CSS with VS Code on Windows. We'll use the Tailwind CSS CDN for quick setup but note that for production, especially in a larger application, you'd want to integrate Tailwind through a build process.

Step-by-Step Instructions

1. Setting Up VS Code

Install Visual Studio Code (VS Code)

@loftwah
loftwah / echosight.md
Last active June 9, 2024 00:56
Echosight Marketing

Promoting Echosight: Strategies for Effective Outreach

Overview

This document outlines a comprehensive strategy for promoting a new Twitter/X analytics tool called Echosight, targeted at influencers and, eventually, marketing agencies. The strategy leverages a combination of content creation, influencer engagement, community building, and the use of automation tools. The goal is to naturally get the product in front of potential users while keeping marketing costs low, making the most of available programming skills and existing SaaS products.

Background

Business Context

@loftwah
loftwah / piracy.md
Last active May 30, 2024 02:06
piracy_good

Argument: Why and How Piracy Can Be Beneficial in Art and Software

Piracy is often viewed as a harmful practice that undermines the efforts and profits of creators and developers. However, there is a more nuanced perspective that suggests piracy can have positive effects on the dissemination of art and software, fostering creativity, innovation, and accessibility. Using examples from Microsoft Windows, Adobe Photoshop, and audio/music software, we can explore how piracy has historically played a role in shaping the digital and artistic landscapes.

1. Democratizing Access to Tools and Knowledge

Microsoft Windows and Adobe Photoshop:

Piracy has democratized access to expensive software tools like Windows and Photoshop, enabling a wider range of users to learn and create without the barrier of high costs. Many individuals who could not afford these tools have used pirated versions to gain skills, which later translated into legitimate purchases when they could afford them or when their work nece

@loftwah
loftwah / rds.md
Last active May 13, 2024 02:55
RDS scaling

AWS RDS Performance Metrics and Scaling Guide

This guide outlines detailed performance benchmarks, scaling recommendations, and specific alert setup instructions for AWS RDS instances in US, Europe, and Australia regions. Use these guidelines to ensure optimal performance and scalability.

Key Metrics

Latency

  • Good: <= 10 ms - Efficient query performance.
  • Moderate: 10-20 ms - Monitor for potential optimizations.
@loftwah
loftwah / opentelemetry.md
Created May 7, 2024 03:43
Open Telemetry Rails

Tola at Axiom support@axiom.co Tue, Apr 23, 7:31 PM to me

Hi Dean,

You can send your logs to Axiom using the Faraday HTTP Ruby library.

@loftwah
loftwah / info.md
Created April 29, 2024 00:38
iwaswrong

User Being against people policing the internet is a core belief of mine that I have had and from what I remember I was taught it from the very early days when I accessed the internet as being one of the most important responsibilities we had. I can't find a source for it though and it doesn't align completely with the things I am finding and looking back on. Has anyone had a similar experience?

ChatGPT It's not uncommon for early internet users to hold a strong belief in the importance of an open and unpoliced internet. This perspective often stems from the early ethos of the internet, which championed free expression and the free flow of information. Aaron Swartz, a notable advocate for internet freedom, often spoke about the importance of resisting censorship and promoting open access, which resonates with the sentiment you described.

The discrepancy you're noticing between your memories and current information could be due to the evolution of internet governance and cultural attitudes towards digital co