This post describes a simple method to easily switch in and out of proxies if you use one occasionally.

It’s actually pretty simple. I use Google Chrome as my primary browser, and firefox occasionally for testing websites. So, I simply set firefox to be a browser for browsing sites behind a proxy.

sudo sed -i.bak 's/firefox/proxychains firefox/g' /usr/share/applications/firefox.desktop

In this method, I used proxychains to set the proxy server configuration.

I added a third command in the menu in case I didn’t want to use a proxy.

just edit the /usr/share/applications/firefox.desktop file:

...
#Edit the following line to add NewNonProxyWindow;
Actions=NewWindow;NewPrivateWindow;NewNonProxyWindow;
...
#Add the following lines at the end of the file
[Desktop Action NewNonProxyWindow]
Name=Open a New Non-Proxy Window
Exec=proxychains firefox
OnlyShowIn=Unity;

STDIN inputs via Sublime Text (sort of)

I love Sublime Text. I really do. I can put a ring on it if it had any corporeal form. I've been using it so much, that trying to work on...… Continue reading

Customizing the Dev Environment

Published on July 18, 2014