Skip to content

Instantly share code, notes, and snippets.

View abalejr's full-sized avatar
🎯
Focusing

A.J. Bale (Age) abalejr

🎯
Focusing
View GitHub Profile
@abalejr
abalejr / prepare-commit-msg
Created July 8, 2022 14:57
Append Issue Number to Commit Message
#!/bin/bash
FILE=$1
MESSAGE=$(cat $FILE)
TICKET=$(git rev-parse --abbrev-ref HEAD | grep -Eo '^(\w+/)?(\w+[-_])?[0-9]+' | grep -Eo '(\w+[-])?[0-9]+' | tr "[:lower:]" "[:upper:]")
if [[ $TICKET == "" || "$MESSAGE" == "$TICKET"* ]];then
exit 0;
fi
echo "$MESSAGE (#$TICKET)" > $FILE
@abalejr
abalejr / cybersphere-client-style.js
Last active December 30, 2021 19:26
A UserScript for changing the look of the CyberSphere (https://www.cybersphere.net/) web client. Designed for use with Tampermonkey or similar browser extensions.
// ==UserScript==
// @name CyberSphere Client Reskin
// @namespace http://tampermonkey.net/
// @version 0.1
// @description make Cybersphere sexy
// @author You
// @match https://www.cybersphere.net/cs/Client
// @grant none
// ==/UserScript==