- Create the project in the Firebase Console
- Setup a new "Service account" in the Firebase project settings
- Open the Project settings from the left sidebar
- Go to the "Service accounts" tab
- Under "All service accounts" click in the link that goes to the GCP console
- On the left sidebar, click "Service accounts" -> "Create service account"
- Type a name, assign the following roles: "Artifact Registry Repository Administrator", "Cloud Functions Admin", "Firebase Viewer", "Service Account User"
- Click done
- Select the service account you just created from the list
- Go to the "Keys" tab -> "Add Key" -> "Create new key" -> "JSON" -> Click "Create"
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 | |
set -e | |
# Check if running as root | |
if [ "$EUID" -ne 0 ]; then | |
echo "This script must be run as root." | |
exit 1 | |
fi |
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 | |
# Update GTK cache to include support for the cedilla module in English | |
GTK3_CACHE_FILE="/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache" | |
if [ -f "$GTK3_CACHE_FILE" ]; then | |
sudo sed -i 's/\("cedilla" "Cedilla" "gtk30" \)/\1en:/' "$GTK3_CACHE_FILE" | |
fi | |
GTK2_CACHE_FILE="/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache" | |
if [ -f "$GTK2_CACHE_FILE" ]; then |
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/sh | |
# BETA in 2022-05-14 | |
( | |
echo "Installing curl, git, vim" | |
sudo dnf update && sudo dnf install -y \ | |
curl \ | |
git \ | |
vim |
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
# Step 1. Stop docker daemon. | |
/etc/init.d/docker stop | |
# Step 2. Make sure that there are no docker related processes. | |
ps aux|grep docker | |
# Step 3. Move the contents of /var/lib/docker to your new location. | |
mv /var/lib/docker /home/ | |
# Step 4. Create a softlink to default location. |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
--listEmittedFiles
Print names of generated files part of the compilation.--listFiles
Print names of files part of the compilation.--watch
|-w
Run the compiler in watch mode. Watch input files and trigger recompilation on changes. The implementation of watching files and directories can be configured using environment variable. See configuring watch for more details.
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 | |
set -e | |
install_basics() { | |
echo "Installing curl, git, vim" | |
sudo apt-get update && sudo apt-get install -y curl git vim | |
echo "Git configuration:" | |
read -p 'git config --global user.name: ' userName |
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/sh | |
# sudo ln -s /path/to/this/script/php /usr/bin/php | |
# sudo chmod +x /usr/bin/php | |
# OR | |
# create a function in ~/.profile | |
docker run \ | |
--rm \ | |
-i \ |
NewerOlder