Skip to content

Instantly share code, notes, and snippets.

View deanglukler's full-sized avatar

dean glükler deanglukler

View GitHub Profile
@deanglukler
deanglukler / kubectl-cheat.md
Last active July 5, 2025 00:45
kubectl Cheatsheet - Essential commands for daily use

kubectl Cheatsheet

Cluster Context

# List all available clusters/contexts
kubectl config get-contexts

# Show current context
kubectl config current-context
@deanglukler
deanglukler / aws-cli-cheatsheet.md
Last active July 4, 2025 22:33
AWS CLI Cheatsheet - Commands and examples for learning AWS CLI

AWS CLI Cheatsheet

A comprehensive reference for AWS CLI commands as I learn to use them.

Quick Reference - Most Used Commands

# Add a new AWS profile
aws configure --profile new-profile-name    # Create new profile with access keys
aws configure sso --profile new-profile-name # Create new SSO profile (interactive)
# --- Safest: Delete Unused/Dangling Volumes ---
docker volume prune # Prompts to remove anonymous local volumes not used by any container.
docker volume prune -a # Prompts to remove ALL unused volumes (anonymous and named) not referenced by any container.
docker volume prune -f # Removes anonymous local volumes without prompting for confirmation.
docker volume prune -a -f # Removes ALL unused volumes without prompting for confirmation.
# --- Delete Specific Volumes ---
docker volume ls # Lists all existing Docker volumes, showing their names and drivers.
/**
* Represents the properties of a keyboard shortcut generated from a keyboard event.
*
* @typedef {object} ShortcutProperties
* @property {object} modKeys - An object representing the state of modifier keys.
* @property {boolean} modKeys.ctrl - Indicates if the Ctrl key is pressed.
* @property {boolean} modKeys.shift - Indicates if the Shift key is pressed.
* @property {boolean} modKeys.alt - Indicates if the Alt key is pressed.
* @property {boolean} modKeys.meta - Indicates if the Meta key (Command/Windows) is pressed.
* @property {string} alphaKey - The lowercase alphanumeric key associated with the event.
/**
* Example usage of objDig function:
*
* var object = { a: { b: { c: 'c' } } };
*
* objDig(object, 'a', 'b');
* // => { c: 'c' }
*
* objDig(object, 'a', 'b', 'c');
* // => 'c'
function toQueryParams(obj) {
const queryParams = [];
for (const [key, value] of Object.entries(obj)) {
const encodedKey = encodeURIComponent(key);
const encodedValue = encodeURIComponent(value);
queryParams.push(`${encodedKey}=${encodedValue}`);
}
@deanglukler
deanglukler / PresetFinder-daengluck.zsh
Created May 10, 2021 18:08
script to organize synth presets
#!/usr/bin/env zsh
# daen glück
# instructions on how to use this: https://quasiglu.com/post/preset-organize-script
# REMEMBER TO SET THE FILE EXTENSION
## declare an array variable
declare -a arr=("bass" "lead" "pluck" "keys" "chord" "fx" "synth" "wobble" "world" "pad" "808" "arp" "bpm" "strings" "seq" "growl" "chill" "vox" "sub")
FILEEXTEND='.h2p'
// npm i -D eslint-plugin-jest eslint-plugin-json eslint-plugin-prettier eslint-config-prettier eslint-config-standard eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
// eslint-plugin-prettier exposes a "recommended" configuration that turns on both eslint-plugin-prettier and eslint-config-prettier,
// all you need in your .eslintrc.json is:
// {
// "extends": ["plugin:prettier/recommended"]
// }
// Remember to install both eslint-plugin-prettier and eslint-config-prettier:
.mtk5,
.mtk4,
.mtk3,
.mtk16 {
font-family: 'augie';
font-size: 1em;
margin-left: 1px;
}
echo hello mr glueckler
# variables
_hw=/Users/slimbean/asdf/_hw
# aliases
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
alias storm="/usr/local/bin/webstorm"
alias asdf="clear && pwd"