Skip to content

Instantly share code, notes, and snippets.

View alfuken's full-sized avatar

Dan alfuken

View GitHub Profile
# frozen_string_literal: true
# LICENSE: MIT
#
# A very simple deterministic string encryption.
# Variation of a Caesar cipher.
#
# Intended to be used with strings,
# primary purpose of this approach is to merely make it *harder* for an eavesdropper
@alfuken
alfuken / threaded_open-ended_page_processing.rb
Created March 24, 2023 12:44
Fetching and processing undefined number of pages in a threaded manner
# using https://github.com/taganaka/easy_threadpool_rb
require "easy_threadpool"
Thread.abort_on_exception = true
class ThreadsafeCounter
def initialize
@counter = 0
@mutex = Mutex.new
end
// ==UserScript==
// @name Google Search Results Filter Lite, semi-auto, domain-based
// @author zeeLime
// @description Hides search results from specified domains. Requires manual configuration directly in the script code, but simple as F.
// @include *://*.google.*/search*
// @version 2022.08.10.12.17.11
// @license WTFPL
// ==/UserScript==
(function() {