a batch of useful codes/scripts
Afraid of accidental code loss, so I make this backup.
- 001_get_process_pid_and_meminfo.sh: get pid according to process-name and print process memory info
- 002_print_cpu_info.sh: print cpu information (l1 - l3 cache size/type)
- 003_run_cmd_on_each_nodes.sh: run input command on each node (numa architecture)
- 004_kill_process_via_name.sh: kill the process you input the name
- 005_convert_pdf_to_eps.sh: Convert PDF to eps (encapsulated PostScript)
- 006_format_python.sh: Format python scripts with tools such as
black
- 001_web-font-style-beautification.js: Set the web font to Microsoft Yahei (used in tampermonkey)
- 002_clear_netease_cloud_music_cache.py: clear netease-cloud-music cache
- 003_convert_mp4_to_ts_and_merge.py: convert flv to mp4, convert mp4 to ts and then merge ts to mp4
- 005_obtain_video_play_info.py: obtain video information that exceeds the play threshold
- 006_auto_generate_toc.py: automatically generate a toc for markdown files
- 007_complete_image_path_for_paper_notes.py: complete the path to images
- 008_download_and_convert_b23_subtitle.py: download & convert bilibili cc subtitles to srt subtitle format
- 009_file_time_infos.py: get file size, access time, modification time and creation time
- 00A_video_resolution_duration.py: get video resolution and duration using
ffmpeg
- 00B_download_iqiyi_danmu_and_convert_b23_format.py: search and obtain iQiyi's danmu, and convert to Bilibili format
- 00C_blogs_subscribe.py: pull subscribed blogs to local
- 00E_remove_duplicate_history_cmds.py: Remove duplicate commands in .zsh_history/.bash_history
- 00F_pdf_cutter_tools.py: cut or merge pdfs!
- 010_extract_images_from_qq_group_messages.py: Extract images from QQ group messages
- 011_download_netease_music_lyric.py: Download lyrics from https://music.163.com
- 012_zhihu_zhuanlan.py: Save the Zhihu column article as Markdown
- 001_medium_helper.ts: improve Medium.com reading experience (see doc for details)
Copyright (c) 2019 Lewis Tian. Licensed under the MIT license.