Skip to content

Instantly share code, notes, and snippets.

View LeHoaiLinh278's full-sized avatar

Le Hoai Linh LeHoaiLinh278

  • HoChiMinh,Vietnam
View GitHub Profile
@LeHoaiLinh278
LeHoaiLinh278 / hotspot.cmd
Last active February 2, 2023 22:39 — forked from primaryobjects/hotspot-keep-alive.ps1
Script to Enable Windows 10 Mobile Hotspot Automatically After Reboot
PowerShell -Command "Set-ExecutionPolicy Unrestricted" >> "%TEMP%\StartupLog.txt" 2>&1
PowerShell C:\Users\YOUR_USERNAME\Desktop\hotspot.ps1 >> "%TEMP%\StartupLog.txt" 2>&1
#################################################################
# _` #
# _ooOoo_ #
# o8888888o #
# 88" . "88 #
# (| -_- |) #
# O\ = /O #
# ____/`---'\____ #
# .' \\| |// `. #
# / \\||| : |||// \ #
@LeHoaiLinh278
LeHoaiLinh278 / pd_insert.py
Created August 27, 2021 16:43 — forked from shashfrankenstien/pd_insert.py
Pandas DataFrame to MySQL using pymysql
import pymysql
import pandas as pd
HOST = ''
USER = ''
PASSWORD = ''
PORT = 3306
def insert_pandas(df, table, duplicates='update'):
conn = pymysql.connect(
host=HOST,