Skip to content

Instantly share code, notes, and snippets.

View ccamel's full-sized avatar
🐫
Mind blowing

Chris ccamel

🐫
Mind blowing
View GitHub Profile
@ad2ien
ad2ien / Gihub-scripts_accept_pr.sh
Last active January 5, 2023 07:24
Create a PR adding a file in several projects
#! /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
@ccamel
ccamel / #my-configuration-files.md
Last active January 1, 2023 11:00
🗂 My various configuration files

Various configuration files for my working environment

@jpigree
jpigree / merge_dependabot-prs
Last active October 30, 2021 15:03
Merge dependabot prs. Useful when having a lot of those PRs across multiple repositories on Github. Need to clone all target repositories in same directory first.
#!/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
@maratori
maratori / .golangci.yml
Last active July 17, 2024 23:45
Golden config for golangci-lint
# This code is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021 Marat Reymers
## Golden config for golangci-lint v1.59.1
#
# 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 and change it for your needs.
run:
@Willmo36
Willmo36 / comonad.ts
Created December 14, 2020 18:24
fp-ts comonad with example
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:
@br3ndonland
br3ndonland / github-actions-notes.md
Last active July 14, 2024 00:41
Getting the Gist of GitHub Actions

(This is a fork of Michael's original gist with some editing of the unions + records sections.)

Elm and Typescript: comparison of type checking features

Each of these examples assume the usage of --strict mode in Typescript

Enums

Elm

Can be implemented using “Custom Types”

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 19, 2024 15:49
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@mordrax
mordrax / phd-elm-19-upgrade.md
Last active July 14, 2021 01:27
Upgrade to elm 0.19

This gist started Wednesday 29th August. We have until Friday 7th September to upgrade to Elm 0.19. This is a bunch of notes which I'm keeping track of to eventually turn into an article later on. Hope it helps your upgrade.

Day 1

Pre upgrade

428 Elm files.

@iamsurya-dev
iamsurya-dev / metrics-table.csv
Last active April 22, 2020 15:18
Metrics Tables in Medium
term description value/example
organization The name of the organization google/facebook etc.
service Name of the service myApp
resource Name of the resource being monitored by the service. It could also simply be a method name in the application kafka/method1/database
entity Name of the attribute being operated on. It's context is defined by the resource message/schema
metricType Type of metric for easy identification gauge/meter/timer etc.
operation Defines the type of metric to use create/update/delete/count/read
status Status of the operation success/failed/delay/abort