{"id":15465833,"url":"https://github.com/athityakumar/proxyrc","last_synced_at":"2026-03-05T02:03:05.272Z","repository":{"id":71449815,"uuid":"105692049","full_name":"athityakumar/proxyrc","owner":"athityakumar","description":"A short hand-made shell configuration to easily switch proxy settings between my home \u0026 home away from home (KGP).","archived":false,"fork":false,"pushed_at":"2023-02-22T05:07:20.000Z","size":5,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T10:46:29.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/athityakumar.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-03T19:09:39.000Z","updated_at":"2022-02-16T12:01:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e47bc2c-82ea-4efd-8ff8-cc5298666adb","html_url":"https://github.com/athityakumar/proxyrc","commit_stats":{"total_commits":7,"total_committers":3,"mean_commits":"2.3333333333333335","dds":0.4285714285714286,"last_synced_commit":"876b588bbc61f7abd5eb6b71559dad2a1aa18ba6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/athityakumar/proxyrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athityakumar%2Fproxyrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athityakumar%2Fproxyrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athityakumar%2Fproxyrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athityakumar%2Fproxyrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athityakumar","download_url":"https://codeload.github.com/athityakumar/proxyrc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athityakumar%2Fproxyrc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30106152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:39:18.192Z","status":"online","status_checked_at":"2026-03-05T02:00:06.710Z","response_time":93,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-02T01:03:52.822Z","updated_at":"2026-03-05T02:03:05.230Z","avatar_url":"https://github.com/athityakumar.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proxyrc\n\nA proxy configuration file that solves the purpose of switching the proxies while travelling to KGP (proxy) and Home (without proxy), with a **SINGLE COMMAND**.\n\n### What all does it do?\n\n1. Set `http_proxy` and `https_proxy` variables\n2. Set `git config --global` `http.proxy` and `https.proxy` variables\n3. Change `~/.ssh/config` to include Corkscrew\n\n### Setup\n\n1. Be sure to setup your `~/.ssh/config.kgp` and `~/.ssh/config.home` files with the same names (`config.kgp` and `config.home`). For example, my files look like [ssh_config_home](ssh_config_home) and [ssh_config_kgp](ssh_config_kgp).\n\n2. No need to clone the entire repository. Just get the `proxy.sh` file by typing this in your terminal -\n\n ```console\n$ curl -o ~/.proxyrc https://raw.githubusercontent.com/athityakumar/proxyrc/master/proxy.sh\n```\n\n3. Add this to your shell configuration file (`~/.bashrc`, `.zshrc`) -\n\n ```sh\nproxy() { sh ~/.proxyrc $1; }\n```\n\n If you use fish, you can get the function `proxy.fish` file by a simple curl command:\n ```console\n$ curl -o ~/.config/fish/functions/proxy.fish https://raw.githubusercontent.com/athityakumar/proxyrc/master/proxy.fish\n```\n\n### Usage\n\n1. Switch to KGP environment -\n\n```console\n$ proxy kgp\nSwitching to KGP Proxy setting, http://172.16.2.30:8080/\n```\n\n2. Switch to home envrionment (default) -\n\n```console\n$ proxy\nHome, sweet home! No proxy settings.\n```\n\n```console\n$ proxy home\nHome, sweet home! No proxy settings.\n```\n\n### Tweaking\n\nThe `proxy.sh` file is quite straight forward. In case of more proxies, add more if-else cases. If there's a change that applies to KGP population, feel free to send a Pull Request here.\n\n### License\n\nMIT LICENSE 2017 - Athitya Kumar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathityakumar%2Fproxyrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathityakumar%2Fproxyrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathityakumar%2Fproxyrc/lists"}