This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| LIST_OF_APPS="ubuntu-restricted-extras curl gparted neovim mysql-workbench vim gedit p7zip-full p7zip-rar shutter libfreerdp-plugins-standard chromium-browser libnss3-tools vlc firefox libpng-dev net-tools apt-transport-https ca-certificates software-properties-common" | |
| # Update app repository, upgrade installed application | |
| sudo apt update && sudo apt upgrade -y | |
| # ttf-mscorefonts-installer | |
| echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections | |
| sudo apt install ttf-mscorefonts-installer -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| GOOGLE_PROJECT_ID="example-id" | |
| GCLOUD_SERVICE_KEY="serviceAccount.json content" | |
| # eu.grc.io, etc... | |
| ZONE="gcr.io" | |
| SERVICE_ACCOUNT_FILE_NAME="google_service_account.json" | |
| function gcp_auth { | |
| echo "${GCLOUD_SERVICE_KEY}" | base64 -d > $SERVICE_ACCOUNT_FILE_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| * @param baseCurrency string - Ex. "USD" | |
| * @param exchangeCurrency string - Ex. "EUR" | |
| * @param refreshCache boolean - Default false | |
| * @returns number - Ex. 0.95 | |
| */ | |
| function GET_EXCHANGE_RATE(baseCurrency, exchangeCurrency, refreshCache = false) { | |
| const exchangeRateCacheKey = 'exchange_rate' + '_' + baseCurrency + '_' + exchangeCurrency | |
| const cache = CacheService.getScriptCache(); |
OlderNewer