Skip to content

Instantly share code, notes, and snippets.

View pipethedev's full-sized avatar
🎯
Focusing

Ileri⚡️ pipethedev

🎯
Focusing
View GitHub Profile
name anti-slop-python
description Simplify Python code by removing defensive over-engineering, unnecessary abstractions, generic dictionaries, excessive runtime checks, wrapper helpers, and AI-generated architectural noise.

Python Anti-Slop

Apply these rules whenever modifying Python code.

The goal is simple, explicit, typed, idiomatic Python that is easy to trace and does not defend against impossible internal states.

@pipethedev
pipethedev / TypeScript Anti-Slop SKILL.md
Created September 10, 2026 05:40
Anti slop skill for typescript
name anti-slop-typescript
description Simplify TypeScript code by removing defensive over-engineering, fake type safety, unnecessary helpers, redundant runtime checks, and abstraction noise.

TypeScript Anti-Slop

Apply these rules whenever modifying TypeScript or JavaScript code.

The goal is simple, readable, strongly typed code that trusts the type system and validates only at real boundaries.

@pipethedev
pipethedev / go-deslop.md
Created September 7, 2026 13:10
Markdown file to de-slop your go codebase

Go Codebase Cleanup: Remove Defensive Over-Engineering and AI Slop

Audit this Go codebase and aggressively simplify AI-generated, defensive, overly abstract, or unnecessarily generic code.

The goal is to make the code look like it was written by an experienced Go engineer:

  • simple
  • explicit
  • strongly typed
  • boring
@pipethedev
pipethedev / costgraph-installation.hcl
Last active August 13, 2026 05:49
Installing costgraph on nomad cluster
job "costgraph-install" {
type = "sysbatch"
datacenters = ["*"]
node_pool = "all"
group "costgraph" {
restart {
attempts = 2
interval = "15m"
delay = "30s"
name: Weekly Changelog
on:
schedule:
- cron: "0 9 * * 1" # Every Monday at 9:00 AM UTC
workflow_dispatch:
jobs:
generate-changelog:
runs-on: ubuntu-latest
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Simple Tailwind Slide Deck</title>
<!-- Tailwind CDN (quick prototyping) -->
<script src="https://cdn.tailwindcss.com"></script>
@pipethedev
pipethedev / setup.sh
Last active October 20, 2025 12:47
Script to setup consul in client or server mode with auto server discovery in client mode
#!/bin/bash
set -e
CONSUL_VERSION="1.21.5"
CONSUL_URL="https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip"
INSTALL_DIR="/usr/local/bin"
CONFIG_DIR="/etc/consul.d"
DATA_DIR="/opt/consul"
TEMP_DIR="/tmp/consul-install"
@pipethedev
pipethedev / setup
Last active April 19, 2025 16:43
Pre setup script to download maxmind db configuration file for hosting malak
apk add --no-cache curl && mkdir -p /app/storage/maxmind && curl -L -o /app/storage/maxmind/city.mmdb https://ileri.b-cdn.net/GeoLite2-City.mmdb && curl -L -o /app/storage/maxmind/country.mmdb https://ileri.b-cdn.net/GeoLite2-Country.mmdb
INSERT INTO "public"."plans"("id","reference","plan_name","default_price_id","amount","metadata","created_at","updated_at","deleted_at","is_default")
VALUES
(E'4590c0bb-7dc1-4ec0-abef-61eb305059d1',E'prod_RxAyUR2',E'Core',E'price_1R3GcuIuzgc0GU',3000,E'{"deck": {"analytics": {"can_view_historical_sessions": false}}, "updates": {"max_recipients": 300}}',E'2025-03-16 21:27:38.685084+00',E'2024-09-04 13:46:35.612449+00',NULL,TRUE);
@pipethedev
pipethedev / pin-component.tsx
Created April 5, 2024 13:58
Pin component for brimble collaboration
import React, { useContext } from "react";
import { Thread, Pin } from "@cord-sdk/react";
import SupabaseImplementation from "@/implementations/supabase.implementation";
import { PinType } from "@/types/collaboration.type";
import GroupIdContext from "@/context/groupid.context";
import { Rnd } from "react-rnd";
const PinComment = (pinData: PinType) => {
const groupId = useContext(GroupIdContext) as string;
@pipethedev
pipethedev / model-migration.script.ts
Last active April 7, 2024 08:26
Convert object model to knex migrations
import fs from 'fs';
import path from 'path';
import { exec } from 'child_process';
enum KnexMigrationType {
Id = 'uuid',
String = 'string',
Number = 'integer',
Float = 'float',
Array = 'enum',