Skip to content

Instantly share code, notes, and snippets.

View Drowze's full-sized avatar

R Gibim Drowze

View GitHub Profile
@Drowze
Drowze / oh_auto_merge.fish
Last active January 31, 2026 04:33
Automatically approve & merge pull requests based on a GitHub search (which can be across repositories).
# 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
@Drowze
Drowze / proxy_tester.rb
Last active March 17, 2026 17:57
Fetches proxies from multiple urls and test them using multiple threads. Results are saved across runs to avoid re-testing known proxies.
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