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
{ | |
"FERRARI": "FERRARI_CONFIG" | |
} |
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 | |
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM) | |
STAGED_ESLINT_FILES=$(echo "$STAGED_FILES"|grep -E "(ts|js)$") | |
STAGED_PRETTIER_FILES=$(echo "$STAGED_FILES"|grep -E "(ts|js|json|md)$") | |
BIN_DIRECTORY="$(git rev-parse --show-toplevel)/node_modules/.bin" | |
function eslint () { | |
if ! command -v ${BIN_DIRECTORY}/eslint &> /dev/null; then | |
exit 0 |
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 | |
":" //# comment; exec /usr/bin/env node --input-type=module - $@ < "$0" | |
import { spawn } from 'child_process'; | |
import { join } from 'path'; | |
import { homedir } from 'os'; | |
const extra_args = []; | |
const default_exclude = [ | |
`--exclude='*test*'`, | |
`--exclude='*.d.ts'`, |
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 | |
token=xxx | |
org=Springworks | |
per_page=100 | |
url="https://api.github.com/orgs/${org}/repos?per_page=${per_page}" | |
pages=$(curl -H "Authorization: token ${token}" --silent "${url}" -I | awk '$1=/Link:/ {print $4}' | sed 's/.*page=//' | sed 's/\>;//') | |
for page in $(seq 1 ${pages:-1}) | |
do | |
for repo in $(curl -H "Authorization: token ${token}" --silent "${url}&page=${page}" | jq '.[] | select(.archived == false) | .ssh_url' | sed 's/\"//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 | |
function clear-cache { | |
versions=() | |
while read -r line; do | |
clean="$(echo ${line} | sed "s,$(printf '\033')\\[[0-9;]*[a-zA-Z],,g")" | |
valid=$(echo "${clean}" | grep '^[^a-zA-Z]' | grep -v 'system' | sed 's/->//' | sed 's/\s.*v//') | |
if [[ ! -z $valid ]]; then | |
versions+=(${valid}) |
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
[ | |
{ "key": "ctrl+shift+up", | |
"command": "editor.action.insertCursorAbove", | |
"when": "editorTextFocus" }, | |
{ "key": "ctrl+shift+down", | |
"command": "editor.action.insertCursorBelow", | |
"when": "editorTextFocus" }, | |
{ "key": "cmd+1", | |
"command": "workbench.action.openEditorAtIndex1" }, | |
{ "key": "cmd+2", |
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
{ | |
"version": "0.1.0", | |
"command": "${workspaceRoot}/node_modules/.bin/mocha", | |
"isShellCommand": false, | |
"showOutput": "never", | |
"args": [], | |
"tasks": [ | |
{ | |
"taskName": "test", | |
"suppressTaskName": true, |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch Debug", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/lib/index.js", | |
"stopOnEntry": false, | |
"args": [], |