{"id":20204494,"url":"https://github.com/baines/cgiquotes","last_synced_at":"2025-10-20T02:44:10.724Z","repository":{"id":147753941,"uuid":"99371550","full_name":"baines/cgiquotes","owner":"baines","description":"CGI webapp for viewing quotes","archived":false,"fork":false,"pushed_at":"2019-07-04T22:01:46.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T09:25:54.590Z","etag":null,"topics":["c","cgi","cgi-application","quotes"],"latest_commit_sha":null,"homepage":"https://dev.abaines.me.uk/quotes","language":"C","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/baines.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":"2017-08-04T18:53:19.000Z","updated_at":"2020-08-14T18:12:46.000Z","dependencies_parsed_at":"2023-05-27T10:30:26.491Z","dependency_job_id":null,"html_url":"https://github.com/baines/cgiquotes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/baines/cgiquotes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baines%2Fcgiquotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baines%2Fcgiquotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baines%2Fcgiquotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baines%2Fcgiquotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baines","download_url":"https://codeload.github.com/baines/cgiquotes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baines%2Fcgiquotes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263715390,"owners_count":23500246,"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":["c","cgi","cgi-application","quotes"],"created_at":"2024-11-14T05:13:33.048Z","updated_at":"2025-10-20T02:44:05.675Z","avatar_url":"https://github.com/baines.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a CGI program written in C to serve a quote database website.\n\nCurrently, it serves data from the `QUOTES_ROOT` directory in 4 formats:\nhtml, json, csv, and \"raw\" which is just specialized csv with easier parsing\nshown here:\n\n```\nraw      :: *(raw_line)\nraw_line :: id \",\" epoch \",\" text \"\\n\"\nid       :: *(0-9)\nepoch    :: *(0-9)\ntext     :: *(any char except '\\n')\n```\n\nEdit quotes.h to change the location of `QUOTES_ROOT`, and add files there\nnamed \\#name. Make sure the name is html-safe and the dir has rw permissions.\n\nIt also now supports POST and DELETE to add/edit/delete quotes remotely.\nFor this to work, you need to choose a random username + password, concat them\nwith a colon, base64 it, and put it in QUOTES_AUTH env var. Then you can use the\nurl 'https://USERNAME:PASSWORD@asdf.test/quotes/' for POST/DELETE operations.\n\nPOSTing data to /quotes/name will add that data as a new quote, and return the\nid + timestamp of this new quote, separated by a comma.\n\nPOSTing data of the form '\\[epoch\\]:\\[text\\]' to /quotes/name/id will edit the\nquote's epoch or text (or both). If you only want to change the text, remember\nto include that leading colon.\n\nDELETEing the url /quotes/name/id will.. well, it'll delete the quote, \nwhat did you expect?\n\nExample nginx configutation (using fcgiwrap):\n\n```\nlocation /quotes {\n\troot /var/www/quotes/;\n\n\tfastcgi_param SCRIPT_FILENAME /var/www/quotes/cgi-bin/quotes;\n\tfastcgi_param DOCUMENT_URI    $document_uri;\n\tfastcgi_param REQUEST_URI     $request_uri;\n\tfastcgi_param REQUEST_METHOD  $request_method;\n\tfastcgi_param CONTENT_LENGTH  $content_length;\n\n\tfastcgi_param QUOTES_AUTH     [base64'd user:pwd]\n\n\tfastcgi_pass unix:/var/run/fcgiwrap.socket;\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaines%2Fcgiquotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaines%2Fcgiquotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaines%2Fcgiquotes/lists"}