Latest Posts

[Python] Kill Process By Port

Kill process by port from psutil import process_iter from signal import SIGTERM # or SIGKILL for …

[Python] Check Folder or File Exists

Function to check if a folder exists or not. import os if os . path . isdir ( 'path_to_folder' ) : pr…

FFMPEG Convert Audio Quality

Convert mp3 to flac 16 bit dep and 48k: ffmpeg -y -i "input.mp3" -c:a flac -sample_fmt s16…

FFMPEG Create Video from one Image and one Audio

Create Avi Video: ffmpeg -loop 1 -y -i image8.jpg -i sound11.amr -shortest -acodec copy -vcodec mjpe…

Python random user agent

Random choice a User Agent from list import random def get_ua_rand(): user_agent_list=["Moz…

Python Random String And Number Mix

Function: create random string and number with length: import random import string len=10 #length …

Install tensorflow GPU 2.1.0

install python3.7.8, pip21:  https://www.python.org/downloads/release/python-378/  install tensorflow…