Skip to content

Instantly share code, notes, and snippets.

View qoomon's full-sized avatar
🌳
Go for it.

Bengt Brodersen qoomon

🌳
Go for it.
View GitHub Profile
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active June 24, 2024 18:27
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 and generate verion and changelogs

Commit Message Formats

Default

@qoomon
qoomon / youtube_clean_watch_later_videos.js
Last active April 15, 2024 07:25
Clean YouTube Watch Later Videos
// Version 2.0.1
// This script will remove all videos from watch later list
//
// Usage
//
// #1 go to https://www.youtube.com/playlist?list=WL
// #2 run following script in your browser console
(async function() {
const playlistName = document.querySelector('.metadata-wrapper #container #text')?.textContent || document.querySelector('#text')?.textContent
@qoomon
qoomon / git_configure.sh
Last active March 27, 2024 09:51
Opinionated Git Config
#!/bin/bash
# git global config see $HOME/.gitconfig
# ensures to convert CRLF to LF when writing to database
git config --global core.autocrlf 'input'
git config --global core.editor '$EDITOR'
git config --global core.pager 'less -R -M'
git config --global color.ui 'auto'
@qoomon
qoomon / gist:700f68ca890edd5802fd768652f231cc
Last active February 22, 2024 13:22
GitHub Actions Commit Identity
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
@qoomon
qoomon / jira_script runner_behaviour.groovy
Last active January 23, 2024 09:30
Jira Script Runner - Behaviour - Issue Templates, Restrict Links Types
// ------------------------------------------
// ---- Set default Description -------------
// ------------------------------------------
def defaultDescriptions = [
Story: """
*As a* USER
*I want* FEATURE
*so that* BENEFIT
@qoomon
qoomon / hibp
Last active December 30, 2023 19:15
Have I been pwned! Script to check your password against https://haveibeenpwned.com/
#!/usr/bin/env sh
set -e
color_red=$'\e[1;31m'
color_green=$'\e[1;32m'
color_reset=$'\e[0m'
########################### Usage ##############################################
#
# password prompt 'hibp'
# or
@qoomon
qoomon / gource.sh
Last active November 17, 2023 13:01
beautiful gource configuration
gource \
--highlight-dirs \
--file-idle-time 0 \
--filename-time 8 \
--filename-colour 999999 \
--file-font-size 18 \
--dir-colour 999999 \
--dir-font-size 24 \
--key \
--user-font-size 24 \
@qoomon
qoomon / qoomon.md
Last active October 25, 2023 05:40
qoomon styles

"Combining Long Stroke Overlay" (U+0336) and "Combining Short Stroke Overlay" (U+0335).

qoomon

q̴͈̮o̴̱ọm̶͓̥on͒

Q̶̸O̶̴O̶̴M̶̸O̶̴N̶̸


@qoomon
qoomon / AWSParametersAndSecretsLambdaExtension-Utils.ts
Created October 12, 2023 06:08
AWSParametersAndSecretsLambdaExtension
/**
* @param secretId the ARN or name of the secret.
* @param version the version stage or version id
* @see https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_lambda.html
* @see https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-integration-lambda-extensions.html
*/
export async function getSecretString(secretId: string, version?: SecretManagerSecretVersionStage | string) {
const extensionHttpPortPort = process.env["PARAMETERS_SECRETS_EXTENSION_HTTP_PORT"] ? parseInt(process.env["PARAMETERS_SECRETS_EXTENSION_HTTP_PORT"]) : 2773
const secretManagerRequestUrl = new URL(`http://localhost:${extensionHttpPortPort}/secretsmanager/get`)
@qoomon
qoomon / TravisGitHub.md
Last active August 6, 2023 04:59
Setup GitHub Deploy Keys For Travis