Skip to content

Instantly share code, notes, and snippets.

View r1cc4rd0m4zz4's full-sized avatar
🏂

Riccardo Mazza r1cc4rd0m4zz4

🏂
View GitHub Profile
@mattpocock
mattpocock / README.md
Created July 7, 2026 11:51
agent-proxy — a zero-dep proxy that shows the bloat in Claude Code's requests (ranked tool table + full readable Markdown of every request)

agent-proxy — see the bloat in Claude Code's requests

A zero-dependency logging proxy that sits between Claude Code and the Anthropic API. It forwards every request untouched, streams the reply straight back (so the CLI is unaffected), and writes a readable Markdown document for each request — led by a ranked table of what is eating your context.

Run it

@bagder
bagder / slop.md
Last active July 26, 2026 07:21
AI slop security reports submitted to curl

Slop

This collection is limited to only include the reports that were submitted as security vulnerabilities to the curl bug-bounty program on Hackerone.

Several other issues not included here are highly suspcious as well.

Reports

  1. [Critical] Curl CVE-2023-38545 vulnerability code changes are disclosed on the internet. #2199174
@awni
awni / README.md
Last active April 11, 2026 02:51
Test Time Scaling with R1-based Models and MLX LM

Test Time Scaling with MLX LM and R1-based LLMs

Install MLX LM:

pip install mlx-lm

And run:

@awni
awni / mlx_distributed_deepseek.md
Last active July 14, 2026 05:34
Run DeepSeek R1 or V3 with MLX Distributed

Setup

On every machine in the cluster install openmpi and mlx-lm:

conda install conda-forge::openmpi
pip install -U mlx-lm

Next download the pipeline parallel run script. Download it to the same path on every machine:

@Olshansk
Olshansk / llm.sh
Last active December 25, 2025 23:54
A bash wrapper around python's mlx_whisper to leverage the GPU on a mac for transcription
# A one liner to leverage the GPU on a mac to transcribe audio files
# Inspired by https://simonwillison.net/2024/Aug/13/mlx-whisper/
llm_transcribe_recording () {
local file_path="$1"
python3 -c "
import mlx_whisper
result = mlx_whisper.transcribe('$file_path', path_or_hf_repo='mlx-community/distil-whisper-large-v3')
print(result['text'])
"
}
@bartolli
bartolli / Caddyfile
Last active February 21, 2026 17:13
Caddy server to securely authenticate and proxy requests to a local Ollama instance, utilizing environment-based API key validation for enhanced security.
# /opt/homebrew/etc/Caddyfile
http://localhost:8080 {
# Define a matcher for authorized API access
@apiAuth {
header Authorization "Bearer {env.OLLAMA_API_KEY}"
}
# Proxy authorized requests
reverse_proxy @apiAuth http://localhost:11434 {
@davidfischer-ch
davidfischer-ch / sonar_sarif_to_generic.py
Last active December 16, 2025 13:01
sonar_sarif_to_generic.py
"""
Convert SARIF to Generic SonarQube issues import format and export variables for Sonar Scanner CLI.
Links:
* https://community.sonarsource.com/t/import-sarif-results-as-security-hotspots/83223
* docs.sonarqube.org/9.8/analyzing-source-code/importing-external-issues/generic-issue-import-format
* https://gist.github.com/davidfischer-ch/cdfede27ac053a8332b2127becc07608
Author: David Fischer <david@fisch3r.net>
@code-boxx
code-boxx / 0-PHP-RESTRICT-UPLOAD-TYPE.MD
Created May 30, 2023 12:35
PHP Restrict File Upload Type

PHP RESTRICT UPLOAD FILE TYPE

https://code-boxx.com/restrict-upload-file-type-php/

LICENSE

Copyright by Code Boxx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

@Huntinex
Huntinex / report.py
Last active March 21, 2025 10:33
Automatic bug bounty report generator
import poe, sys
client = poe.Client("<POE_API_KEY_HERE>")
title=sys.argv[1]
path=sys.argv[2]
more=""
if len(sys.argv) > 3:
more="\" and here is more information: "+sys.argv[3]
message="""generate a bug bounty report for me (hackerone.com), the title of the bug is """+title+""" and the vulnerability path is \""""+path+more+"""

Awesome Penetration Testing Awesome

A collection of awesome penetration testing resources.

Penetration testing is the practice of launching authorized, simulated attacks against computer systems and their physical infrastructure to expose potential security weaknesses and vulnerabilities.

Your contributions and suggestions are heartily♥ welcome. (✿◕‿◕). Please check the Contributing Guidelines for more details. This work is licensed under a Creative Commons Attribution 4.0 International License.

This project is supported by Netsparker Web Application Security Scanner