How to Setup Shared VPC on GCP
Setting up a Shared VPC in Google Cloud Platform (GCP) allows you to centrally manage network resources and share them across multiple projects. It is very useful to cut cost as network pricing can be very pricy.
1. Prerequisites
- Having two project on the same organization. You cannot setup shared VPC on non organization projects
- Billing account: Ensure you have a billing account set up in GCP for both projects.
Accessing Dynamic JSON Objects in Golang
When working with JSON data in Go, you often encounter scenarios where the structure of the JSON object is dynamic or unknown at compile time. This can make it challenging to access nested fields within the JSON object. In this article, we'll explore a utility function that allows you to easily retrieve values from dynamic JSON objects.
The Problem
Consider a dynamic JSON object where the structure is not fixed, and you need to access nested fields dynamically. For example:
{ "name": "John", "age": 30, "address": { ...
Cloud Run, Cloud Function, GKE vs Compute Engine
I have experience deploying new projects to Google Cloud Platform (GCP). We chose GCP because of regulations requiring our cloud services to be hosted in Indonesia. In this article, I will compare Cloud Functions, Cloud Run, Compute Engine, and Google Kubernetes Engine (GKE). Here are some key considerations to keep in mind when choosing Google Cloud Platform (GCP) services:
Setup Multiple Github Account
When you have multiple GitHub accounts and encounter issues with incorrect access (e.g., pushing/pulling from the wrong account), you can fix this by managing SSH keys and configuring Git for multiple accounts. Here's how:
1. Use Separate SSH Keys for Each GitHub Account
Step 1: Check Existing SSH Keys
Run this command to check if you already have SSH keys:
ls ~/.ssh/
Look for files like id_rsa
and id_rsa.pub
. If you already have a key for one account, you'll need a new key for the second account.
Install Nginx PhP on Alpine
To install Nginx and PHP on Alpine Linux, you can follow these steps. This guide assumes you have a fresh Alpine Linux installation.
1. Update Alpine Linux:
Start by updating the package index to make sure all repositories are up to date:
apk update
...
Create Custom Table on EspoCrm
EspoCRM supports you in creating custom entities based on your business needs. Follow these steps to get started:
1. Access the Entity Manager
- Log in to your EspoCRM instance as an administrator.
- Navigate to Administration > Entity Manager.
Install Docker Mariadb and its Dashboard
MariaDB or MySql is very popular relational database. You can easily test it out with adminer as its dashboard. To deploy MariaDB on Docker along with its Dashboard, follow these steps:
1. Install Docker
Ensure Docker is installed and running on your system:
2. Pull the MariaDB Docker Image
Pull the official MariaDB Docker image:
docker pull mariadb
Push Local Docker Image to Repo
To log in to Docker and push a local image to a repository (e.g., Docker Hub or a private registry), follow these steps:
1. Log in to Docker
Log in to your Docker registry (Docker Hub or other). If you're using Docker Hub, you can log in using command:
Free HTML Template
Here are some websites that offer free CSS templates:
-
TemplateMo (https://templatemo.com/)
- Pros:
- High-quality, modern, and responsive templates.
- Huge collection of templates.
- Templates are well-designed and suitable for various purposes.
- Cons:
- None noted.
- Pros:
About Me
I am an experienced IT engineer proficient in GoLang, NodeJS, Typescript, PHP, Python, and Java. I have been actively involved in system design and application development, particularly focusing on microservices architecture. My expertise extends to developing applications using various cloud services. I am passionate about learning new technologies and thrive in collaborative team environments. Additionally, I have leadership experience and enjoy mentoring others...