https://github.com/mcaimi/switchproxy
simple console proxy selector
https://github.com/mcaimi/switchproxy
Last synced: 3 months ago
JSON representation
simple console proxy selector
- Host: GitHub
- URL: https://github.com/mcaimi/switchproxy
- Owner: mcaimi
- License: gpl-3.0
- Created: 2019-03-07T15:07:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T16:54:56.000Z (over 7 years ago)
- Last Synced: 2025-03-06T10:22:07.719Z (over 1 year ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===========
Switchproxy
===========
A simple tool to set transient proxies in terminal sessions.
I just needed a way to handle multiple upstream proxies in different bash instances and wanted to write something in ruby for once.
The script works by setting custom environment variables and then spawns a new shell instance in a ruby Thread.
Usage
=====
Setup
-----
Write a proxy spec under the 'specs/' folder:
.. code:: bash
# cat specs/proxy.yaml
---
proxyspec:
name: Default
http_proxy: 192.168.1.1:3128
https_proxy: 192.168.1.1:3128
Recognized keyword are:
- name: The profile identifier, used to select this spec
- http_proxy, https_proxy, ftp_proxy: key,value pair of the proxy environment variables to set in the shell instance
Todo
====
- A little polish here and there (once I have a firmer grasp on the Ruby lang.)