Some scripts to remove husky hooks and convert them to chowchow hooks
./convert-githooks.sh && ./remove-hooks.sh
git checkout mater git branch --merged | egrep -v "(^\*|master)" | xargs git branch -d | |
git remote prune origin |
/** | |
* node import-assign.js path/to/folder/to/scan | |
*/ | |
const fs = require('fs') | |
const path = require('path') | |
const { loadFileSync } = require('babel-file-loader'); | |
const readdir = require('recursive-readdir'); | |
const { sortBy, sortedUniq, flowRight, identity } = require('lodash/fp') |
#! /usr/bin/env node | |
/** | |
* ./fix-lodash-imports path/to/file.js | |
*/ | |
const fs = require('fs'); | |
const loadFile = filepath => fs.readFileSync(filepath, 'utf8'); | |
const writeFile = (filepath, data) => fs.writeFileSync(filepath, data, 'utf8'); |
Some scripts to remove husky hooks and convert them to chowchow hooks
./convert-githooks.sh && ./remove-hooks.sh
Jamie Dixon [3:16 PM]
I’d like to answer the question “I’m testing this URL, is the change you made in this version?” when asked by a tester or PM
source 'https://rubygems.org' | |
gem 'travis-conditions' |
/* | |
injectExamples.js - inject examples into the README | |
The MIT License (MIT) | |
Copyright (c) 2013-2017 Tristan Slominski | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the |
#! /usr/bin/env bash | |
set -e | |
shopt -s extglob | |
HOOKDIR="$(git rev-parse --git-dir)/hooks" | |
if [ -d "$HOOKDIR" ]; then | |
rm -rf "${HOOKDIR:?}"/!(*.sample) |
#! /usr/bin/env sh | |
set -e | |
HOOKDIR="$(git rev-parse --git-dir)/hooks" | |
if [ -d "$HOOKDIR" ]; then | |
grep -r -l "#husky 0.14.3" "$HOOKDIR" | xargs -0 rm -f -- | |
echo "husky hooks removed from $HOOKDIR" | |
else |
#! /usr/bin/env node | |
// Usage cat some-file.json | jpoo path.to.Key | |
// Needed the ability to parse + fetch a key from a string of JSON sent to | |
// stdin and be cross platfrom which ruled out jq, and should work with node 4 - BITE ME! | |
const stdin = process.stdin; | |
getStdin = () => { | |
let ret = ''; |