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 |
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit | |
# Copyright (c) 2021-2025 Marat Reymers | |
## Golden config for golangci-lint v2.4.0 | |
# | |
# This is the best config for golangci-lint based on my experience and opinion. | |
# It is very strict, but not extremely strict. | |
# Feel free to adapt it to suit your needs. | |
# If this config helps you, please consider keeping a link to this file (see the next comment). |
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
.