Install as3shebang on Cloud Shell in 10 seconds top


#1

If you need to test as3shebang quickly and you have a google mail / gmail account

go to this URL
https://console.cloud.google.com/cloudshell/editor?pli=1&shellonly=true

and run this command
$ wget -q --show-progress https://gist.githubusercontent.com/zwetan/297813e2716fbfcd84babda42900a99a/raw/5698dce8c38468d78c5b79e3c558ce09b659561f/setup.sh -O setup.sh && chmod +x setup.sh && ./setup.sh

do not type the $, this is a convention to indicate you’re typing a shell command

the setup output something like that

if you run $ ./sysinfo it will output something like that

if you want to uninstall everything run $ ./uninstall and then $ rm setup.sh

If you don’t uninstall, the setup.sh script and the downloaded files will be kept around in your $HOME directory thanks to Google Cloud Shell 5GB of Persistent Disk Storage

you can even automate this setup by editing your ~/.profile and adding those lines at the very end

if [ -f "$HOME/setup.sh" ] ; then
    $HOME/setup.sh
fi

that way, despite the limitations, each time you will run your Cloud Shell, as3shebang will be available to use :).


Soon the same setup will be available for the full redtamarin-sdk ;).