Skip to content

Instantly share code, notes, and snippets.

@rxb
rxb / twitter_adguard.txt
Created October 16, 2022 22:37
Block suggested and social tweets using adguard rules
twitter.com#$?#article:has(span[data-testid="socialContext"]) {display: none!important}
twitter.com#$?#div[aria-label="Timeline: Trending now"] {display: none!important}
twitter.com#$?#aside[aria-label="Who to follow"] {display: none!important}
twitter.com#$?#a[aria-label="Search and explore"] {display: none!important}
//// ==UserScript==
// @name hacker_news_readable
// @namespace work.rgb
// @include https://news.ycombinator.com/*
// @version 1
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
@rxb
rxb / feathersJsAppleSignIn.md
Last active April 24, 2024 16:26
Sign in with Apple + FeathersJS: how to implement Apple's OAuth flow with FeathersJS

Sign in with Apple + FeathersJS

Upgrade to FeathersJS 5

FeathersJS uses a package called Grant for most of the OAuth functionality. Grant now supports the Apple OAuth flow, but only in recent versions. FeathersJS v5 (currently in prerelease) uses this new Apple-supporting version of Grant. For this reason, I would suggest first upgrading to FeathersJS v5 (Dove) https://dove.docs.feathersjs.com/guides/migrating.html

Pick a domain for localhost

Sign in with Apple does NOT work with servers set up as localhost. If you haven't already, you'll need to pick a domain for your FeatherJS server. If your main domain is example.com, you might want to pick a subdomain like devapi.example.com. You won't need to change the domain's real dns for this, you can add the alias to your /etc/hosts file:

@rxb
rxb / vaccinebot.js
Last active April 8, 2021 21:00
check the vaccine sites with less carpal tunnel
const puppeteer = require('puppeteer');
// CONFIG
const ZIPCODE = "11222";
const REFRESH_MS = 30000;
const ENABLED = {
northwell: true,
walgreens: true,
nyc: true,
cvs: true
@rxb
rxb / hacker_news_fontsize.js
Last active April 13, 2021 16:24
UserScript to make Hacker News (news.ycombinator.com) readable
//// ==UserScript==
// @name hacker_news_readable
// @namespace work.rgb
// @include https://news.ycombinator.com/*
// @version 1
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {