Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use 'Paste Selection Online' in TextMate behind a proxy Apps
As a coder, I ofently use services like pastebin for sharing code snippets. I recently discovered the 'Paste Selection Online' function in the TextMate bundle, which lets you paste the currently selected code to TextMate's Pastie page. I've been using it with success from home, but I could not connect to the server from my office, as I am behind a web proxy.

I found I could fix this by opening the TextMate preferences pane. In the Advanced section, select 'Shell Variables,' and add a variable like this:

Variable: http_proxy, Value: HOST:PORT, where HOST is the address of the proxy and PORT the port the proxy is listening on.

That's it. Note that I didn't need this for working with the Subversion bundle, as svn was already configured to use the proxy.
    •    
  • Currently 3.00 / 5
  You rated: 3 / 5 (4 votes cast)
 
[7,633 views]  

Use 'Paste Selection Online' in TextMate behind a proxy | 1 comments | Create New Account
Click here to return to the 'Use 'Paste Selection Online' in TextMate behind a proxy' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use 'Paste Selection Online' in TextMate behind a proxy
Authored by: jwbales on Apr 26, '07 09:29:55AM

If, like me, you also have a proxy that authenticates you may want to try exporting the http_proxy variable as follows.

http_proxy='http://username:password@proxy.company.com:port/'

This method works with many (most?) unix utilities, e.g., gem and port (part of MacPorts).

I set this up as an alias so that I can set it and unset it quickly and easily from my shell in Terminal.



[ Reply to This | # ]