Skip to content

Instantly share code, notes, and snippets.

@bboykov
bboykov / aws.md
Created September 15, 2023 06:58 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

@bboykov
bboykov / retry_command_or_timeout.sh
Created March 27, 2020 07:52
Retry or timeout bash function
#!/usr/bin/env bash
# Strict Mode - http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
retry_command_or_timeout() {
local retry_command=${1}
local max_retries=${2}
local sleep_seconds=5
@bboykov
bboykov / lint-and-format-in-VIM.md
Last active April 11, 2021 10:24
TIL: Lint and format in VIM

TIL: Lint and format in VIM

Today I learned how to setup linters and formaters for various languages in VIM.

First we need to install the [ALE][ale] (Asynchronous Lint Engine) plugin. This plugin provides a common platform for different linters in VIM. I install it using [vim-plug][vim-plug] plugin manager, but one can install it manually or with another plugin manager without much hassle. The example in this TIL use vim-plug. Put Plug 'w0rp/ale' in your vimrc setup and call vim-plug to

---
apiVersion: v1
kind: Namespace
metadata:
name: registry
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
@bboykov
bboykov / pedantically_commented_playbook.yml
Created May 19, 2016 11:24 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.