{"id":20284532,"url":"https://github.com/artyom/upload","last_synced_at":"2025-03-04T03:42:40.429Z","repository":{"id":66759000,"uuid":"50724054","full_name":"artyom/upload","owner":"artyom","description":"Command to upload multiple files to a new directory on a remote server via ssh","archived":false,"fork":false,"pushed_at":"2016-01-30T13:10:55.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-14T07:53:56.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/artyom.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":"2016-01-30T12:31:34.000Z","updated_at":"2016-10-21T18:24:14.000Z","dependencies_parsed_at":"2023-03-13T20:29:36.098Z","dependency_job_id":null,"html_url":"https://github.com/artyom/upload","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/artyom%2Fupload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fupload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fupload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fupload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artyom","download_url":"https://codeload.github.com/artyom/upload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780465,"owners_count":20019058,"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-14T14:20:05.951Z","updated_at":"2025-03-04T03:42:40.398Z","avatar_url":"https://github.com/artyom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Command upload uploads files to new directory on a remote server via ssh. For\neach command call new randomly-named remote subdirectory is created.\n\n\tUsage: upload [flags] file...\n\t  -addr string\n\t\tssh host:port (default \"localhost:22\")\n\t  -dir string\n\t\tremote directory to upload files to (default \"/tmp\")\n\t  -long\n\t\tgenerate long subdirectory name\n\t  -url string\n\t\tremote url base to open after upload\n\t  -user string\n\t\tssh connection username (default \"$USER\")\n\nCurrent limitations:\n\n * only files are supported, not directories;\n * ssh-agent is used for authentication.\n\n## Advanced usage\n\nCan be used to create basic one-person web-share service:\n\nConsider you have a cheap VPS serving `/var/www` as http://example.com. Create\ndirectory `/var/www/pub`, then run upload on some files like this:\n\n\tupload -addr my-vps:22 -dir /var/www/pub -url http://example.com/pub cats1.gif cats2.gif\n\nThis should create randomly-named directory inside `/var/www/pub`, upload both\nfiles into it, then print directory name to stdout (ex. `/var/www/pub/a1`) and\nopen http://example.com/pub/a1 in your browser so you can check it and share\n(your web server is expected to show directory listings for this to work).\n\nFor OS X users such things can be integrated into UI with a little help of\nAutomator. Run Automator and create a new Service that looks like this:\n\n![Automator action screenshot](https://cbxp.in/c0/automator%20screenshot.png)\n\nAdjust script providing your server details, save this as \"Share files on web\"\nand you'll get a nice Finder context menu:\n\n![Finder context menu displaying custom action](https://cbxp.in/c0/finder%20context%20menu.png)\n\n## LICENSE\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom%2Fupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartyom%2Fupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom%2Fupload/lists"}