{"id":16886793,"url":"https://github.com/davidebeatrici/toggle-nic","last_synced_at":"2025-04-11T13:54:00.141Z","repository":{"id":100584302,"uuid":"213547740","full_name":"davidebeatrici/toggle-nic","owner":"davidebeatrici","description":"A simple command-line tool that allows you to easily toggle (enable/disable) a network interface on Windows. Pull requests are welcome!","archived":false,"fork":false,"pushed_at":"2021-03-21T07:35:07.000Z","size":14,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T10:11:52.963Z","etag":null,"topics":["card","disable","enable","interface","network","nic","toggle","windows"],"latest_commit_sha":null,"homepage":"","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/davidebeatrici.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":"2019-10-08T04:18:14.000Z","updated_at":"2025-02-10T12:32:36.000Z","dependencies_parsed_at":"2023-05-16T03:57:35.971Z","dependency_job_id":null,"html_url":"https://github.com/davidebeatrici/toggle-nic","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidebeatrici%2Ftoggle-nic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidebeatrici%2Ftoggle-nic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidebeatrici%2Ftoggle-nic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidebeatrici%2Ftoggle-nic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidebeatrici","download_url":"https://codeload.github.com/davidebeatrici/toggle-nic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248412091,"owners_count":21099048,"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":["card","disable","enable","interface","network","nic","toggle","windows"],"created_at":"2024-10-13T16:41:24.130Z","updated_at":"2025-04-11T13:54:00.133Z","avatar_url":"https://github.com/davidebeatrici.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://dev.azure.com/davidebeatrici/toggle-nic/_apis/build/status/CI?branchName=master)](https://dev.azure.com/davidebeatrici/toggle-nic/_build/latest?definitionId=4\u0026branchName=master)\n\n## Usage\nList interfaces:\n```batch\ntoggle-nic --list\n```\n\nDisable interface #11:\n```batch\ntoggle-nic 11 --disable\n```\n\nEnable interface #11:\n```batch\ntoggle-nic 11 --enable\n```\n\n## Build instructions\n\n#### Visual Studio 2017+\n\n1. Launch Visual Studio and open the repository, the IDE will automatically detect the CMake project.\n\n2. Build the project.\n\n#### nmake\n\n1. Open a command prompt window inside the repository, with the MSVC environment initialized.\nYou can do that by opening one of the `Tools Command Prompt for VS` shortcuts under the Visual Studio folder in the Start menu.\nThe shortcuts point to the `.bat` files that can be found in `VC/Auxiliary/Build`, inside the Visual Studio installation directory.\nYou can also open a \"clean\" command prompt window and run one of the scripts (depending on the architecture you want to build the project for).\nFor example, if you want to build a 64 bit binary and have Visual Studio 2019 Community, you would have to run:\n```\ncall \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"\n```\n\nThe path differs if you have a different Visual Studio version (e.g. Professional) or if you changed it during the installation.\n\n\n2. Create a working directory for CMake and enter it:\n```batch\nmkdir build \u0026\u0026 cd build\n```\n\n3. Run CMake with the `NMake Makefiles` generator (otherwise it generates a Visual Studio solution):\n```batch\ncmake -G \"NMake Makefiles\" ..\n```\n\n4. Build:\n```batch\nnmake\n```\n\n#### MSYS2\n\n1. Open either `MSYS2 MinGW 32-bit` or `MSYS2 MinGW 64-bit` and go inside the repository.\n\n2. Create a working directory for CMake and enter it:\n```bash\nmkdir build \u0026\u0026 cd build\n```\n\n3. Run CMake:\n```bash\ncmake -G \"MSYS Makefiles\" ..\n```\n\n4. Build:\n```bash\nmingw32-make\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidebeatrici%2Ftoggle-nic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidebeatrici%2Ftoggle-nic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidebeatrici%2Ftoggle-nic/lists"}