├── .gitignore ├── 001.Windows快速关机重启 ├── windows_quickly_reboot.py └── windows_quickly_shutdown.py ├── 002.快速搜索百度百科 └── quick_search_baidu_baike.py ├── 003.批量在文件开头加文本 ├── add_str_for_each_file.py └── add_str_for_each_file_postfix.py ├── 004.快速将路径转换为C语言格式 └── windows_convert_path_to_c++_format.py ├── 005.快速发邮件 └── quick_send_email.py ├── 006.提取文本中电话号码和邮箱 └── extract_phone_and_email.py ├── 007.创建文件夹的ZIP备份或快照 └── backup_folder_to_zip.py ├── 008.列出目录中特定后缀的所有文件 └── list_specific_postfix_file.py ├── 009.获取Windows用户文件夹位置 └── achieve_windows_user_folders.py ├── 010.批量重命名文件 ├── dir1 │ ├── 1.txt │ ├── 10.txt │ ├── 11.txt │ ├── 12.txt │ ├── 13.txt │ ├── 14.txt │ ├── 15.txt │ ├── 16.txt │ ├── 17.txt │ ├── 18.txt │ ├── 19.txt │ ├── 2.txt │ ├── 20.txt │ ├── 21.txt │ ├── 22.txt │ ├── 23.txt │ ├── 24.txt │ ├── 25.txt │ ├── 26.txt │ ├── 27.txt │ ├── 28.txt │ ├── 29.txt │ ├── 3.txt │ ├── 30.txt │ ├── 31.txt │ ├── 32.txt │ ├── 33.txt │ ├── 34.txt │ ├── 35.txt │ ├── 36.txt │ ├── 37.txt │ ├── 38.txt │ ├── 39.txt │ ├── 4.txt │ ├── 40.txt │ ├── 41.txt │ ├── 42.txt │ ├── 43.txt │ ├── 44.txt │ ├── 45.txt │ ├── 46.txt │ ├── 47.txt │ ├── 48.txt │ ├── 49.txt │ ├── 5.txt │ ├── 50.txt │ ├── 6.txt │ ├── 7.txt │ ├── 8.txt │ └── 9.txt └── rename_batch_txt_files.py ├── 011.批量创建1000个文本文件 └── create_batch_txt_files.py ├── 012.批量创建1000个文本文件(Shell) └── create_1000_text_file.sh ├── 013.快速git提交(Shell) └── git-fast-commit-push.sh ├── 014.Windows快速复制为C格式路径 └── copy_as_c_format_path.py ├── 015.MySQL数据库快速导出(Shell) ├── mysql_fast_dump.sh └── mysql_fast_dump_fixed_dbname.sh ├── 016.Ubuntu自动更换国内源(Shell) ├── UbuntuAutoChangeSource.sh ├── ubuntu_aliyun_14.04_list ├── ubuntu_aliyun_16.04_list ├── ubuntu_aliyun_18.04_list ├── ubuntu_netease_14.04_list ├── ubuntu_netease_16.04_list ├── ubuntu_netease_18.04_list ├── ubuntu_tsinghua_14.04_list ├── ubuntu_tsinghua_16.04_list └── ubuntu_tsinghua_18.04_list ├── 017.识别剪贴板中二维码图片内容 └── recognize_qrcode_from_clipboard.py └── README.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/.gitignore -------------------------------------------------------------------------------- /001.Windows快速关机重启/windows_quickly_reboot.py: -------------------------------------------------------------------------------- 1 | # http://codec.wang 2 | # 功能描述: 3 | # 执行脚本,快速重启 4 | 5 | 6 | import os 7 | 8 | os.system('shutdown -R -T 0') 9 | -------------------------------------------------------------------------------- /001.Windows快速关机重启/windows_quickly_shutdown.py: -------------------------------------------------------------------------------- 1 | # http://codec.wang 2 | # 功能描述: 3 | # 执行脚本,快速关机 4 | 5 | 6 | import os 7 | 8 | os.system('shutdown -s -t 0') 9 | -------------------------------------------------------------------------------- /002.快速搜索百度百科/quick_search_baidu_baike.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/002.快速搜索百度百科/quick_search_baidu_baike.py -------------------------------------------------------------------------------- /003.批量在文件开头加文本/add_str_for_each_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/003.批量在文件开头加文本/add_str_for_each_file.py -------------------------------------------------------------------------------- /003.批量在文件开头加文本/add_str_for_each_file_postfix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/003.批量在文件开头加文本/add_str_for_each_file_postfix.py -------------------------------------------------------------------------------- /004.快速将路径转换为C语言格式/windows_convert_path_to_c++_format.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/004.快速将路径转换为C语言格式/windows_convert_path_to_c++_format.py -------------------------------------------------------------------------------- /005.快速发邮件/quick_send_email.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/005.快速发邮件/quick_send_email.py -------------------------------------------------------------------------------- /006.提取文本中电话号码和邮箱/extract_phone_and_email.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/006.提取文本中电话号码和邮箱/extract_phone_and_email.py -------------------------------------------------------------------------------- /007.创建文件夹的ZIP备份或快照/backup_folder_to_zip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/007.创建文件夹的ZIP备份或快照/backup_folder_to_zip.py -------------------------------------------------------------------------------- /008.列出目录中特定后缀的所有文件/list_specific_postfix_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/008.列出目录中特定后缀的所有文件/list_specific_postfix_file.py -------------------------------------------------------------------------------- /009.获取Windows用户文件夹位置/achieve_windows_user_folders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/009.获取Windows用户文件夹位置/achieve_windows_user_folders.py -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/1.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/10.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/11.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/12.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/13.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/14.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/15.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/16.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/17.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/18.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/19.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/2.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/20.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/21.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/22.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/23.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/24.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/25.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/26.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/27.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/28.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/29.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/3.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/30.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/31.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/32.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/33.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/34.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/35.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/36.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/37.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/38.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/39.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/4.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/40.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/41.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/42.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/43.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/44.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/45.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/46.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/47.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/48.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/49.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/5.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/50.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/6.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/7.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/8.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/dir1/9.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010.批量重命名文件/rename_batch_txt_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/010.批量重命名文件/rename_batch_txt_files.py -------------------------------------------------------------------------------- /011.批量创建1000个文本文件/create_batch_txt_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/011.批量创建1000个文本文件/create_batch_txt_files.py -------------------------------------------------------------------------------- /012.批量创建1000个文本文件(Shell)/create_1000_text_file.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/012.批量创建1000个文本文件(Shell)/create_1000_text_file.sh -------------------------------------------------------------------------------- /013.快速git提交(Shell)/git-fast-commit-push.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/013.快速git提交(Shell)/git-fast-commit-push.sh -------------------------------------------------------------------------------- /014.Windows快速复制为C格式路径/copy_as_c_format_path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/014.Windows快速复制为C格式路径/copy_as_c_format_path.py -------------------------------------------------------------------------------- /015.MySQL数据库快速导出(Shell)/mysql_fast_dump.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/015.MySQL数据库快速导出(Shell)/mysql_fast_dump.sh -------------------------------------------------------------------------------- /015.MySQL数据库快速导出(Shell)/mysql_fast_dump_fixed_dbname.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/015.MySQL数据库快速导出(Shell)/mysql_fast_dump_fixed_dbname.sh -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/UbuntuAutoChangeSource.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/UbuntuAutoChangeSource.sh -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_aliyun_14.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_aliyun_14.04_list -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_aliyun_16.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_aliyun_16.04_list -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_aliyun_18.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_aliyun_18.04_list -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_netease_14.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_netease_14.04_list -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_netease_16.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_netease_16.04_list -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_netease_18.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_netease_18.04_list -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_tsinghua_14.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_tsinghua_14.04_list -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_tsinghua_16.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_tsinghua_16.04_list -------------------------------------------------------------------------------- /016.Ubuntu自动更换国内源(Shell)/ubuntu_tsinghua_18.04_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/016.Ubuntu自动更换国内源(Shell)/ubuntu_tsinghua_18.04_list -------------------------------------------------------------------------------- /017.识别剪贴板中二维码图片内容/recognize_qrcode_from_clipboard.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodecWang/my-libs-and-samples/HEAD/017.识别剪贴板中二维码图片内容/recognize_qrcode_from_clipboard.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 每天一个Bash/Python自动化脚本工具 2 | 3 | More: http://codec.wang 4 | 5 | > 几行代码,改变心情~ --------------------------------------------------------------------------------