Tags » Script

Managing dependencies in groovy scripts

Imagine you want to write a Groovy script and this script uses a the 3rd party library. How to do?

There are some solutions, such as: 161 more words


Destroying the evidence


Carol: a recovering alcoholic

Heather: her younger sister

Beth: her older sister

Mum: their mum

Guy1: A film student

Patrick: her husband

Jeff: an untrustworthy neighbour… 7,194 more words

Creative Writing

Instalando scripts

Olá, muitas das soluções de produção do Indesign são feitas a partir de scripts de terceiros.

Para começar o primeiro post sobre scripts será: Como instalar scripts? 96 more words


A little dialogue practise.

Every so often I like to have a go at a short script. I don’t have any great desire to be a script writer, but I think working in different forms improves your writing overall (which is why I sometimes subject people to my attempts at poetry). 85 more words


Removing a locked file from a datastore

Recently I had to remove a locked file on a datastore on request of one of the administrators. No problem I thought let’s follow the path I know… 285 more words


Script to remove a S3 bucket containing versioned files

I couldn’t find a simple script to delete a bucket that contains versioned objects, so I wrote one.

Usage: nuke_bucket.sh bucket_name


# Remove all versions and delete markers for each object
OBJECT_VERSIONS=$(aws --output text s3api list-object-versions --bucket nimbusscale-lalabs | grep -E '^VERSIONS|^DELETEMARKERS')
while read -r OBJECT_VERSION; do
    if [[ $OBJECT_VERSION == DELETEMARKERS* ]]; then
        KEY=$(echo $OBJECT_VERSION | awk '{print $3}')
        VERSION_ID=$(echo $OBJECT_VERSION | awk '{print $5}')
        KEY=$(echo $OBJECT_VERSION | awk '{print $4}')
        VERSION_ID=$(echo $OBJECT_VERSION | awk '{print $8}')
    aws s3api delete-object --bucket $1 --key $KEY --version-id $VERSION_ID > /dev/null

# Remove the bucket with --force option to remove any remaining files without versions.
aws s3 rb --force s3://$1