Skip to content

Instantly share code, notes, and snippets.

View Muriano's full-sized avatar
💭
Coding hard @freepik-company

José Antonio Muriano Criado Muriano

💭
Coding hard @freepik-company
View GitHub Profile
@Muriano
Muriano / fr.py
Created February 8, 2024 09:11
Face Recognition in Python
import cv2
import face_recognition
img = cv2.imread('original.png')
rgb_img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img_encodings = face_recognition.face_encodings(rgb_img)[0]
img2 = cv2.imread('fake.png')
rgb_img2 = cv2.cvtColor(img2, cv2.COLOR_BGR2RGB)
img2_encodings = face_recognition.face_encodings(rgb_img2)[0]
@Muriano
Muriano / remove-non-semver-tags.sh
Created August 22, 2023 08:29
Remove tags that are not semver tags. Has preview and confirmation.
#!/bin/bash
TAGS=$(git tag)
SEMVER_REGEX='^[0-9]+\.[0-9]+\.[0-9]+$'
NON_SEMVER_TAGS=()
@Muriano
Muriano / migrate-repo.sh
Last active August 22, 2023 10:52
Easy migration between bb and gh repos
#!/bin/bash
# Check if GitHub CLI is installed
if ! command -v gh &> /dev/null; then
echo "🚨 Error: GitHub CLI (gh) is not installed. Please install it: https://cli.github.com/"
exit 1
fi
# Check if a repository URL is provided
if [ "$#" -ne 1 ]; then