Fremantle . Technology



Fremantle Technology Pty Ltd
ABN: 61 654 475 644
ACN: 654 475 644

Go The Dockers!

        #!/usr/bin/env bash

        # get link and details
        echo -n "Please enter URL: " && read urlink
        echo -n "Enter Title: " && read destitle

        # now get the list of available short links
        aws s3 cp --quiet s3://fremantle.technology/randoms /tmp

        # pop the top short link into linknumber
        linknumber=$(head -1 /tmp/randoms)
        sed '1d' /tmp/randoms > /tmp/randoms2
        mv /tmp/randoms2 /tmp/randoms

        # create index page
        echo "go see a band!" > /tmp/index.html

        # upload index page
        aws s3 cp --quiet /tmp/index.html s3://fremantle.technology/$linknumber/

        # put the list of available links back up
        aws s3 cp --quiet /tmp/randoms s3://fremantle.technology/

        # clean up
        rm /tmp/index.html
        rm /tmp/randoms

        echo "https://fremantle.technology/$linknumber"

        # Done!

      

2022 Fremantle Technology Pty Ltd
email: [email protected]
Made by Hand with Bootstrap and Font Awesome