Skip to content

Instantly share code, notes, and snippets.

View valter-silva-au's full-sized avatar

Valter Silva valter-silva-au

View GitHub Profile
Follow this [tutorial](https://gist.github.com/nickautomatic/02ccb76292f7f8d9767e)
See the attached screenshots as examples.
if [ -f $(brew --prefix)/etc/bash_completion.d/git-completion.bash ]; then
. $(brew --prefix)/etc/bash_completion.d/git-completion.bash
fi
complete -C /usr/local/bin/aws_completer aws
#!/bin/bash
# Helps keeping your homebrew packages up-to-date
# If you have any issues with 'permission denied' to cleanup old packages
# https://stackoverflow.com/a/59608792/523168
# sudo chown -R $(whoami) /usr/local/Cellar/
echo "=== brew update ==="
brew update
@valter-silva-au
valter-silva-au / daily-downloads.sh
Created November 18, 2021 00:30
Create a daily directory to keep downloads organized
#!/usr/bin/env bash
set -eu
echo "=== START: ORGANIZE FILES AND DIRECTORIES $(date)"
YEAR=$(date "+%Y")
MONTH=$(date "+%m")
DAY=$(date "+%d")
@valter-silva-au
valter-silva-au / init.sh
Created October 13, 2022 13:07
Initialize a project with AWS Terraform Dev Container
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
git clone --branch=main --depth=1 git@github.com:awslabs/aws-terraform-dev-container.git
mv aws-terraform-dev-container/.devcontainer .devcontainer
rm -rf aws-terraform-dev-container