{"id":21749205,"url":"https://github.com/waynevanson/prng_split","last_synced_at":"2026-01-27T20:37:17.717Z","repository":{"id":264082539,"uuid":"892316279","full_name":"waynevanson/prng_split","owner":"waynevanson","description":"A rust library and CLI subset of the utility `split`, that uses input to deterministically randomise output to many files.","archived":false,"fork":false,"pushed_at":"2024-11-21T22:58:55.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T23:58:17.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/waynevanson.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-21T22:14:10.000Z","updated_at":"2024-11-21T22:58:59.000Z","dependencies_parsed_at":"2024-11-21T23:32:06.605Z","dependency_job_id":null,"html_url":"https://github.com/waynevanson/prng_split","commit_stats":null,"previous_names":["waynevanson/prng_split","waynevanson/range-split","waynevanson/prng-split"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Fprng_split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Fprng_split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Fprng_split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Fprng_split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waynevanson","download_url":"https://codeload.github.com/waynevanson/prng_split/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235644034,"owners_count":19023010,"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","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":[],"created_at":"2024-11-26T08:17:01.291Z","updated_at":"2025-10-07T16:31:26.804Z","avatar_url":"https://github.com/waynevanson.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `range-split`\n\nA subset of the UNIX `split` command built with a PRNG for creating files of differening and deterministic sizes, seeded from the input.\n\n## Quick start\n\nHere's the output of `prng_split --help`\n\n```sh\nUsage: prng_split [OPTIONS] \u003cRANGE\u003e [FILE]\n\nArguments:\n  \u003cRANGE\u003e\n          The range of file sizes that can be generated. The last generated file has no lower bound.\n\n          [n,N] (n,N) [n,N) (n,N]\n\n  [FILE]\n          The file to read contents from. If omitted, defaults to standard input\n\nOptions:\n  -p, --prefix \u003cPREFIX\u003e\n          the path prefixed to the start of the generated file. Can be a directory or a path\n\n          [default: \"\"]\n\n  -f, --factor \u003cFACTOR\u003e\n          How many characters file names will be. `aaaa` is the default start when set to `4`.\n\n          When this overflows, it will be `zzzz[a-z]` then `zzzzz[a-z]`.\n\n          [default: 4]\n\n  -v, --verbose...\n          Increase logging verbosity\n\n  -q, --quiet...\n          Decrease logging verbosity\n\n  -h, --help\n          Print help (see a summary with '-h')\n```\n\n## Use cases\n\n### Hosting large files in a repository\n\nThere's a bit of fluffling around but this can be used to host large files in GitHub without them knowing.\n\n```sh\n#  archive, compress, split\n\nINPUT_DIR=\"path/to/big/directory\"\nPREFIX=\".parts/\"\nRANGE=\"(0KB,50MB)\" # 50MB is GitHub recommended max size.\ntar cf - \"$INPUT_DIR\" | xz -9 -c | range-split -vvvv --factor 16 --prefix \"$PREFIX\" \"$RANGE\"\n```\n\n```sh\n# concatenate, uncompress, unarchive\n\ncat \"$@\" | xz -d -c | tar xf -\n```\n\n## Nix (Flakes)\n\nThis library is available as a flake.\n\n```nix\n{\n    inputs = {\n        range-split.url = \"github:waynevanson/elevated-cycling\";\n    };\n\n    outputs = {}: {\n\n    };\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynevanson%2Fprng_split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaynevanson%2Fprng_split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynevanson%2Fprng_split/lists"}