Skip to content

Instantly share code, notes, and snippets.

View michabbb's full-sized avatar
💯
Need help ? Call me.....

Micha(el) Bladowski michabbb

💯
Need help ? Call me.....
View GitHub Profile
@michabbb
michabbb / check_pve_backup_gist.sh
Created January 22, 2026 01:53
Nagios/Icinga plugin to monitor Proxmox VE (vzdump) backup status via the Proxmox API. Supports checking specific VMs, all running VMs, or any recent backup. Works with both single-VM and batch backup jobs.
#!/bin/bash
#
# check_pve_backup - Nagios/Icinga plugin for Proxmox VE backup monitoring
#
# Monitors vzdump backup status via the Proxmox API (pvesh).
# Supports checking specific VMs, all running VMs, or any recent backup.
#
# Requirements:
# - Must run on a Proxmox VE host (needs pvesh command)
# - jq for JSON parsing
@michabbb
michabbb / README.md
Last active January 16, 2026 20:04
OpenCode CLI Plugin: Audio Permission Notifications

Building an OpenCode CLI Plugin for Audio Permission Notifications

Overview

This guide shows how to create an OpenCode CLI plugin that plays an audio notification when OpenCode needs user permissions. The solution consists of two components:

  1. A shell script to play system audio
  2. An OpenCode plugin that listens for the permission.asked event

@michabbb
michabbb / llm-code-optimization-battle.md
Created November 19, 2025 11:39
The Great LLM Code Optimization Battle: 8 AI Models, 1 Function - php 7.4 (gemini 3, minimax m2, grok 4.1, gpt 5.1 high, kimi k2 thinking)

The Great LLM Code Optimization Battle: 8 AI Models, 1 Function

The Challenge

What happens when you pit the world's most advanced AI models against each other in a code optimization challenge? I decided to find out by asking 8 different large language models to optimize a single PHP function - and the results were fascinating, surprising, and sometimes hilariously broken.

The prompt was simple and identical for all contestants:

"optimize this code: php 7.4"

@michabbb
michabbb / ssh-post-quantum-guide.md
Created November 15, 2025 18:31
SSH Post-Quantum Cryptography Configuration Guide - How to enable post-quantum key exchange and suppress OpenSSH warnings

SSH Post-Quantum Cryptography Configuration Guide

This guide explains how to configure SSH to use post-quantum cryptography and suppress related warnings.

Understanding the Warning

When connecting via SSH, you might see:

** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
@michabbb
michabbb / fictional_city_tour_planned_with_google_maps_mcp.md
Created September 26, 2025 16:14
fictional city tour planned with google maps mcp
URBAN_WANDER_11_NOV_2025 {
  
  PHASE_1 "Morning Setup & Breakfast" {
    TIME: "07:30-09:30"
    
    PARKING {
      NAME: "Northgate Parkhouse"
      ADDRESS: "Northgate Square 3, 10001 Sample City"
      COORDINATES: "00.100000, 00.200000"
@michabbb
michabbb / coderabbit-install.sh
Last active September 25, 2025 20:44
fixed coderabbits install script, because they are great in checking code from others, but not testing their own stuff ;-)
#!/bin/sh
# CodeRabbit CLI Installation Script
#
# This script downloads and installs the CodeRabbit CLI to ~/.local/bin
# It automatically detects your platform (OS/architecture) and downloads the appropriate binary.
#
# USAGE:
# # Install latest version
# curl -fsSL https://cli.coderabbit.ai/install.sh | sh
@michabbb
michabbb / formatting_php_code_with_claude_code.md
Created September 9, 2025 09:43
formatting_php_code_with_claude_code

.php-cs-fixer.php

<?php

use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$rules = [
    'binary_operator_spaces'             => [
Type Description
blog This official guide from Anthropic provides tips for customizing your setup, giving Claude more tools, and common workflows for using Claude Code.
blog A Reddit discussion on the various non-coding uses of Claude Code, such as for SEO, marketing, recruiting, and product strategy.
blog This article outlines three best practices for using Claude Code to transform product development: mastering project context with claude.md files, structuring autonomous workflows, and creating design-to-code pipelines.
blog A case study on how different teams at Anthropic use Claude Code for tasks like codebase navigation, testing, debugging, prototyping, documentation, and automation.
[blog](h
@michabbb
michabbb / compare_gemini_with_sonnet_opus.md
Created July 26, 2025 10:14
compare gemini 2.5 pro to sonnet and opus (source: perplexity search)

Of course. Here is the updated comparison focusing specifically on Gemini 2.5 Pro, presented alongside Vertex AI and the Claude models.

Feature Gemini 2.5 Pro (via AI Studio/API) Vertex AI (with Gemini 2.5 Pro) Claude Sonnet 4 Claude Opus 4
Primary Use Case Web-based tool for developers to prototype and build with Google's latest model without platform overhead[1]. Enterprise-grade platform to build, deploy, and scale ML applications using Gemini 2.5 Pro with enhanced security and governance[2]. A balance of performance and cost, ideal for general development, enterprise chatbots, and code generation[3]. Anthropic's highest-performance model for complex, multi-step tasks, advanced coding, and high-level research[3][4].
Pricing Model The AI Studio tool is free. Costs are based on API usage in a pay-as-you-go model[5]. Pay-as-you-go for model usage, infrastructure, and other integrated MLOps services on the platform[2][6]. Pay-as-you-
@michabbb
michabbb / summary.md
Created July 22, 2025 22:14
Summary of Laravel Worldwide Meetup - Queues, Jobs, and Workers: Building Resilient Background Processing (https://www.youtube.com/watch?v=EBsvfjNUUj8)

Summary: Building Resilient Background Processing in Laravel

This talk by Haris Weftopoulos provides a deep dive into Laravel's queue system, moving from fundamental concepts to advanced production-ready strategies. The key takeaway is that queues are essential not just for performance, but for building reliable and scalable applications.


1. Core Concepts & Why You Should Use Queues

  • The "Why": Queues decouple time-consuming tasks (like sending emails, processing images, calling third-party APIs) from the user's web request. This results in:
  • Performance: Instant-feeling responses for the user.