Skip to content

Instantly share code, notes, and snippets.

@amsoell
amsoell / prepare-commit-msg
Created February 21, 2018 12:42
Include last 5 commit messages and hashes in default Git commit message
#!/bin/sh
ORIG_MSG_FILE="$1"
TEMP=`mktemp /tmp/git-msg-custom`
trap "rm -f $TEMP" exit
LAST10=`git log --oneline -5 | sed -e 's/^/# /'`
(printf "\n\n# Last 5 Commits:\n%s \n\n" "$LAST10"; cat "$ORIG_MSG_FILE") > "$TEMP"
cat "$TEMP" > "$ORIG_MSG_FILE"

Keybase proof

I hereby claim:

  • I am amsoell on github.
  • I am amsoell (https://keybase.io/amsoell) on keybase.
  • I have a public key ASAAms-XVTMfD1gz2EegTVlkHfGEaJE_0AmwFGngEsTOmgo

To claim this, I am signing this object:

[user]
name = Andy Soell
useConfigOnly = true
email = andy@teamsoell.com
[alias]
branches = branch --format=\" %(HEAD) %(if)%(HEAD)%(then)%(color:bold green)%(else)%(color:nobold white)%(end) %(refname:short) %(color:nobold white)(%(color:bold red)%(objectname)%(color:nobold white))\"
[core]
excludesfile = ~/.gitignore
@amsoell
amsoell / extend_laravel_sanctum.diff
Created July 20, 2022 09:15
Extend Laravel Sanctum
diff --git a/app/Guards/ChordGuard.php b/app/Guards/ChordGuard.php
new file mode 100644
index 0000000..6b5ef74
--- /dev/null
+++ b/web/app/Guards/ChordGuard.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace App\Guards;
+