Skip to content

Instantly share code, notes, and snippets.

View dungxtd's full-sized avatar
:dependabot:

Dung Ta Dinh (Dell) dungxtd

:dependabot:
View GitHub Profile
# Build: docker build -t seleium_chrome -f selenium_chrome.dockerfile .
# Run: docker run selenium_chrome
FROM python:3.8
RUN apt-get update && apt-get install -y unzip
# Install chrome & chromedriver dependencies
# Source: https://github.com/puppeteer/puppeteer/blob/v5.5.0/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix
# see section "Debian Dependencies"
@dungxtd
dungxtd / README.md
Created April 5, 2025 14:39 — forked from nivethan-me/README.md
Add Cloudflare Custom Domain to Vercel

Add Cloudflare custom domain to Vercel

  1. Sign up and sign in to Cloudflare https://dash.cloudflare.com/sign-up.
  2. In your Cloudflare dashboard, select the Domain Registration > Register Domains tab.
  3. Search for your favorite domain and purchase it. In my case, I purchased the domain https://nivethan.me/ for my portfolio.
  4. Sign in to Vercel and go to your dashboard, where you can see all your projects in the Overview tab.
  5. Click on a project and on the top right, select Domains.
  6. Type your domain in the text box, e.g., nivethan.me, and click Add.
  7. Select the recommended option: Add www.nivethan.me and redirect nivethan.me to it.
  8. Vercel will show an invalid configuration under your domains and display the relevant A record IP under nivethan.me and a CNAME IP under www.nivethan.me. These need to be set up on Cloudflare to make it work.
@dungxtd
dungxtd / pyenv-wsl-ubuntu_22.04.md
Created March 10, 2025 11:17 — forked from iambryancs/pyenv-wsl-ubuntu_22.04.md
Using Pyenv in WSL Ubuntu 22.04 LTS to install Python 3.8

Using Pyenv in WSL Ubuntu 22.04 LTS to install Python 3.8

Env

  • Windows 10
  • Ubuntu 22.04 WSL
  • zsh

Requirements

  • git
@dungxtd
dungxtd / charles key
Created August 19, 2024 03:29
[charles proxy key] an activation key #key #activation
// Charles Proxy License
// Registration code for any version of Charles, who would want to use a cracked version?
// Charles 4.5.5 is currently the latest version and is available.
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
Author: Neo Peng
"""
Usage:
# From tensorflow/models/
# Create train data:
python3 generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=data/train.record
# Create test data:
python3 generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=data/test.record
"""
from __future__ import division
from __future__ import print_function