# List all available clusters/contexts
kubectl config get-contexts
# Show current context
kubectl config current-context
A comprehensive reference for AWS CLI commands as I learn to use them.
# 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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example usage of objDig function: | |
* | |
* var object = { a: { b: { c: 'c' } } }; | |
* | |
* objDig(object, 'a', 'b'); | |
* // => { c: 'c' } | |
* | |
* objDig(object, 'a', 'b', 'c'); | |
* // => 'c' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}`); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.mtk5, | |
.mtk4, | |
.mtk3, | |
.mtk16 { | |
font-family: 'augie'; | |
font-size: 1em; | |
margin-left: 1px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
NewerOlder