Skip to content

Instantly share code, notes, and snippets.

@absurd
absurd / yt_sidebar_scroll.user.js
Last active February 6, 2026 21:53
YouTube Independent Sidebar Scroll
// ==UserScript==
// @name YouTube Independent Sidebar Scroll
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Makes the YouTube sidebar scroll independently of the main video/comments
// @author Gall
// @match *://www.youtube.com/*
// @exclude *://www.youtube.com/feed/history
// @grant none
// @run-at document-start
@absurd
absurd / resizeYoutubeThumbnails.user.js
Last active February 2, 2026 17:57
Fix Humongous Youtube Sidebar -- Feb 2026
// ==UserScript==
// @name Resize YouTube Thumbnails
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Fix humongous youtube sidebar
// @author Gall
// @match *://www.youtube.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@absurd
absurd / gist:63359db9cf839945e4584c0730e3ad52
Created March 10, 2022 05:11
CSS Selector for Removing Non-Followed Suggested Posts on Twitter.com (e.g. w/ UBlock Origin)
##article:has(div>div>div>div>div>div>div>div>div>div>div>a>span:has-text(/See more/))
@absurd
absurd / keybase.md
Created September 23, 2018 03:30
keybase.md

Keybase proof

I hereby claim:

  • I am absurd on github.
  • I am absurd (https://keybase.io/absurd) on keybase.
  • I have a public key ASCiJNfRGyDlJotXzGuetCtMVX8IMS3CtmjSMSI09TzZXAo

To claim this, I am signing this object:

@absurd
absurd / yarn-voice-start.sh
Created July 9, 2018 01:34
yarn start (for create-react-app) with voice notifications
#!/usr/bin/env bash
unbuffer yarn start | tee >(
while read line
do
if [[ "$line" = *"Starting the development server"* ]]
then
echo "Starting the development server" | say -v Vicki -r 250
elif [[ $line = *"Compiled"* ]]
then
@absurd
absurd / emalias.sh
Last active March 20, 2018 07:02
Emalias -- shell script to quickly generate Postfix email aliases
#!/usr/local/bin/zsh
default_address="you@example.com"
if [ -t 0 ]; then
# read more about heredocs (the <<ENDSSH ... ENDSSH part): https://en.wikipedia.org/wiki/Here_document
ssh you@$EMAIL_SERVER_IP <<ENDSSH
echo "$1@example.com $default_address" | sudo tee -a /etc/postfix/virtual \
&& sudo postmap /etc/postfix/virtual \
&& sudo service postfix restart
ENDSSH
@absurd
absurd / twitter_filter.css
Created March 16, 2018 18:28
Twitter Hide Suggested/Liked Tweets
@-moz-document domain(twitter.com) {
li[data-suggestion-json*="ActivityTweet"] {
display: none;
}
}
@absurd
absurd / gist:04a57c863b4df18e6b557b51d8ad6bc7
Created March 11, 2018 23:23
bin/pylint virtualenv load plugins kludge v1
#!/Users/you/.virtualenvs/yourproject/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip.operations.freeze import freeze
from pylint import run_pylint
if __name__ == '__main__':
04bf5e1c53bca2d919952149caebe350c9e3fdb632045960ad48513f45d63f9a9ea58057eac010652292772b69763c75e8f7f7acef8ae3094b7903a9bcaa6da803
@absurd
absurd / unfalse_poem.py
Last active December 22, 2015 21:29
An unfalse poem that evaluates properly.
# Copyright 2013AD Gallus Absurd
def unfalse_poem():
None is not True or False
for subject in [complex(True,False)]:
subject is not object
for certainty in [complex(False,True)]:
certainty is not Exception
certainty is not license