Skip to content

Instantly share code, notes, and snippets.

View tafaust's full-sized avatar
💻
Coding

Thomas Faust tafaust

💻
Coding
View GitHub Profile
@tafaust
tafaust / gen-tailwind-cmap.js
Last active January 5, 2023 14:17
Generates
const fs = require('fs');
const pseudo = ['hover', 'active', 'focus']
const prefix = ['text', 'bg'];
const colors = ['primary', 'secondary' , 'success' , 'error' , 'warning'];
const intensity = ['50' , '100' , '200' , '300' , '400' , '500' , '600' , '700' , '800' , '900'];
const fileContent = [];
const p = (str) => fileContent.push(str);
@tafaust
tafaust / Makefile
Last active February 15, 2025 18:59
Ceph Makefile
# --- Configuration ---
MON_IP ?= 192.168.0.2 # Primary monitor node IP
POOL_NAME ?= $(shell sudo ceph osd pool ls | grep "cephfs.cephfs.data" || echo "default_pool")
POOL_SIZE ?= 3
OSD_DEVICES ?= /dev/sdb # Modify as per your system
FS_NAME ?= cephfs
CEPH_IMAGE ?= quay.io/ceph/ceph:v19.2.1
# Cluster Nodes
MON_NODES = mon1 mon2 mon3