Skip to content

Instantly share code, notes, and snippets.

######################## The Arcade Trivia August 2024 Week 1 ###########################
# Cloud Source Repositories: Qwik Start
curl -LO raw.githubusercontent.com/Techcps/GSP-Short-Trick/master/Cloud%20Source%20Repositories%3A%20Qwik%20Start/techcpsgsp121.sh
sudo chmod +x techcpsgsp121.sh
./techcpsgsp121.sh
# Deploy Microsoft SQL Server to Compute Engine

Level 1: Load Balancers

Getting Started with BigQuery ML


sudo chmod +x quicklabgsp247.sh

./quicklabgsp247.sh

Docker Commands

docker image prune -a --filter "until=24h"

Linux Used Commands

August Level 1: BigQuery ML, Cloud Architecture and Devops Skills

Solving queries with BigQuery ML

  1. Getting Started with BigQuery Machine Learning
  2. Predict Visitor Purchases with a Classification Model in BigQuery ML
  3. Predict Taxi Fare with a BigQuery ML Forecasting Model
  4. Importing Data to a Firestore Database
  5. Build a Serverless Web App with Firebase
  6. Serverless Firebase Development: Challenge Lab
@manojiksula
manojiksula / Arcade Labs.md
Last active July 11, 2023 09:23
Arcade Labs.md
@manojiksula
manojiksula / project.docker-compose.yml
Created December 22, 2022 13:55 — forked from hranicka/project.docker-compose.yml
Traefik & multiple docker-compose projects
version: '3'
services:
nginx:
labels:
- "traefik.enable=true"
- "traefik.http.routers.provys-transformer.rule=Host(`www.example.com`)"
- "traefik.http.routers.provys-transformer.tls=true"
networks:
- traefik

Drupal Commerce Code Snippet

Reference

Snippets -> https://www.drupal.org/documentation/customization/snippets
A beginner's guide to using snippets -> https://www.drupal.org/node/337959
Drupal Commerce 2 Snippets -> https://gist.github.com/jakubhnilicka/00ed4492fea86571ab88a68d0e7a2158
https://gist.github.com/BBGuy/c362a30bb0dda65777b076040b14cab5

#Logger

\Drupal::logger('logger1')->error('<pre>'.print_r($e->getMessage(), TRUE).'</pre>');

Override strings which is defined in core (messages from drupal_set_message or form field markup)

For example:

Service List

Service Name Replacement
user.private_tempstore tempstore.private
@manojiksula
manojiksula / module.install
Created May 27, 2021 12:56 — forked from Erikdekamps/module.install
Drupal 8 - Load taxonomy terms sorted by weight
/**
* Get taxonomy terms sorted by weight.
*
* @param int $vid
* The vocabulary id.
*
* @return array
* Returns an array of term id | name.
*
* @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException