Skip to content

Instantly share code, notes, and snippets.

View RndmCodeGuy20's full-sized avatar
:shipit:
Somewhere, between the sacred silence and sleep...

Shantanu Mane RndmCodeGuy20

:shipit:
Somewhere, between the sacred silence and sleep...
View GitHub Profile
version: '3'
services:
db:
image: postgres:15-alpine
container_name: dyno-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: dyno_db
@RndmCodeGuy20
RndmCodeGuy20 / Live_Activities.md
Created August 11, 2025 14:35
iOS 18 Live Activity With Intents

🚀 Building Live Activities in iOS (Manual & Push Notification Updates)

Live Activities in iOS let you keep important, glanceable information right on the Lock Screen or Dynamic Island (on iPhone 14 Pro and newer) — perfect for things like order tracking, sports scores, or ride-sharing updates.

In this guide, we’ll build a pizza order tracking example using SwiftUI, ActivityKit, and WidgetKit, where we’ll update the Live Activity both manually and via push notifications.

We’ll cover:

  1. Project Setup
  2. Creating Attributes (Shared Data Model)

Squircle - Mathematical Background

Excerpt from Wolfram MathWorld - Squircle

There are two incompatible definitions of the squircle.

Definition 1: Superellipse-based Squircle

The first defines the squircle as the quartic plane curve which is a special case of the superellipse with $a = b$ and $n = 4$, namely:

@RndmCodeGuy20
RndmCodeGuy20 / README.md
Created July 18, 2025 09:44
A powerful directory structure cloning tool that captures and recreates folder hierarchies across projects.

TreeClone 🌳

A powerful directory structure cloning tool that captures and recreates folder hierarchies across projects.

TreeClone lets you extract the skeleton of any project and replicate it elsewhere - perfect for project templates, maintaining consistent structures across teams, or quickly scaffolding new projects based on existing ones.

✨ Features

  • 📁 Structure Capture: Scan any directory and save its structure as portable JSON
  • 🔄 Perfect Recreation: Rebuild identical folder hierarchies anywhere
@RndmCodeGuy20
RndmCodeGuy20 / profiler.py
Created June 30, 2025 10:54
Docker Container Profiler
import docker
import threading
import json
import time
import queue
from datetime import datetime
from collections import defaultdict
class ContainerLifecycleMonitor:
def __init__(self):