Skip to content

Instantly share code, notes, and snippets.

View lemuelbarango's full-sized avatar
🤓
Learning and Building

Lemuel Barango lemuelbarango

🤓
Learning and Building
View GitHub Profile
@lemuelbarango
lemuelbarango / ubo.filters.txt
Last active September 16, 2024 17:45
uBlock Origin Filters
! Title: lemuelbarango's personal filters
! Description: Filters I use myself but may cause unintended effects of other users. Mostly peculiar YouTube filters.
! Homepage: https://gist.githubusercontent.com/lemuelbarango/03accfe714faa542f628d29e9dd57430/raw/ubo.filters.txt
! Expires: 1 days (update frequency)
! Version: Latest
! Syntax: AdBlock
! REDDIT
! Hide AutoModerator comments
! https://www.reddit.com/r/uBlockOrigin/comments/140lp15/any_way_to_hide_automoderator_comments_with_ublock/
@lemuelbarango
lemuelbarango / webhook_subscription.rb
Last active June 12, 2020 19:47
GraphQL Ruby Webhook Subscriptions Implementation
require 'graphql'
require 'securerandom'
require 'httparty'
class WebhookSubscriptions < GraphQL::Subscriptions
def initialize(**args)
super
# Using concurrent maps to persist events and subscription information
# This can be switched for a DATABASE table/columns
@events = Concurrent::Map.new { |h, event_id| h[event_id] = [] }