Various configuration files for my working environment
Note
My configuration files have retired gracefully and found a new home at chez-ccamel. They’re now managed with the delightful chezmoi config tool.
| #! /bin/bash | |
| set -eu | |
| BRANCH='' | |
| ORG='okp4' | |
| USER=ad2ien | |
| REPOS=$(gh repo list ${ORG} --source --limit 150 --no-archived --json name --template '{{range .}}{{ .name }} {{end}}') | |
| echo $REPOS |
Various configuration files for my working environment
Note
My configuration files have retired gracefully and found a new home at chez-ccamel. They’re now managed with the delightful chezmoi config tool.
| #!/bin/bash -e | |
| REPO_DIR="$(realpath ${1:-.})" | |
| for repo in $(find "$REPO_DIR" -mindepth 1 -maxdepth 1 -type d) | |
| do | |
| if [ ! -d "$repo/.git" ] | |
| then | |
| echo "Skipping $repo. Not a git repo" | |
| continue |
| # ================================================================================================== | |
| # | |
| # NOTICE | |
| # | |
| # This gist is no longer maintained. It was moved to repo: | |
| # | |
| # https://github.com/maratori/golangci-lint-config | |
| # | |
| # Full history and all v2 releases are preserved in the repo. | |
| # |
| import { Comonad2C } from 'fp-ts/lib/Comonad'; | |
| import { pipe } from 'fp-ts/lib/function'; | |
| import { FunctionN } from 'fp-ts/lib/function'; | |
| import { Monoid } from 'fp-ts/lib/Monoid'; | |
| import { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray'; | |
| import { pipeable } from 'fp-ts/lib/pipeable'; | |
| /** | |
| * OOP style builder pattern but in FP | |
| * References: |
Tutorial and tips for GitHub Actions workflows
(This is a fork of Michael's original gist with some editing of the unions + records sections.)
Each of these examples assume the usage of --strict mode in Typescript
Can be implemented using “Custom Types”
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
player is better than plr.wasCalled is better than hasBeenCalled. notify is better than doNotification.isFirstRun is better than firstRun.increment is better than plusOne. unzip is better than filesFromZip.onClick is better than click.isFlying instead of isNotFlying. late intead of notOnTime.if not something then ... else ... end.missingValue instead of not hasValue.