{"id":22135610,"url":"https://github.com/mfinelli/utilities","last_synced_at":"2026-04-09T11:02:59.749Z","repository":{"id":34968295,"uuid":"39044298","full_name":"mfinelli/utilities","owner":"mfinelli","description":"Random helpful scripts","archived":false,"fork":false,"pushed_at":"2016-12-24T01:04:23.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T15:03:00.134Z","etag":null,"topics":["bash","linux","shell"],"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/mfinelli.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-14T00:23:27.000Z","updated_at":"2016-12-24T01:04:25.000Z","dependencies_parsed_at":"2022-09-01T00:51:28.676Z","dependency_job_id":null,"html_url":"https://github.com/mfinelli/utilities","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mfinelli/utilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfinelli%2Futilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfinelli%2Futilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfinelli%2Futilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfinelli%2Futilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfinelli","download_url":"https://codeload.github.com/mfinelli/utilities/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfinelli%2Futilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28132982,"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-12-30T02:00:05.476Z","response_time":64,"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":["bash","linux","shell"],"created_at":"2024-12-01T19:15:29.381Z","updated_at":"2025-12-30T22:06:48.754Z","avatar_url":"https://github.com/mfinelli.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utilities\nRandom helpful scripts.\n\n## B27z\nThis script uploads a folder of 7zip volumes to Backblaze's B2 cloud service.\nThe [b2](https://github.com/Backblaze/B2_Command_Line_Tool) command line tool\nand, obviously, a B2 account (currently in beta).\n\nIt uploads files into the following structure:\n\n    s\\\n        something\\\n            something.001\n            something.002\n            something.002\n\nYou need to already have run the authorize\\_account command and pass the\nbucket name.\n\n    $ ./b27z.sh \"bucket_name\"\n\n## BW PDF\nThis script will convert a color PDF into a black and white PDF.\n\n    $ ./bw-pdf.sh \"input.pdf\" \"output.pdf\"\n\n## Enc7z\nThis script generates an encrypted 7z archive of a folder. It also encrypts\nthe filenames of the archive. It is intented for large files that are already\ncompressed and so it does no compression itself. It prompts for the number\nof megabytes by which to split the archive, as well as the destination and\npassword.\n\n    $ ./enc7z.sh \"Folder To Archive\"\n\n## Find Md5\nThis script will search the current directory for directories containing an\nmd5sum file and then change into those directories and run the md5sum check.\n\n    $ ./find-md5.sh\n\n## Gzipped\nThis script is useful for ensuring that you server is configured correctly by\ndownloading a file twice. The first time it will not send any headers and then\nthe second time it will send gzip in the accept-encoding header to allow you\nto compare the difference in download size.\n\n    $ ./gzipped.sh http://www.example.com\n\n## Prefix\nThis script will rename files that begin with the first prefix substituting\nfor the second.\n\n    $ ./prefix.sh \"old_prefix\" \"new_prefix\"\n\n## Re7z\nThis script renames all of the files in the directory stripping out the 7z\npart. Obviously, it should only be run on a directory that contains split 7zip\nfiles.\n\n    $ ./re7z.sh\n\n## S3\nIt is sometimes necessary to upload files to amazon's simple storage service\nin a non-multipart manner. You can pass `--disable-multipart` to the\n[s3cmd](http://s3tools.org/s3cmd) command, however it does not work very well\nwith larger files.\n\nThis script uploads files to an aws s3 bucket in a non-multipart manner using\nthe [awscli](https://github.com/aws/aws-cli)'s low-level s3api put-object\ncommand. Obviously, you need to have the `awscli` installed and configured,\nas well as having access to the bucket. You must also have `basename`,\n`realpath`, and `file` in your path.\n\n    $ ./s3.sh bucket path/to/file\n\n## Shred Dir\nThis script will shred (and remove) every file in the directories matching\nthe pattern and then remove the directory. Use with caution as this is\nobviously very dangerous.\n\n    $ ./shred_dir.sh pattern\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfinelli%2Futilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfinelli%2Futilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfinelli%2Futilities/lists"}