- created Firebase project
- created Firebase app
- copied example code
- setup node enviroment
# install node
brew install node
# setup firebase
#!/usr/bin/env bash | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/run/docs/securing/private-networking#from-other-services | |
# - https://cloud.google.com/run/docs/securing/private-networking#from-vpc | |
# - https://cloud.google.com/appengine/docs/flexible/disable-external-ip | |
# - https://cloud.google.com/dns/docs/records#adding_or_removing_a_record | |
# - https://cloud.google.com/vpc/docs/configure-private-google-access | |
# - https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-go-service |
#!/usr/bin/env bash | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/armor/docs/managed-protection-using#gcloud | |
# - https://cloud.google.com/armor/docs/advanced-network-ddos | |
# - https://cloud.google.com/armor/docs/configure-adaptive-protection | |
# - https://cloud.google.com/armor/docs/adaptive-protection-auto-deploy | |
##################################################################### |
#!/usr/bin/env bash | |
# reference: https://www.youtube.com/watch?v=lG7Uxts9SXs (some code was deprecated so fix along way) | |
# create folder | |
mkdir youtube-assistant | |
cd youtube-assistant | |
# set up virtual env | |
python3 -m venv .venv |
import pandas as pd | |
import nltk | |
import string | |
import matplotlib.pyplot as plt | |
from nltk.corpus import stopwords | |
from nltk import word_tokenize | |
from gensim.models import Word2Vec as w2v | |
from sklearn.decomposition import PCA |
#!/usr/bin/env python3 | |
# Reference: https://www.youtube.com/watch?v=yfHHvmaMkcA (Tutorial - some dated libs fixed in here) | |
# set constants | |
ASTRA_DB_APPLICATION_TOKEN="<< YOUR APP TOKEN (starts with AstraCS:) >>" | |
ASTRA_DB_SECURE_BUNDLE_PATH="<< FULL PATH TO YOUR ASTRA DB BUNDLE >>" | |
ASTRA_DB_CLIENT_ID="<< YOUR ASTRA DB CLIENT ID >>" | |
ASTRA_DB_CLIENT_SECRET="<< YOUR ASTRA DB CLIENT SECRET >>" | |
ASTRA_DB_KEYSPACE="search" |
#!/usr/bin/env bash | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/iap/docs/concepts-overview | |
# - https://cloud.google.com/iap/docs/enabling-kubernetes-howto | |
# - https://cloud.google.com/kubernetes-engine/docs/how-to/configure-gateway-resources#configure_iap | |
# - https://cloud.google.com/sdk/gcloud/reference/container/clusters/create | |
# - https://github.com/digitalocean/kubernetes-sample-apps/tree/master/podinfo-example | |
# - https://cloud.google.com/kubernetes-engine/docs/how-to/container-native-load-balancing |
#!/usr/bin/env bash | |
##################################################################### | |
# REFERENCES | |
# - https://nextjs.org/learn/dashboard-app/getting-started | |
# - https://github.com/vercel/next.js/tree/canary/examples/with-docker | |
# - https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-nodejs-service | |
# - https://cloud.google.com/run/docs/configuring/services/environment-variables | |
# - https://cloud.google.com/run/docs/securing/service-identity | |
# - https://cloud.google.com/sdk/gcloud/reference/run/deploy |
#!/usr/bin/env bash | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/docs/terraform/best-practices-for-terraform | |
# - https://registry.terraform.io/modules/terraform-google-modules/kubernetes-engine/google/latest/submodules/safer-cluster | |
# - https://cloud.google.com/kubernetes-engine/docs/how-to/hardening-your-cluster#restrict_self_modify | |
# - https://ashwin9798.medium.com/nginx-with-docker-and-node-js-a-beginners-guide-434fe1216b6b | |
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ | |
# - https://webbylab.com/blog/minimal_size_docker_image_for_your_nodejs_app/ |
# .zshrc | |
# other stuff already in file | |
# ------------------------------ my helpers ------------------------------------ | |
# DoiT Shortcuts Help | |
function shortcuts { | |
echo "ENV vars:" | |
echo " - ORGANIZATION ($ORGANIZATION)" |