Skip to content

Instantly share code, notes, and snippets.

{
"apiVersion": "dashboard.grafana.app/v2beta1",
"kind": "Dashboard",
"metadata": {
"name": "claude-code-metrics",
"generation": 12,
"creationTimestamp": "2025-12-10T13:33:56Z",
"labels": {},
"annotations": {}
},
@RezaOwliaei
RezaOwliaei / elysia-clean-architecture-guide.md.md
Last active December 11, 2025 06:16
Vertical Slicing & Clean Architecture: A Practical Guide for Elysia Developers

Architecture & Concepts

This handbook serves as a comprehensive guide to the architectural choices, design patterns, and technology stack for projects leveraging Feature-First Clean Architecture and Elysia.


Table of Contents

  1. Overview
  2. Project Structure
@knshiro
knshiro / docker-compose.yml
Last active December 11, 2025 06:15
Docker compose for metabase and mysql (bonus phpyadmin)
version: "2.1"
services:
mysql-db:
image: mariadb:10.5
volumes:
- ./mysql_data:/var/lib/mysql
restart: always
ports:
- 3307:3306
@Srfigie
Srfigie / .gitattributes
Created February 2, 2020 14:30 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@Chizaruu
Chizaruu / generate-types.ts
Last active December 11, 2025 06:01
Parses SQL migrations directly. Handles JSONB defaults, SQL comments → JSDoc, and geometric types (Point/Polygon as structured types, not unknown). Auto-detects Prettier. Works offline. npm install -D type-fest npx tsx generate-types.ts
#!/usr/bin/env tsx
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable no-console */
/* eslint-disable camelcase */
/**
* Complete Supabase Type Generator - Schema-File First with Index Support
*
* This script:
* 1. Reads SQL schema files from your Supabase directory (default for --local)
# From http://www.joescat.com/backup/disk_image.html
mount -o username=name,password=secret //server/share backup
dd if=/dev/sda | gzip -c | split -b 638m - backup/backup.img.gz.
# Restoration
cat backup/backup.img.gz.* | gzip -dc | dd of=/dev/sda
@jboner
jboner / latency.txt
Last active December 11, 2025 05:58
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@arjunv
arjunv / keyevents.json
Created December 2, 2018 00:01
All Android Key Events for usage with adb shell
{
"key_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"key_0": "adb shell input keyevent 7",