{"id":18557999,"url":"https://github.com/zh/turl","last_synced_at":"2025-04-10T01:32:34.147Z","repository":{"id":401859,"uuid":"20217","full_name":"zh/turl","owner":"zh","description":"TinyURL service in Ramaze","archived":false,"fork":false,"pushed_at":"2009-07-16T01:18:42.000Z","size":90,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T14:37:46.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/zh.png","metadata":{"files":{"readme":"README","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":"2008-05-28T15:16:50.000Z","updated_at":"2019-08-13T13:25:21.000Z","dependencies_parsed_at":"2022-07-14T12:17:30.680Z","dependency_job_id":null,"html_url":"https://github.com/zh/turl","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/zh%2Fturl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fturl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fturl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fturl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zh","download_url":"https://codeload.github.com/zh/turl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140749,"owners_count":21054346,"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-06T21:38:38.930Z","updated_at":"2025-04-10T01:32:29.131Z","avatar_url":"https://github.com/zh.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"TinyURL Ramaze Application\n===========================\n\nRequired gems\n--------------\n\nsqlite3-ruby, sequel, validatable, ramaze, thin\n\n\nFeatures\n---------\n\n- everything in one file - model, view, controller\n- auto create the database if missing\n- unique urls in the database \n- url hits counting\n- API for command-line access - can shorten urls and restore the original urls\n\n\nUsage\n------\n\n $ curl -O turl.rb \"http://github.com/zh/turl/tree/master%2Fturl.rb?raw=true\"\n $ ruby turl.rb\n # browse http://localhost:7000/\n # shorten url (turl)\n $ curl http://admin:secret@localhost:7000/_api?turl=http://github.com/zh/turl/\n # restore the original url\n $ curl http://admin:secret@localhost:7000/_api?url=abc\n # number of hints for given turl\n $ curl http://admin:secret@localhost:7000/_api?hits=abc\n\nDo not forget to change the BASE_URL and LOGINS values. By default the database \nfile (sqlite3) will be created in the same directory with turl.rb. If this is not \nacceptable, change the DB_FILE line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Fturl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzh%2Fturl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Fturl/lists"}