Skip to content

My useful and powerful scripts (in Python) 🔨.

Notifications You must be signed in to change notification settings

Freakwill/MyCLT

Repository files navigation

MyScripts

My useful and powerful scripts (in Python).

Scripts 1

jpg2eps

transform .jpg to .eps

-f FromWhat.j(e)pg -t ToWhat.eps

delext

delete files with some special extension names (under a certain directory)

search

search file in general case.

python Scripts/search.py -p "Folders/Math Note" -x "Game*"

findfile

find a file in a more direct way

python Scripts/findfile.py -e md tex -p /Users/william/Folders

Scripts 2

baike

just try python baike.py -i Python (or any item in baiduepdia)

send_mail

send a file or send a folder (compressed before sending)

send_mail.py -p File/Folder -t toWhom -s Subject

login_wifi

login wifi automatically This is my dream of this summer! ㊗️

get_vpn

get vpn server for shadowsocks

summary

get summary of text, also see summary_cn

beyond python

  • head.hs -- Haskell implement of head
  • head.lua -- Lua implement of head
  • wiki.rb -- Ruby cli for wikipedia

common programs

base.py

  • searchFiles # parent parser for searching files
  • search # wrapper of os.walk
  • some common paths:pathlib.Path

Notice

recommended to use pathlib instead of os.path