Skip to content

Instantly share code, notes, and snippets.

View ohyicong's full-sized avatar

Jayden Oh Yicong ohyicong

View GitHub Profile
@ohyicong
ohyicong / update_python_selenium_chromedriver.py
Last active March 30, 2024 23:43
Python: Update selenium chromedriver automatically

Update your python selenium chromedriver automatically

Instead of manually going to https://chromedriver.chromium.org/downloads and download the chromedriver manually.
This code snippet checks for your current chrome version and updates it accordingly.
If chromedriver does not exists, it will download the lastest version.

OS support

  1. Windows
  2. Mac
  3. Linux
@ohyicong
ohyicong / areadme.md
Last active October 13, 2024 19:26
LSTM Auto-Complete Model

LSTM auto complete model

Train your own auto-complete model on the web with Tensorflow.js

OS support

  1. Chrome Web browser

Usage

  1. Download predicts.html
  2. Upload dataset.txt
@ohyicong
ohyicong / ChangeNetworkAddress.ps1
Last active September 16, 2024 03:23
Powershell script to change your MAC & IP Address instantly.
Set-StrictMode -Version 2.0
<#
.SYNOPSIS
Script to change your MAC & IP Address instantly.
.DESCRIPTION
[Input] Change $NetworkAdapterName to the network adapter that you are using.
[Output] MAC Address is randomly assigned from 00-00-00-00-00 to FF-FF-FF-FF-FF
[Output] IP Address is randomly assigned from xxx.xxx.xxx.100/24 to xxx.xxx.xxx.250/24
@ohyicong
ohyicong / SimpleHTTPSServer.py
Last active April 13, 2023 10:02
SimpleHTTPSServer
# Python 3
# Usage: python3 SimpleHTTPSServer.py
from OpenSSL import crypto, SSL
from socket import gethostname
from pprint import pprint
from time import gmtime, mktime
from sys import platform
import os
import http.server, ssl