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 / 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.

Andrej Karpathy: Software Is Changing Again

Summary

  • 🧠 Three Generations of Software: Karpathy introduces Software 1.0 (code written by humans), 2.0 (neural network weights), and 3.0 (prompts for LLMs). Software is now written in natural language, allowing for broader access and faster iteration.

  • 🚗 Neural Nets Replacing Code: Using Tesla’s Autopilot as an example, he shows how neural nets gradually replaced traditional code, signifying a profound industry transition.

  • 🧮 LLMs as Utilities and OSs: LLMs are described as akin to utilities (like electricity) due to centralized access, but function like operating systems, orchestrating memory and tools for problem-solving.

@michabbb
michabbb / jetbrains-fix-errors.md
Created June 17, 2025 12:19
Fix Phpstorm/Jetbrains IDE File warnings/errors with Ai (mcp client)

JetBrains Error Fixing Workflow

When fixing code errors in JetBrains IDE:

  1. Use your own file tools, NOT JetBrains tools: Always use the Read, Edit, Write, Glob, and Grep tools for file operations. Do not use JetBrains file editing tools like mcp__jetbrains__replace_specific_text or similar.

  2. Check errors first: Use mcp__jetbrains__get_current_file_errors to get the current list of errors in the open file.

  3. Read the file: Use the Read tool to understand the file content and locate the problematic code.