Skip to content

Instantly share code, notes, and snippets.

View kibotu's full-sized avatar
🎯
Focusing

Jan Rabe kibotu

🎯
Focusing
View GitHub Profile
@kibotu
kibotu / clean.py
Last active February 25, 2026 09:06
macos clean script with dry run for app developers + cursor
#!/usr/bin/env python3
"""
macOS Cleanup Tool
Usage:
python3 clean.py --system # system caches & logs
python3 clean.py --dev-caches # developer tool caches
python3 clean.py --build-folders ~/Projects # 'build' dirs in tree
python3 clean.py --docker # docker images & volumes
python3 clean.py --ios-backups # iOS device backups
@kibotu
kibotu / microgpt.py
Created February 12, 2026 08:01 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shader Test - Train Scene</title>
<style>
* {
margin: 0;
padding: 0;
@kibotu
kibotu / stalebot-jenkins.groovy
Last active January 28, 2026 12:11
Stalebot for Groovy Jenkins Pipeline & Bitbucket Cloud
/**
* Jenkins Stale Branch Bot - Standalone Gist
*
* This script identifies and optionally deletes stale branches in a Git repository.
* It analyzes branches for:
* - Merged branches (fully merged to master with no unique commits)
* - Stale branches (no commits in the last X days)
* - Active branches (recent activity)
*
* Features:
@kibotu
kibotu / authenticator.gradle
Created January 19, 2026 12:24
Gradle Authenticator
if (!project.hasProperty('artifactory_contextUrl')) throw new GradleException('the "artifactory_contextUrl" needs to be set in gradle.properties!')
if (!project.hasProperty('artifactory_token')) throw new GradleException('the "artifactory_token" needs to be set in gradle.properties!')
if (!project.hasProperty('artifactory_reader_1')) throw new GradleException('the "artifactory_reader_1" needs to be set in gradle.properties!')
if (!project.hasProperty('artifactory_reader_2')) throw new GradleException('the "artifactory_reader_2" needs to be set in gradle.properties!')
if (!project.hasProperty('artifactory_reader_3')) throw new GradleException('the "artifactory_reader_3" needs to be set in gradle.properties!')
if (!project.hasProperty('artifactory_reader_token_1')) throw new GradleException('the "artifactory_reader_token_1" needs to be set in gradle.properties!')
if (!project.hasProperty('artifactory_reader_token_2')) throw new GradleException('the "artifactory_reader_token_2" needs to be set in gradle.properti
@kibotu
kibotu / version-overrides.gradle
Last active January 14, 2026 17:28
Task to analyze dependencies and output necessary version overrides Similar to version-overrides/generate.py - finds actual duplicate versions
tasks.register("logVersionOverrides") {
group = "help"
description = "Analyzes dependencies for actual version conflicts (same dep with multiple versions)"
doLast {
// Track all versions seen for each dependency
def depVersions = [:]
def resolvedVersions = [:]
// Analyze releaseRuntimeClasspath configuration
@kibotu
kibotu / print-java-version-project.gradle
Last active January 19, 2026 10:35
Print Java Version for Kotlin and Java Compiler
/**
* Gradle task that prints comprehensive Java and Kotlin version information for Android modules.
*
* This task displays:
* - Java runtime version, vendor, and home directory
* - Gradle version
* - Java source and target compatibility settings
* - Kotlin JVM target version (if configured)
* - Kotlin plugin version
*
@kibotu
kibotu / ssh.sh
Created January 7, 2026 08:48
ssh connect with specific ssh key
ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes pi@192.168.0.1
@kibotu
kibotu / mermaid.yml
Created December 16, 2025 10:31
Git Flow: App
---
config:
gitGraph:
mainBranchName: main
rotateCommitLabel: true
theme: base
---
gitGraph
commit id: "init"
branch release/2026.1.0
@kibotu
kibotu / benchmark-config-caching-detailed.sh
Last active November 25, 2025 15:19
Configuration cache benchmark
#!/bin/bash
# Enhanced Configuration Cache Benchmark with Diagnostics
# This version provides detailed insights into cache behavior
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'