{"id":19508478,"url":"https://github.com/rachpt/shell-scripts","last_synced_at":"2026-06-19T14:32:15.670Z","repository":{"id":134511682,"uuid":"125957989","full_name":"rachpt/shell-scripts","owner":"rachpt","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-08T09:24:54.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-18T14:39:16.582Z","etag":null,"topics":["shell-scripts"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rachpt.png","metadata":{"files":{"readme":"README.md","changelog":"change-url.sh","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-20T03:53:10.000Z","updated_at":"2020-01-08T09:24:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f32ac107-8bfb-471f-9e7a-42682f8fcf63","html_url":"https://github.com/rachpt/shell-scripts","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rachpt/shell-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2Fshell-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2Fshell-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2Fshell-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2Fshell-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rachpt","download_url":"https://codeload.github.com/rachpt/shell-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rachpt%2Fshell-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34536275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["shell-scripts"],"created_at":"2024-11-10T23:07:41.795Z","updated_at":"2026-06-19T14:32:15.653Z","avatar_url":"https://github.com/rachpt.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shell-scripts\n\n这里放一些常用的 shell 脚本。\n\n## formattedOutputConstants\n\n使用方法：\n\n```sh\n./formattedOutputConstants 'constents path 1' 'constents path 2' 'constents path 3' ...\n# 支持大于 1 个弹性常数地址\n\n```\n使用该脚本后，参数文件会变成 unix 格式文本文件。\n\n图样：\n\n![pic](https://ws1.sinaimg.cn/large/675bda05ly1fqfri3pe06j21dw09142w.jpg)\n\n## x265-x264-encode.sh\n\n支持 sd 720 大小，需要自己修改 脚本 头部设置，以及 编码。\n\n使用：\n直接复制 到需要压制的视频所在文件夹，使用 `nohup  \u0026` 模式运行脚本。\n注意会将 脚本所在的所有 名字中不以 _480p.mp4（sd模式） 或者 _720p.mp4（ipad模式）结尾的视频 加入列队。 \n\n## make_zip_upload.sh\n\n配合  `x265-x264-encode.sh` 实现自动压制视频，并压缩打包上传百度网盘。负责压缩上传部分。\n\n## unzip.sh\n\n解压 脚本所在目录以及子目录k中的所有 `rar` 文件，保持路径结构，解压到 `un_zip` 文件夹。\n\n## resize-pic.sh\n\n配合 `unzip.sh` 使用 `ImageMagick` 批量压制缩小图片。\n`-resize 800 -quality 60 ` 核心部分。\n\n## auto_delete_torrentfile.sh\n\n自动删除 watch-dir 中的不在 transmission 列表中的旧的（可以根据最后修改时间判断）文件/文件夹，配合 flexget ratio 选项实现自动管理删除文件。同时可以设置最小容量阈值，以确保不会爆仓。\n\n- 支持文件名、种子文件名中包含空格。\n\n用途，可能是 auto-seed 实现的自动清理思路。\n\n## lambda\\_omega 和 elec\n效果如下图，用于快速转化\n\n![pic](https://ws1.sinaimg.cn/large/675bda05ly1g0vdhzflqdj20ay07mjsu.jpg)\n\nhttps://ws1.sinaimg.cn/large/675bda05ly1g0vdhzflqdj20ay07mjsu.jpg\n\n![pic](https://ws1.sinaimg.cn/large/675bda05ly1g0yo6a9osnj20bk09mjv5.jpg)\n\nhttps://ws1.sinaimg.cn/large/675bda05ly1g0yo6a9osnj20bk09mjv5.jpg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frachpt%2Fshell-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frachpt%2Fshell-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frachpt%2Fshell-scripts/lists"}