Skip to content

Instantly share code, notes, and snippets.

View LuisAlejandro's full-sized avatar
πŸ‡»πŸ‡ͺ

Luis Alejandro LuisAlejandro

πŸ‡»πŸ‡ͺ
View GitHub Profile
# Technical Prompt Enhancement and Clarification Agent
## Version: 1.0
## Purpose:
To analyze technical prompts, gather latest information via MCPs, identify prerequisites, ask clarifying questions, and produce a comprehensive, unambiguous specification that eliminates assumptions and guesswork.
## Role:
@LuisAlejandro
LuisAlejandro / .env
Last active June 26, 2025 23:05
Docker Hub Untagged Image Cleanup Script
DH_USERNAME=
DH_PASSWORD=
DOCKER_HUB_COOKIE=""
//
// This file is part of ZenProfits.
// Copyright (C) 2021, Luis MartΓ­nez.
//
// Please refer to AUTHORS.rst for a complete list of Copyright holders.
//
// ZenProfits is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
@LuisAlejandro
LuisAlejandro / send-mail.py
Created April 15, 2020 04:40
This is a python script to send a multipart email message
# This is a python script to send a multipart email message
# Replace these variables with its values:
# from_address = ""
# to_address = ""
# server_url = "" <--------------- You can use smtp.gmail.com
# server_port = ""
# password = ""
#
# You should write your message in the text variable and the html variable (for an html version of the message)
@LuisAlejandro
LuisAlejandro / remove-submodule.sh
Created April 15, 2020 04:19
This script deletes a submodule from the repository
# This script deletes a submodule from the repository
# Usage: bash remove-submodule.sh <submodule name>
submodule_name=$(echo "$1" | sed 's/\/$//'); shift
exit_err() {
[ $# -gt 0 ] && echo "fatal: $*" 1>&2
exit 1
}
@LuisAlejandro
LuisAlejandro / remove-pip-packages.sh
Last active April 15, 2020 04:20
This script uninstalls all pip installed packages in the global scope. Must be run as root.
# This script uninstalls all pip installed packages in the global scope. Must be run as root.
for PYTHON in $( ls -1 /usr/local/lib/ ); do
if [ "$( echo ${PYTHON} | cut -c -6 )" == "python" ]; then
PYTHONVER="$( echo ${PYTHON} | cut -c 7,8,9 )"
PYTHONVERSHT="$( echo ${PYTHONVER} | cut -c 1 )"
if [ -x "/usr/local/bin/pip${PYTHONVER}" ] || [ -x "/usr/bin/pip${PYTHONVER}" ]; then
PIPBIN="pip${PYTHONVER}"
@LuisAlejandro
LuisAlejandro / release-debian-package.sh
Last active April 15, 2020 04:21
This is a script to release a new debian package using gitbuildpackage
# This is a script to release a new debian package using gitbuildpackage
# Replace <author name> and <author email> with the author data, <gnupg key> with your signing gpg key and <version> with the new version of the package, including the debian revision (ex. 2.0.1-1)
export DEBFULLNAME="<author name>"
export DEBEMAIL="<author email>"
git config --global user.name "<author name>"
git config --global user.email "<author email>"
git add --all .
git commit -a
@LuisAlejandro
LuisAlejandro / change-commit-date.sh
Last active April 15, 2020 04:43
This command will change the date of a specific commit
# This command will change the date of a specific commit
# Replace <commit-hash> with the actual commit hash
git filter-branch -f --env-filter \
'if [ $GIT_COMMIT = <commit-hash> ]
then
export GIT_AUTHOR_DATE="May 19 16:18:03 2016 -0400"
export GIT_COMMITTER_DATE="May 19 16:18:03 2016 -0400"
fi'
@LuisAlejandro
LuisAlejandro / change-commit-author.sh
Last active April 15, 2020 04:44
This command will change all committer emails of all commits to the email you specify.
# This command will change all committer emails of all commits to the email you specify
# Change <email> to a valid email address
git filter-branch -f --env-filter "export GIT_AUTHOR_EMAIL='<email>'; export GIT_COMMITTER_EMAIL='<email>'" HEAD
Python 11 hrs 2 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 32.6%
Bash 10 hrs 50 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 32.0%
JSON 3 hrs 23 mins β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 10.0%
Markdown 2 hrs 34 mins β–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7.6%
TypeScript 1 hr 26 mins β–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 4.3%