{"id":25856927,"url":"https://github.com/m42e/shell-rest-store","last_synced_at":"2026-01-29T06:34:14.102Z","repository":{"id":34901205,"uuid":"38935176","full_name":"m42e/shell-rest-store","owner":"m42e","description":"Store/Receive something to/from the php-rest-store by pipe","archived":false,"fork":false,"pushed_at":"2015-07-14T20:52:14.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T07:57:51.307Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/m42e.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}},"created_at":"2015-07-11T17:55:54.000Z","updated_at":"2015-07-11T17:55:54.000Z","dependencies_parsed_at":"2022-08-25T00:12:39.413Z","dependency_job_id":null,"html_url":"https://github.com/m42e/shell-rest-store","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m42e/shell-rest-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m42e%2Fshell-rest-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m42e%2Fshell-rest-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m42e%2Fshell-rest-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m42e%2Fshell-rest-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m42e","download_url":"https://codeload.github.com/m42e/shell-rest-store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m42e%2Fshell-rest-store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28867104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T05:56:06.453Z","status":"ssl_error","status_checked_at":"2026-01-29T05:55:57.668Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-03-01T18:29:27.077Z","updated_at":"2026-01-29T06:34:14.088Z","avatar_url":"https://github.com/m42e.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shell REST Store\nA small script to quickly save files or snippets or whatever by piping them to a command which uses a rest interface to perform the operation. \n\nIt depends on curl, and the REST remote is implemented in PHP and you get it [here](https://github.com/m42e/php-rest-store).\n\nYou can use it like this:\n\n```zsh\n$ newtmp something\n3e3a84fc805d808b0803a4a0012e711bb1612a44\n```\nYou get the sha1 for the tmpid you just created.\n``zsh\n$ echo This is something | savetmp something mymetainfo/nothing\n```\nThe savetmp will not output anything unless you pipe it into another command\n```zsh\n$ gettmp savetmp\nThis is something\n```\n```gettmp``` just gets you the raw data, ```gettmpjson``` will repack the content into a json object\n\n```zsh\n$ gettmp something/meta \n{\"written\":{\"date\":\"Mon, 13 Jul 2015 19:51:07 +0200\",\"info\":{\"useragent\":\"curl\\/7.37.1\",\"remote\":\"18.233.121.21\"},\"length\":18,\"accessedvia\":\"something\",\"meta\":{\"from\":\"matthias@matthias-mbp\",\"mymetainfo\":\"nothing\"}}}\n```\nor better use with [jq](http://stedolan.github.io/jq/) to get a formatted output\n\nYou can also append or prepend:\n```zsh\n$ echo Starting: | prependtmp something\n$ echo End | appendtmp something\n```\n\nOr upload a file\n```zsh\n$ newtmp afile\nce25ade3cf7c4c4b5bb61f5447bb8fa9059cc802\n$ savetmpfile myfile\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm42e%2Fshell-rest-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm42e%2Fshell-rest-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm42e%2Fshell-rest-store/lists"}