This file contains 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
#!/usr/bin/env bash | |
# Set locale to en_US | |
sudo echo "LC_ALL=\"en_US.UTF-8\"" >> /etc/default/locale | |
echo "export LC_ALL=\"en_US.UTF-8\"" >> /home/bitnami/.bash_profile | |
export LC_ALL="en_US.UTF-8" | |
# Fix libstdc++ | |
sudo rm /opt/bitnami/common/lib/libstdc++.so.6 && sudo ln -s /usr/lib/libstdc++.so.6 /opt/bitnami/common/lib/libstdc++.so.6 |
This file contains 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
group :development do | |
gem 'capistrano' | |
gem 'rvm-capistrano' | |
gem 'capistrano-unicorn', :require => false | |
end |
This file contains 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
import areIntlLocalesSupported from 'intl-locales-supported' | |
const localesMyAppSupports = [ | |
'fr', | |
'en', | |
] | |
if (global.Intl) { | |
// Determine if the built-in `Intl` has the locale data we need. | |
if (!areIntlLocalesSupported(localesMyAppSupports)) { |
This file contains 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
const MANAGED_INSTANCE_GROUP_NAME = 'instance-group-2' | |
const MANAGED_INSTANCE_GROUP_ZONE = 'europe-north1-a' | |
const MANAGED_INSTANCE_GROUP_TEMPLATE_NAME_ONDEMAND = 'global/instanceTemplates/instance-template-ondemand-vms' | |
const MANAGED_INSTANCE_GROUP_TEMPLATE_NAME_PREEMTIBLE = 'global/instanceTemplates/instance-template-preemptible-vms-1' | |
const { auth, Compute } = require('google-auth-library') | |
const fns = { | |
resize: async () => { | |
const client = new Compute() |