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 | |
# https://id.atlassian.com/manage-profile/security/api-tokens | |
# for getting your tokens :pointup: | |
GIT_MESSAGE=$(git log -n 1) | |
read -p "Brief Summary:" SUMMARY | |
read -p "Description:" DESCRIPTION | |
echo "" | |
echo 'Please enter ticket type: ' | |
select T in "${JIRA_TICKET_TYPES[@]}" | |
do |
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 node | |
const IGNORE_FILES = []; | |
const filesToParse = JSON.parse(process.env.files); | |
const filesThatNeedTests = filesToParse.filter((f) => { | |
const fileNameArray = f.split('.'); | |
if (IGNORE_FILES.includes(f)) { | |
return 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
[user] | |
name = Daniel Sellers | |
[color] | |
ui = true | |
[alias] | |
co = checkout | |
cob = checkout -b | |
st = status | |
ci = commit | |
br = branch |
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 node | |
const cp = require('child_process'); | |
const pkg = require('../package.json'); | |
const filesToParse = JSON.parse(process.env.files); | |
const checkPackageJSON = () => { | |
const s = cp.execSync('git diff HEAD~1 HEAD package.json').toString(); | |
const changedLines = s | |
.match(/[+]( ){2,4}.*/g) |
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 | |
aws sts decode-authorization-message --encoded-message "$1" --query DecodedMessage --output text | jq '.' |
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 | |
string="{\"$2\": \"$3\"}" | |
mount=$1 | |
vault write $mount @<(vault read -format json $mount | jq ".data + $string") |
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 node | |
const http = require('https'); | |
const url = process.env.SLACK_URL; | |
let data; | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf8'); |
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 node | |
const cp = require('child_process'); | |
cp.exec('git diff --name-only master HEAD', (err, out) => { | |
const files = [].concat('subl', '.', out.split('\n')).join(' '); | |
cp.exec(files, (e, o) => { | |
if (e) { | |
console.log(e, 0); | |
process.exit(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 | |
set -e | |
function ADD_AUTHOR { | |
local author_to_add=$1 | |
if ! [ -z "${author_to_add}" ]; then | |
#add something to add people to review in your source repo | |
fi |
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 zsh | |
# ------------------------------------------------------------------------------ | |
# | |
# Lone Star - A futuristic minimal awesome Texas inspired theme for zsh | |
# | |
# Based heavily on the pure theme which includes the following note: | |
# | |
# Based on the custom Zsh-prompt of the same name by Sindre Sorhus. A huge | |
# thanks goes out to him for designing the fantastic Pure prompt in the first |
NewerOlder