This file contains hidden or 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
// abs.js | |
const FILES = require('fs'); | |
module.exports = { | |
absorb: (htmlPath) => { | |
let html = FILES.readFileSync(htmlPath, 'utf8'); | |
html = html.replace(/(<absorb\s(.+)\/>)/g, function(absorbElement) { | |
let filePath = '', fileType = '', jsMod = ''; | |
if (absorbElement.indexOf('css=') >= 0) { |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |