{"id":18803541,"url":"https://github.com/rofrol/proxy.sh","last_synced_at":"2025-07-26T10:12:33.374Z","repository":{"id":66526172,"uuid":"49258276","full_name":"rofrol/proxy.sh","owner":"rofrol","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-30T10:01:38.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T07:37:04.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rofrol.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":"2016-01-08T07:56:18.000Z","updated_at":"2016-01-20T11:03:22.000Z","dependencies_parsed_at":"2023-04-14T11:47:12.665Z","dependency_job_id":null,"html_url":"https://github.com/rofrol/proxy.sh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofrol%2Fproxy.sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofrol%2Fproxy.sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofrol%2Fproxy.sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofrol%2Fproxy.sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rofrol","download_url":"https://codeload.github.com/rofrol/proxy.sh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239735263,"owners_count":19688262,"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":"2024-11-07T22:35:57.879Z","updated_at":"2025-02-19T21:15:37.668Z","avatar_url":"https://github.com/rofrol.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proxy.sh\n\nShell script to set proxy for various programs.\n\n## Usage\n\n```bash\nsh proxy.sh \u003cproxy\u003e \u003cexception\u003e\n```\n\nOr you can set env vars HTTP_PROXY and HTTP_PROXY_EXCEPTION and run\n\n```bash\nsh proxy.sh\n```\n\nThere is also file `.env.example` and you can copy it to `.env` and set your config. Then you can use https://github.com/kennethreitz/autoenv to automatically source env variables from `.env` file whenever you cd to directory.\n\n\n## Copmarision to setting env variables HTTP_PROXY and HTTPS_PROXY\n\n### Pros\n\n- Single script run and everything works\n- You don't need to restart all the programs to reread env variables, when you unhibernate your machine and there is no proxy in the network\n- If you need to clone some repo which is accessible not through proxy, you don't need to unreset proxy like this `git clone --config \"http.proxy=\"` and then reset proxy inside repo\n- You can have exceptions for git and bower\n\n### Cons\n\n- You may need to set proxy for new programs\n\n## TODO\n\n\n- [x] Use `git config include.path` to unclobber `~/.gitconfig`\n- [ ] Evaulate alternatives\n  - [ ] http://cntlm.sourceforge.net/\n  - [ ] [Microsoft Firewall Client for ISA Server](https://www.microsoft.com/en-us/download/details.aspx?id=10193)\n- [ ] Add unproxy.sh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frofrol%2Fproxy.sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frofrol%2Fproxy.sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frofrol%2Fproxy.sh/lists"}