This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| heroku accounts:set ACCOUNT_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'httparty' | |
| require 'em-http-request' | |
| class HttpGetStream | |
| def initialize(http_url, listener = nil) | |
| @http_url = http_url | |
| @buffer = '' | |
| self.listener = listener | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function FindProxyForURL(url, host) { | |
| // Home tower: always direct on the LAN, never via the Roku tunnel. | |
| // Must precede the private-subnet rule, which would otherwise match | |
| // the 192.168.1.207 /etc/hosts override and route this to SOCKS. | |
| if (host === "enthooz.duckdns.org") return "DIRECT"; | |
| // Roku corp domains | |
| if (dnsDomainIs(host, ".roku.com") || dnsDomainIs(host, ".rokulabs.net")) { | |
| return "SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080"; | |
| } |