{"id":17983518,"url":"https://github.com/techjacker/randomfs","last_synced_at":"2025-04-04T02:12:54.222Z","repository":{"id":141452384,"uuid":"62669588","full_name":"techjacker/randomfs","owner":"techjacker","description":"Random data file generator. Quickly create test fixtures.","archived":false,"fork":false,"pushed_at":"2016-07-15T12:43:28.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T13:36:57.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/techjacker.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}},"created_at":"2016-07-05T21:04:58.000Z","updated_at":"2016-07-05T21:18:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"9dc40dc1-f032-4f19-bc4c-5f796b541eed","html_url":"https://github.com/techjacker/randomfs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Frandomfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Frandomfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Frandomfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Frandomfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techjacker","download_url":"https://codeload.github.com/techjacker/randomfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107828,"owners_count":20884797,"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-10-29T18:17:32.951Z","updated_at":"2025-04-04T02:12:54.206Z","avatar_url":"https://github.com/techjacker.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# randomfs\n\nGenerates x files with random data.\n\nOptions:\n- specify exact content in files\n- repeat exact content at certain frequencies (eg every 10th file created)\n- specify max length of data in files\n\n-----------------------------------------------------------\n## Install\n\n### Binary\n[Download](../../releases) the latest stable release.\n\n### Source\n```\ngo get -u github.com/techjacker/randomfs\n```\n\n\n-----------------------------------------------------------\n## Usage\n```Shell\nUsage: randomfs [options] \u003cno_of_files_to_create\u003e\n\nEg: randomfs 100\n\n  -freq int\n        frequency of the repeat text, eg every 5 files (default 5)\n  -location string\n        the location to put the files (default \"/Users/andy/go/src/github.com/techjacker/randomfs\")\n  -max int\n        the max number of characters per file (default 512)\n  -prev int\n        how often to repeat the content of all the previous files (default 11)\n  -repeat string\n        the repeat text (default \"repeat_text\")\n```\n\n-----------------------------------------------------------\n## Tests\n```Shell\ngo test\n```\n\n-----------------------------------------------------------\n### Docker Example\n\nGenerates 100 files with random data.\n1. Every 5th file contains \"Nothing to see here\"\n2. Every 11th file contains the contents of all previous files\n3. Random data files not exceed 512 characters in text\n\n#### Build\n```Shell\ndocker build -t randomfs/golang .\n```\n\n#### Run\n```Shell\ndocker run -it --name randomfs_golang randomfs/golang /bin/bash\n\napp -location /home 100\n\ncd /home\nls -l /home\n\n# random data\ncat -v 000\n\n# Every 5th file should contain \"repeat_text\"\ncat -v 004\n\n# Every 11th file should contain the contents of all previous files.\ncat -v 010\n\n# Every 11th file should contain the contents of all previous files.\n# But capped at 512 characters\ncat -v 098\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Frandomfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechjacker%2Frandomfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Frandomfs/lists"}