0%

1. Overview

This is a simple example of how to config your own headless chrome browser inside a docker container. Then use a simple Python web application to say hello world with python selenium.

Project structure: - app.py - Dockerfile - bin/ + chromedriver + google-chrome-87_amd64.deb

Source code on GitHub

2. Coding

  • Dockerfile
Read more »

Hey fellow coders! Let me share a personal fork in my life's repository - becoming a dad. It's like deploying a new life feature that brings unexpected joys and challenges.

The Big Reveal

Our journey began in Dalat City, not with debugging, but with discovering we were expecting. The moment I learned about our upcoming 'release' (our baby), it felt like a successful code compilation after countless errors.

Health Check Commit

We faced our first 'bug' early on due to missed health checks. My wife, a fellow enthusiast of chill beers and algorithms, had her concerns. Thankfully, our little 'program' was error-free and running smoothly.

The Deployment Day

Read more »

Getting Started

  1. Download gcloud private key on google cloud console

IAM & Admin -> Service Accounts -> Your account name -> Add key -> Create New Key

  1. Install google cloud sdk
  • Download

curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-317.0.0-linux-x86_64.tar.gz

  • Untar

tar -xf google-cloud-sdk-317.0.0-linux-x86_64.tar.gz

  • Install

./google-cloud-sdk/install.sh

Read more »

In this post, I will show you how to setup your own VPN server in a few simple steps.

## 1. Setup

Step 1 - Create a docker volume to save configuration

$ docker volume create --name ovpn-data

Step 2 - Generate config

This step will pull the docker image kylemanna/openvpn:2.3 and run command ovpn_genconfig. The IP_ADDRESS or DOMAIN is your public ip address, eg udp://vpn.hienhoang.ml

$ docker run -v ovpn-data:/etc/openvpn --log-driver=none --rm kylemanna/openvpn:2.3 ovpn_genconfig -u udp://{{IP_ADDRESS | DOMAIN}}

Step 3 - Generate public private key

This step will generate public private key. You must type in 4 to 1023 characters when ask for PEM pass phrase. This will take a few minutes to generate a strong private key.

Read more »

Hey fellow programmers!

Taking a break from the digital world, I recently ventured into the heart of tradition, attending the Double Ninth Festival. It's like hitting 'pause' on our daily coding routine and rebooting into a world of family, memories, and cultural heritage.

The Journey Begins

Swapping my usual coding marathons for a real marathon, I embarked on an 8-hour bus journey from the bustling city to the serene Lam Dong Province. The mission? To reconnect with my roots at the Double Ninth Festival, a day dedicated to honoring ancestors in Chinese culture.

Read more »