Skip to content

Instantly share code, notes, and snippets.

View tekmaven's full-sized avatar

Ryan Hoffman tekmaven

View GitHub Profile
@tekmaven
tekmaven / prepare-commit-msg.sh
Last active June 5, 2019 12:31 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a JIRA ID, from branch name. Ignores branch name if JIRA ID is not found in branch name.
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2> /dev/null | grep -oE "[A-Z]+-[0-9]+")
if [ -n "$BRANCH_NAME" ]; then
@tekmaven
tekmaven / App.config
Created July 26, 2016 16:28 — forked from dieseltravis/CryptoHelper.cs
sample app that uses PGP Encryption using Bouncy Castle's C# API
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<add key="Password" value="ThisIsNotARealPassword" />
<add key="PublicKey" value="PgpPublicKey.asc" />
<add key="PrivateKeyOnly" value="PgpPrivateKeyOnly.asc" />
</configuration>