{"id":21305260,"url":"https://github.com/bsteen/simple-scripts","last_synced_at":"2025-09-01T04:33:04.922Z","repository":{"id":129394533,"uuid":"257048094","full_name":"bsteen/simple-scripts","owner":"bsteen","description":"A collection of simple but useful Bash scripts so I don't have to remember the commands.","archived":false,"fork":false,"pushed_at":"2025-01-11T19:00:24.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T21:35:45.760Z","etag":null,"topics":["avi","bash","bash-script","checksum","combine","djvu","hash","markdown","pdf","sha256","shred","shred-files","utility-scripts","video-converter","webm"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bsteen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-04-19T16:30:21.000Z","updated_at":"2025-01-11T19:00:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"70597a90-330c-4c93-b47c-4cba66c60f89","html_url":"https://github.com/bsteen/simple-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bsteen/simple-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsteen%2Fsimple-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsteen%2Fsimple-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsteen%2Fsimple-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsteen%2Fsimple-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsteen","download_url":"https://codeload.github.com/bsteen/simple-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsteen%2Fsimple-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273073265,"owners_count":25040689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"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":["avi","bash","bash-script","checksum","combine","djvu","hash","markdown","pdf","sha256","shred","shred-files","utility-scripts","video-converter","webm"],"created_at":"2024-11-21T16:17:28.901Z","updated_at":"2025-09-01T04:33:04.863Z","avatar_url":"https://github.com/bsteen.png","language":"Shell","readme":"# simple-scripts\nA collection of simple but useful Bash scripts so I don't have to remember the commands. Most scripts deal with `.pdf` or video file manipulation/conversion. Some scripts have become less \"simple\" over time as I add more functionality, but my goal is to make the code easy to understand over making it compact or efficient.\n\nSee [`LICENSE`](LICENSE) for details.\n\n# PDF Scripts\n* `djvu2pdf.sh`\n    * Convert `.djvu` to `.pdf`\n    * Requires [`ddjvu`](https://linux.die.net/man/1/ddjvu)\n* `pdf2png.sh`\n    * Convert `.pdf` to a set of `.png`s\n* `pdf2png2pdf.sh`\n    * Convert `.pdf` to `.png` and then back to `.pdf`\n    * Useful for stripping hyperlinks and searchable text in PDFs\n    * Requires [`imagemagick`](https://linux.die.net/man/1/imagemagick)\n* `pdfcombine.sh`\n    * Combine multiple `.pdf` files into a single `.pdf`\n    * Requires [`pdftk`](https://linux.die.net/man/1/pdftk)\n# Video Scripts\n* `avcomb.sh`\n    * Combine the audio stream of video 1 with the video stream of video 2\n    * Requires [`ffmpeg`](https://linux.die.net/man/1/ffmpeg)\n* `to-webm.sh`\n    * Converts a video container file (e.g. .mp4) to .webm format\n    * Requires [`ffmpeg`](https://linux.die.net/man/1/ffmpeg)\n* `vid2avi.sh`\n    * Convert a compatible video container file to `.avi` while trying to maintain good quality\n    * Requires [`ffmpeg`](https://linux.die.net/man/1/ffmpeg)\n# Other Scripts\n* `2iso.sh`\n   * Converts a single file or folder into a `.iso` file\n   * Requires `mkisofs`\n* `hashmd.sh`\n    * Calculates the checksum/hashes of all the files in a folder and generates a Markdown-style table of the results.\n    * Requires `libarchive-zip-perl`\n    * See an example of the tables generated [here](https://bsteen.github.io/hashes.html)\n* `randstr.sh`\n    * Get 128 bytes of random data from `/dev/urandom` and print visible ASCII characters only\n    * Passing `-a` makes only alpha-numeric characters print\n    * Passing `-A` makes only alpha-numeric characters print, excluding O0lI\n* `sha256-check.sh`\n    * `--check` if the calculated SHA256 sum of file equals the provided SHA256 sum string\n    * Saves you from making a formatted file with the sum and filename then running `sha256sum --check ...`\n    * Usage: `./sha256-check.sh \u003cfile\u003e \u003cSHA-256-str\u003e`\n* `shredu.sh`\n    * Overwrites the specified file(s) with random data, then with all zeros, and then removes the file(s)\n    * **Has option to recursively shred all files in directory: `-r`**\n    * Uses the [`shred`](https://linux.die.net/man/1/shred) command\n* `upgrade.sh`\n    * Fetch and update packages; then remove old packages\n    * Uses `apt-get` package manager\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsteen%2Fsimple-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsteen%2Fsimple-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsteen%2Fsimple-scripts/lists"}