{"id":15394259,"url":"https://github.com/xyproto/cupholder","last_synced_at":"2025-04-15T23:53:11.290Z","repository":{"id":57511824,"uuid":"239727004","full_name":"xyproto/cupholder","owner":"xyproto","description":":tea: Remote CD tray ejection","archived":false,"fork":false,"pushed_at":"2023-08-18T19:07:13.000Z","size":1710,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T03:03:01.935Z","etag":null,"topics":["cd-tray","coffee","eject","ioctl","linux","remote-admin-tool","tea","tray"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.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":"2020-02-11T09:47:14.000Z","updated_at":"2024-10-30T11:46:22.000Z","dependencies_parsed_at":"2024-06-20T14:01:24.636Z","dependency_job_id":"6ef30842-548d-491a-88ac-e60216cfd4bb","html_url":"https://github.com/xyproto/cupholder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fcupholder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fcupholder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fcupholder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fcupholder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/cupholder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"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":["cd-tray","coffee","eject","ioctl","linux","remote-admin-tool","tea","tray"],"created_at":"2024-10-01T15:22:50.769Z","updated_at":"2025-04-15T23:53:11.274Z","avatar_url":"https://github.com/xyproto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cupholder\n[![Build](https://github.com/xyproto/cupholder/actions/workflows/build.yml/badge.svg)](https://github.com/xyproto/cupholder/actions/workflows/build.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/xyproto/cupholder)](https://goreportcard.com/report/github.com/xyproto/cupholder) [![License](https://img.shields.io/badge/License-GPL2-brightgreen)](https://raw.githubusercontent.com/xyproto/cupholder/master/LICENSE)\n\nLocal or remote CD tray ejection, for Linux.\n\n`cupholder` can be useful:\n\n* If you have a large server room with many computers with CD trays, this can be used for finding a specific server.\n* If you need an example for how to call `ioctls` from Go without using C (https://github.com/xyproto/cdrom/blob/main/cd.go).\n\n## Usage\n\n    cupholder\n\nOr when building a project that takes a while, as a notification utility:\n\n    \u003cbuild command\u003e; cupholder\n\nFor specifying a specific device:\n\n    cupholder /dev/cdrom\n\nAll arguments are treated as device filenames.\n\nUse `-s` for silent operation and set the `NO_COLOR` environment variable to disable colors.\n\n## Screenshot\n\n![cupholder in action](img/screenshot.png)\n\n## Web server\n\n`cupholder` includes a web server that can be launched with the `-l` or `--listen` flag, that lets you eject the CD remotely, just by visiting the HTTP page at port 3280 (`3280 = 0x0CD0`).\n\n![webpage](img/httpserver.png)\n\nFor ejecting the tray using `curl`, a command like this can then be used:\n\n    curl --silent --output /dev/null --write-out '%{http_code}\\n' http://localhost:3280/\n\nReplace `localhost` with the hostname or IP address of the server where `cupholder -l` is running.\n\n## Requirements\n\n* Go 1.18 or later\n\n## General info\n\n* Version: 1.2.1\n* License: GPL2\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fcupholder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Fcupholder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fcupholder/lists"}