bash v3
function key_val () {
case $1 in
"foo") echo "bar";;
#!/usr/bin/env python3 | |
import asyncio | |
import functools | |
import logging | |
import math | |
import signal | |
import time | |
from contextlib import asynccontextmanager, contextmanager |
name: Release | |
on: | |
workflow_dispatch: | |
inputs: | |
versionBump: | |
description: 'Version bump' | |
required: true | |
default: 'patch' | |
type: choice |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# A simple bash script to execute all adjacent scripts | |
# | |
# Usage: | |
# source /path/to/all.sh | |
# OR | |
# . /path/to/all.sh | |
# |
#!/usr/bin/env bash | |
# | |
# An over-engineered bash argument parser | |
# Inspired from *args and **kwargs in Python | |
# | |
# Usage: | |
# parse_args "$@" | |
# | |
# Examples: |
#!/usr/bin/env zsh | |
# | |
# Call `nvm use` automatically in a directory with a .nvmrc file, silently | |
# | |
# Usage: | |
# Add this to your ~/.zshrc | |
# | |
# Taken from https://github.com/nvm-sh/nvm#zsh | |
# Difference being that this one is less verbose (like pyenv or goenv) |
#!/usr/bin/env bash | |
# | |
# A simple bash function to output messages | |
# | |
# Usage: | |
# out "Hello world!" | |
# out warn "A warning message" | |
# out error "An error message" | |
# |
#!/usr/bin/env bash | |
# | |
# This script will append additional entries (from http://winhelp2002.mvps.org/hosts.txt) in /etc/hosts file. | |
# run: "adblock" | |
# | |
# Notes: | |
# - A backup is created as `hosts.bk` in current working directory. | |
# |
{ | |
"git.ignoreMissingGitWarning": true, | |
"workbench.colorTheme": "Material Theme", | |
"materialTheme.fixIconsRunning": false, | |
"workbench.iconTheme": "vscode-great-icons", | |
"workbench.colorCustomizations": { | |
"activityBarBadge.background": "#5C6BC0", | |
"list.activeSelectionForeground": "#5C6BC0", | |
"list.inactiveSelectionForeground": "#5C6BC0", | |
"list.highlightForeground": "#5C6BC0", |