Skip to content

Instantly share code, notes, and snippets.

@Lucho00Cuba
Lucho00Cuba / dump_ssl.py
Created June 28, 2023 16:28
Dump Data SSL
#!/usr/bin/env python3
import ssl
import OpenSSL
from OpenSSL import crypto
hostname = 'HOSTNAME'
port = PORT
print(f"Hostname: {hostname}")
@Lucho00Cuba
Lucho00Cuba / ss.sh
Created January 4, 2024 14:22
bad ss alternative (linux)
#!/usr/bin/env bash
PERL_FILE='ss.perl'
cat << EOF > ./$PERL_FILE
#!/usr/bin/perl
my \$hexip=\$ARGV[0];
my \$hexport=\$ARGV[1];
#print "HEX_IP: \$hexip HEX_PORT: \$hexport\n";
@Lucho00Cuba
Lucho00Cuba / generate-changelog.sh
Created September 29, 2024 19:14
Generate ChangeLog Files
#!/usr/bin/env bash
# Check for changes in the repository
if git diff-index --quiet HEAD --; then
echo "No changes to show."
exit 0
fi
# Create a file to store the changelog summary
CHANGELOG="CHANGELOG.md"
@Lucho00Cuba
Lucho00Cuba / app.js
Last active October 24, 2024 06:37
Particles JS
/* -----------------------------------------------
/* How to use? : Check the GitHub README
/* ----------------------------------------------- */
/* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */
/*
particlesJS.load('particles-js', 'particles.json', function() {
console.log('particles.js loaded - callback');
});
*/
@Lucho00Cuba
Lucho00Cuba / makefile
Created November 3, 2024 10:11
Makefile
# Define the color codes for output
YELLOW = \033[33m
GREEN = \033[32m
CYAN = \033[36m
RESET = \033[0m
ifneq (,$(wildcard ./.env))
include .env
export
endif
@Lucho00Cuba
Lucho00Cuba / vmrest-cli.ps1
Created May 25, 2025 18:16
PowerShell CLI to manage vmrest.exe as a background process with PID tracking and port proxy via netsh.
<#
.SYNOPSIS
CLI utility to manage vmrest.exe as a background process without Windows service.
.DESCRIPTION
This script starts vmrest.exe in the background, tracks its PID, and sets up a port proxy
to expose the localhost-only API to the network using netsh. It supports start, stop, status,
and interactive config execution. Requires administrator privileges for portproxy.
.AUTHOR
@Lucho00Cuba
Lucho00Cuba / commit-messages
Created October 30, 2025 22:46
Cursor Rules
---
name: Commit Message Generation Rules
description: Commit message generation rules for the project
---
## Format
`<type>[(scope)]: <description>`
- Keep `<description>` imperative, present tense, and ≤ 72 chars.
- Use body for motivation, context, and trade-offs.