Skip to content

Instantly share code, notes, and snippets.

@aradnom
aradnom / slug-to-display.js
Created April 9, 2018 23:06
Simple function for converting a slugified value to display text.
/**
* Converts passed slug to capitalized display value. Not super clever, just
* intended to deal with lowercase, dashed slugs. Ex.: bananas-in-pajamas -->
* Bananas In Pajamas
*
* @param {String} slug Slug to convert to display text
*
* @return {String} Returns formatted text
*/
function slugToDisplay ( slug ) {
@aradnom
aradnom / kubernetes-shortcuts.sh
Last active September 24, 2025 20:14
Shell functions and aliases for common things I do with kubectl (Kubernetes, K8s)
###############################################################################
# Kubernetes Shortcuts ########################################################
###############################################################################
# Shell functions and aliases for common things I do with kubectl (Kubernetes,
# K8s)
#
# A lot of the below makes the following assumptions:
# - That you have separate staging and production clusters or a similar
# arrangement