This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"commands": { | |
"command": [ | |
{ | |
"name": "cancelAlert", | |
"description": "Cancel a vehicle alert (honk horns/flash lights).", | |
"url": "https://api.gm.com/api/v1/account/vehicles/{VIN}/commands/cancelAlert", | |
"isPrivSessionRequired": "false" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ $# -eq 0 ]; then | |
echo "Provide org/repo as first argument." | |
exit | |
fi | |
REPO=$1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#place the git repo directories here, space delimited | |
PROJECTS=(~/Projects/foo ~/Projects/bar) | |
DOW=$(date +%w) | |
if [[ $DOW -eq 1 ]]; then #Monday | |
SINCE=4.days | |
else | |
SINCE=2.days |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
STORY_KEY=$(git symbolic-ref --short HEAD | grep -Eo '^[a-zA-Z0-9]{3,}[-_][0-9]{1,5}' | awk '{sub(/_/, "-"); print toupper($0)}') | |
if [ -n "$STORY_KEY" ]; then | |
sed -i.bak -e "1s/^/[$STORY_KEY] /" $1 | |
fi |