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

@michabbb
michabbb / gist:ae30cd8eec81a777afd81237e9b87635
Created December 17, 2024 21:41
Summary of: OpenAI DevDay 2024 | Virtual AMA with Sam Altman, moderated by Harry Stebbings, 20VC
Source: https://youtu.be/Hn27upT2m_o
Conversation Summary:
The conversation with Sam Altman, CEO of OpenAI, covered a wide range of topics, from the future of AI models to the challenges of company growth. Altman emphasized the importance of "reasoning" models for OpenAI's future and their ability to generate new scientific insights and solve complex tasks. He also discussed the development of no-code tools for non-technical founders, the role of open-source models, and the definition of AI agents.
Altman discussed the challenges of OpenAI's rapid growth and the need to create a corporate culture that promotes innovation and new approaches. He also talked about the importance of talent and the need to support people who can reach their full potential.
Another key point was the question of AI commercialization and how AI agents might change SaaS product pricing. Altman emphasized that value creation through AI will be enormous, but it's important to focus on improving the models rather than just solving s
You are tasked with analyzing a merged PDF containing multiple documents in German and creating a bash script to split and rename these documents. Follow these instructions carefully:
First, carefully examine the content of the merged PDF.
Now, follow these steps:
1. Analyze the PDF:
- Identify all distinct documents within the merged PDF.
- Ignore any blank pages (pages that contain no letters).
- Determine the page range for each document.
@michabbb
michabbb / split_pdfs.bash
Created November 2, 2024 20:53
split a large pdf into individual files
#!/bin/bash
# Input PDF file
input_pdf="sample_document.pdf"
# Output files with dates
insurance_policy="car_insurance_2024-11-05.pdf"
bank_statement="bank_statement_2024-11.pdf"
medical_invoice_oct="medical_invoice_2024-10-21.pdf"
medical_invoice_nov="medical_invoice_2024-11-03.pdf"
@michabbb
michabbb / Gemini.php
Created October 22, 2024 17:13
Upload Files to the Gemini API
<?php
namespace App\Services\google;
use Exception;
use Illuminate\Http\Client\ConnectionException;
use Illuminate\Support\Facades\Http;
class Gemini
{
@michabbb
michabbb / intelligentCropTransparent.php
Created October 6, 2024 15:50
intelligent Crop Transparent in PHP
private function intelligentCropTransparent(
string $inputPath,
string $outputPath,
int $padding = 5,
bool $makeSquare = false,
bool $transparentBackground = true
): void
{
$image = new Imagick($inputPath);
@michabbb
michabbb / get_costs_from_asw_by_customer.sh
Created September 1, 2024 12:46
AWS: Get Costs by Customer (based on Tags) for the last month
#!/bin/bash
customer=$1
if [ -z "$customer" ]; then
echo "Error: No customer name provided. Please provide a customer name as the first argument." >&2
exit 1
fi
# Set your AWS credentials here