I hereby claim:
- I am noizo on github.
- I am noizo (https://keybase.io/noizo) on keybase.
- I have a public key whose fingerprint is 2274 8313 18ED C2EC EE84 F93F 6204 2877 3A3C 098B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # depends: scrot imagemagick keychain rivalctl | |
| # Take a screenshot | |
| scrot /tmp/lockshot.png | |
| # Apply pixellation effect | |
| convert /tmp/lockshot.png -scale 5% -scale 2000% /tmp/lockshot-pixel.png |
| acm.amazonaws.com | |
| alexa-appkit.amazon.com | |
| apigateway.amazonaws.com | |
| application-autoscaling.amazonaws.com | |
| appstream.application-autoscaling.amazonaws.com | |
| appsync.amazonaws.com | |
| athena.amazonaws.com | |
| autoscaling.amazonaws.com | |
| batch.amazonaws.com | |
| channels.lex.amazonaws.com |
If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
| Add the following in .zshrc: | |
| ... | |
| plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
| ... | |
| ### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
| pasteinit() { | |
| OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
| zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |
| function renew_aws_key() { | |
| # If no arguments are passed, print usage and exit with error | |
| [ -z "$1" ] && echo "Usage: renew_aws_key <user_name> <profile>" && return 1 | |
| # Assign variables for user name and profile name | |
| local user_name="$1" | |
| local profile_name="${2:-default}" | |
| # List the access keys for the specified user | |
| local keys=$(aws iam list-access-keys --user-name "$user_name" --output json) |
| as() { | |
| # awsume wrapper function | |
| # pip install awsume | |
| # pip install awsume-console-plugin | |
| # https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/ | |
| # https://addons.mozilla.org/en-US/firefox/addon/open-url-in-container/ | |
| # curl -sL https://raw.githubusercontent.com/honsiorovskyi/open-url-in-container/master/bin/launcher.sh | sudo tee ~/.local/bin/firefox-container > /dev/null | |
| # chmod +x ~/.local/bin/firefox-container | |
| # | |
| # .awsume/config.yaml |