This file contains 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
# | |
# A TERRAFORM local_exec provisioner to remove all the content from a bucket because | |
# Terraform is so bloody slow doing it | |
# | |
# Arrange for this script to be executed before the bucket is deleted. | |
# | |
# ALSO you must arrange for AWS CLI credentials to available to this script | |
# | |
# ONE way to do that is to run the terraform command in the context of AWS CLI | |
# credentials too, setting the standard AWS CLI environment variables, plus the |
This file contains 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
#!/bin/bash | |
{ | |
# | |
# Get rid of pulse and its cache (so this script can be run multiple times) | |
# | |
rm ~/.config/pulse/* | |
pulseaudio -k | |
# | |
# Wait till pulse sorts itself out |
NewerOlder