Skip to content

Instantly share code, notes, and snippets.

View Sebastian1011's full-sized avatar
🗯️

Sebastian Zhang Sebastian1011

🗯️
View GitHub Profile
@Sebastian1011
Sebastian1011 / pyserver.sh
Last active December 1, 2023 05:47
Bash start python simple server
#!/bin/bash
if [ -z "$1" ]; then
# server port can not be empty
echo "server stoped, please input serve port"
exit
fi
echo "Python SimpleHTTPServer Start at port: $1"
@Sebastian1011
Sebastian1011 / fomat.py
Last active December 1, 2023 05:49
format image python script( use python and ffmpeg
#!/usr/bin/python
#coding=utf-8
import os
import sys
import re
def readFile(filePath):
allFiles = os.listdir(filePath)
fileList = []