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
| # Example: | |
| # oh_auto_merge 'archived:False org:MyOrg is:pr state:open author:app/dependabot' | |
| function oh_auto_merge --argument-names search_query | |
| set -l graphql_query 'query SearchPullRequests($search_query: String!) { | |
| viewer { | |
| login | |
| } | |
| search( | |
| query: $search_query |
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 'net/http' | |
| require 'uri' | |
| require 'logger' | |
| require 'parallel' | |
| # Fetch proxies from multiple sources and test them against a specified URL, measuring response code and latency. | |
| # Results are saved and reloaded on subsequent calls to avoid retesting recently tested proxies. | |
| # Working proxies are saved in a separate text file with their response code and latency for easy reference. | |
| class ProxyTester | |
| # known exceptions that can be raised when testing a http proxy |
OlderNewer