{"id":25668486,"url":"https://github.com/borud/hwid","last_synced_at":"2025-02-24T10:34:17.911Z","repository":{"id":57660518,"uuid":"475503915","full_name":"borud/hwid","owner":"borud","description":"Hardware ID based on the primary network adapter.","archived":false,"fork":false,"pushed_at":"2022-04-01T12:52:20.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-27T21:58:05.837Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borud.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":"2022-03-29T15:25:50.000Z","updated_at":"2022-03-29T15:37:59.000Z","dependencies_parsed_at":"2022-09-16T04:41:27.153Z","dependency_job_id":null,"html_url":"https://github.com/borud/hwid","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fhwid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fhwid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fhwid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Fhwid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borud","download_url":"https://codeload.github.com/borud/hwid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240462632,"owners_count":19805334,"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":"2025-02-24T10:34:12.826Z","updated_at":"2025-02-24T10:34:17.902Z","avatar_url":"https://github.com/borud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hwid\n\nQuick hack to determine the hardware id of a machine.  This uses the MAC address of the primary network interface and expresses it as a string containing the address in base36.  This isn't particularly robust, but it comes in handly in some cases.\n\nTo install the command line utility just to a\n\n```shell\ngo install github.com/borud/hwid/cmd/hwid@latest\n```\n\nIf you want to use it in your application as a library, the following is the source of `cmd/hwid` (just because I know you are too lazy to click 😃)\n\n```go\n\npackage main\n\nimport (\n    \"flag\"\n    \"fmt\"\n    \"log\"\n    \n    \"github.com/borud/hwid\"\n)\n\nvar intf string\n\nfunc init() {\n    flag.StringVar(\u0026intf, \"i\", \"\", \"network interface\")\n    flag.Parse()\n}\n\nfunc main() {\n     id, err := hwid.ID(intf)\n     if err != nil {\n         log.Fatal(err)\n     }\n     fmt.Println(id)\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborud%2Fhwid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborud%2Fhwid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborud%2Fhwid/lists"}