Skip to content

Instantly share code, notes, and snippets.

View bassmanitram's full-sized avatar

Martin Bartlett bassmanitram

  • DXC
  • Paris, France
View GitHub Profile
@bassmanitram
bassmanitram / remove-content.sh
Last active April 9, 2021 15:39
Workaround for Terraform taking a loooooong time to delete a bucket with many objects
#
# 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
@bassmanitram
bassmanitram / fix_sound.sh
Last active July 25, 2020 07:55
Workaround script to help solve Ubuntu 16.04 HDMI sound issues when ALSA can use the HDMI sink, but Pulse thinks it's unplugged
#!/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