{"id":20572160,"url":"https://github.com/mcaimi/switchproxy","last_synced_at":"2026-04-21T07:33:54.940Z","repository":{"id":69446945,"uuid":"174367122","full_name":"mcaimi/switchproxy","owner":"mcaimi","description":"simple console proxy selector","archived":false,"fork":false,"pushed_at":"2019-03-07T16:54:56.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T10:22:07.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcaimi.png","metadata":{"files":{"readme":"README.rst","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-03-07T15:07:21.000Z","updated_at":"2019-03-07T16:54:57.000Z","dependencies_parsed_at":"2023-05-10T17:45:31.870Z","dependency_job_id":null,"html_url":"https://github.com/mcaimi/switchproxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mcaimi/switchproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcaimi%2Fswitchproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcaimi%2Fswitchproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcaimi%2Fswitchproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcaimi%2Fswitchproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcaimi","download_url":"https://codeload.github.com/mcaimi/switchproxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcaimi%2Fswitchproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-16T05:18:37.441Z","updated_at":"2026-04-21T07:33:54.915Z","avatar_url":"https://github.com/mcaimi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========\nSwitchproxy\n===========\n\nA simple tool to set transient proxies in terminal sessions.\nI just needed a way to handle multiple upstream proxies in different bash instances and wanted to write something in ruby for once.\nThe script works by setting custom environment variables and then spawns a new shell instance in a ruby Thread.\n\nUsage\n=====\n\nSetup\n-----\n\nWrite a proxy spec under the 'specs/' folder:\n\n.. code:: bash\n   # cat specs/proxy.yaml\n   ---\n   proxyspec:\n    name: Default\n    http_proxy: 192.168.1.1:3128\n    https_proxy: 192.168.1.1:3128\n\nRecognized keyword are:\n\n- name: The profile identifier, used to select this spec\n- http_proxy, https_proxy, ftp_proxy: key,value pair of the proxy environment variables to set in the shell instance\n\nTodo\n====\n\n- A little polish here and there (once I have a firmer grasp on the Ruby lang.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcaimi%2Fswitchproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcaimi%2Fswitchproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcaimi%2Fswitchproxy/lists"}