{"id":22111669,"url":"https://github.com/phx/webshare","last_synced_at":"2025-08-23T00:18:42.089Z","repository":{"id":121579541,"uuid":"358005499","full_name":"phx/webshare","owner":"phx","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-14T18:48:59.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T10:33:52.594Z","etag":null,"topics":[],"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/phx.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":"2021-04-14T18:32:06.000Z","updated_at":"2021-04-14T18:49:02.000Z","dependencies_parsed_at":"2023-07-21T05:27:39.694Z","dependency_job_id":null,"html_url":"https://github.com/phx/webshare","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fwebshare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fwebshare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fwebshare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fwebshare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phx","download_url":"https://codeload.github.com/phx/webshare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245211832,"owners_count":20578437,"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-12-01T10:50:19.355Z","updated_at":"2025-03-24T04:33:57.887Z","avatar_url":"https://github.com/phx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webshare\n\nThis script is used to easily copy files to a directory on a remote host that is used as the document root of a web index.\n\nIt supports nested directories and wildcards and copies the resulting URL or list of URLs to the clipboard.\n\n## Instructions:\n\nChange the following variables in the script:\n\n```\nURL='https://yourshareurl.com'\nWEBROOT='/mnt/media/shared'\nFILEHOST='user@host'\n```\n\nYou should ideally have passwordless SSH set up for the `FILEHOST`.\n\nThe `clipboard()` function is currently set up for MacOS, but feel free to change it to your own clipboard copy command.\n\nIdeally, copy `share.sh` into your `$PATH` as something like `share`.\n\n## Usage:\n\n```\nshare [-dir subdirectory_name] file(s)\n```\n\n### Example 1:\n\n```\nshare file.txt\n# This will create https://yourshareurl.com/file.txt\n```\n\n### Example 2:\n\nNow let's say you have the following files in a `tools` directory:\n```\nfilea.zip\nfileb.zip\nfilec.zip\n```\n\n```\nshare -dir new_subdirectory tools/*\n# This will create the following URLs:\n# https://yourshareurl.com/new_subdirectory/tools/filea.zip\n# https://yourshareurl.com/new_subdirectory/tools/fileb.zip\n# https://yourshareurl.com/new_subdirectory/tools/filec.zip\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphx%2Fwebshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphx%2Fwebshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphx%2Fwebshare/lists"}