- Deploy droplet 🚀
- Droplet Name: Rito-API-Challenge
- IP Address: 45.55.59.251
- Add Source code to repo
- Store All Item data as JSON
- Download sound bits
- Download .png files for icons
| update_cloud_shell_ip () { | |
| IP=$(gcloud alpha cloud-shell ssh --dry-run | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}') | |
| OLDIP=`grep -w cloud-shell -A 1 $HOME/.ssh/config | awk '/HostName/ {print $2}'` | |
| sed -i "" "s/$OLDIP/$IP/g" $HOME/.ssh/config | |
| } |
| podman build --format docker -t gcr.io/pyaxie-bot/pyaxie-bot . && \ | |
| gcloud auth print-access-token | podman login -u oauth2accesstoken --password-stdin gcr.io/pyaxie-bot | |
| podman push gcr.io/pyaxie-bot/pyaxie-bot --remove-signatures |
| Mon Jan 14 23:09:47 UTC 2019 |
| FROM node:7-alpine | |
| COPY ./ /app | |
| WORKDIR /app | |
| CMD node hello.js |
| #!/bin/bash | |
| # see: http://blog.tomtung.com/2009/11/cowsay-fortune | |
| # http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed | |
| # https://github.com/busyloop/lolcat | |
| # https://github.com/dorentus/mruby-lolcat-bin | |
| # | |
| # requires `fortune`, `cowsay`, | |
| # and ruby gem `lolcat` or its mruby version equivalent | |
| export LANG="en_US.UTF-8" |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |