Skip to content

Instantly share code, notes, and snippets.

View beppler's full-sized avatar
:electron:

Carlos Alberto Costa Beppler beppler

:electron:
View GitHub Profile
@beppler
beppler / prepare-commit-msg.sh
Created April 14, 2025 00:14
Git commit prefix
#!/bin/bash
COMMIT_MSG_FILE=$1
BRANCH_NAME=$(git symbolic-ref --short HEAD 2>/dev/null)
TICKET_REGEX="^[^A-Z]*([A-Z]{2,}-[0-9]+).*"
if [[ $BRANCH_NAME =~ $TICKET_REGEX ]]; then
TICKET_NUMBER=${BASH_REMATCH[1]}
@beppler
beppler / odrive.sh
Created April 13, 2025 20:46
OneDrive simple downloader
#!/bin/bash
#
# OneDrive Downloader: A tool to download files from OneDrive links via the terminal.
#
# This script retrieves a "badger" token and prepares the target file for download.
#
# Commands used:
# - curl
# - grep
# - base64