Skip to content

Instantly share code, notes, and snippets.

View czerwinb's full-sized avatar

Bartosz Czerwiński czerwinb

View GitHub Profile
@czerwinb
czerwinb / aws-profile-zshrc.sh
Created March 20, 2025 09:41
AWS profile env variables switcher and auto-completion for ZSH
# Source: found somewhere on the web...
# Simply add below script to your .zshrc file
aws-profile () {
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "USAGE:"
echo "aws-profile <- print out current value"
echo "aws-profile PROFILE_NAME <- set PROFILE_NAME active"
echo "aws-profile --unset <- unset the env vars"
elif [ -z "$1" ]; then
@czerwinb
czerwinb / node-exports-styles.js
Last active January 14, 2018 23:02 — forked from kimmobrunfeldt/node-exports-styles.js
[JavaScript] A few Node module export styles
// Style 1
// Export all manually
// Good: Calling functions inside the module is convenient
// Bad: module.exports becomes verbose and it's tedious to add new functions
function a() {
b()
}