See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
See how a minor change to your commit message style can make a difference.
Tip
Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
// 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 |
Moin
aspe:keyoxide.org:X2TJUL5QWM6CYZRFO6LLKFJ72Q
import {Octokit} from 'octokit'; | |
import * as process from 'node:process' | |
import YAML from 'yaml'; | |
const metaDataPath = '.github/metadata.yaml'; | |
const input = { | |
token: process.env.GITHUB_TOKEN ?? _throw(new Error('environment variable GITHUB_TOKEN is required')), | |
owner: process.env.GITHUB_OWNER ?? _throw(new Error('environment variable GITHUB_OWNER is required')), | |
} |
#!/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 |
gem install travis
ssh-keygen -t rsa -b 4096 -f 'github_deploy_key' -N ''
cat github_deploy_key.pub
copy public key and set as a deploy key on github e.g https://github.com///settings/keys
function resultOf<T>(fn: () => T): SafeResult<T>; | |
function resultOf<T>(fn: () => Promise<T>): Promise<SafeResult<T>>; | |
function resultOf<T>(promise: Promise<T>): SafeResult<T>; | |
function resultOf<T>(input: (() => T | Promise<T>) | Promise<T>): Result<T> | Promise<Result<T>> { | |
if (typeof input === 'function') { | |
try { | |
const result = input() | |
if (result instanceof Promise) { | |
return safe(result); | |
} |
#!/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' |
git config user.name 'github-actions[bot]' | |
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' |