Skip to content

Instantly share code, notes, and snippets.

View r1cc4rd0m4zz4's full-sized avatar
๐Ÿ‚

Riccardo Mazza r1cc4rd0m4zz4

๐Ÿ‚
View GitHub Profile
@fengyuentau
fengyuentau / readme.md
Last active January 4, 2026 17:29
Enable X11 forward for ssh to load images from remote server on MacOS Mojave

Enable X11 forward to load images from remote server on MacOS Mojave

Steps

  1. Install Xquartz to get X11 support on MacOS. You can google Xquartz and download it from its official site, or install using HomeBrew.

    brew cask install xquartz
  2. Launch Xquartz. Go to Preference -> Security, click the box Allow connections from clients. NOTE: You have to lauch Xquartz with Allow connections from clients enable everytime you want to ssh to remote server with X11 forwarding support.

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

@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+"""
@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

@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>
@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 {
@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'])
"
}
@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:

@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:

@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