Skip to content

Instantly share code, notes, and snippets.

View aequabit's full-sized avatar

aequabit aequabit

  • New Babylon
View GitHub Profile
@aequabit
aequabit / odysee-direct-url-button.user.js
Last active September 5, 2024 03:18
Odysee - Direct URL Button
// ==UserScript==
// @name Odysee - Direct URL Button
// @match https://odysee.com/*/*
// @grant none
// @version 0.0.2
// @author aequabit
// @description Adds a button to the video action bar, which links to the video source file
// @downloadURL https://gist.github.com/aequabit/9390d0fc686337410d4e854ffb9549d2/raw/odysee-direct-url-button.user.js
// ==/UserScript==
@aequabit
aequabit / synctube-play-history.user.js
Last active September 9, 2024 06:05
SyncTube - Play History
// ==UserScript==
// @name SyncTube - Play History
// @match https://sync-tube.de/room/*
// @grant none
// @version 0.4
// @author aequabit
// @description Remembers which videos were played
// @downloadURL https://gist.github.com/aequabit/cc2c57e9018ac4f959a7f9007083634d/raw/synctube-play-history.user.js
// ==/UserScript==
@aequabit
aequabit / youtube-sidebar-playlists.user.js
Last active September 12, 2024 14:36
YouTube Sidebar Playlists
// ==UserScript==
// @name YouTube Sidebar Playlists
// @description Shows playlists in the sidebar again
// @version 0.0.4
// @author aequabit
// @match https://www.youtube.com/*
// @grant none
// @run-at document-start
// @downloadURL https://gist.github.com/aequabit/9f2dcd6af2e7d8958fcc1ffe8e87199a/raw/youtube-sidebar-playlists.user.js
// ==/UserScript==
@aequabit
aequabit / cpt.py
Created November 15, 2023 15:45
Cling cpt.py: Bypass CMake version detection
#! /usr/bin/env python3
# coding:utf-8
###############################################################################
#
# The Cling Interpreter
#
# Cling Packaging Tool (CPT)
#
# tools/packaging/cpt.py: Python script to launch Cling Packaging Tool (CPT)
@aequabit
aequabit / twitter-following-dumper.js
Last active August 28, 2020 17:54
Twitter Following Dumper
/**
* twitter-following-dumper
*
* output format is json { uid: string <user id>, handle: string <handle> }
*
* usage:
* - open chrome devtools
* - go to networking tab
* - go to https://twitter.com/following
* - scroll to the bottom of the page
// ==UserScript==
// @name XenForo 2 FreePr0
// @version 1.0
// @description Uncensors pr0 URLs
// @author aequabit
// @match *://*/*
// @grant unsafeWindow
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
// ==/UserScript==
@aequabit
aequabit / xf_hide_signatures.user.js
Created April 21, 2020 10:57
XenForo 2 Hide Signatures
// ==UserScript==
// @name XenForo 2 Signature Hide
// @version 1.0
// @description Removes the signature of specified users
// @author aequabit
// @match *://*/*
// @grant GM_setValue
// @grant GM_getValue
// @grant unsafeWindow
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
@aequabit
aequabit / arch-lvm-setup.md
Last active November 1, 2021 03:09
Arch Linux Setup with LUKS Encrypted LVM

Arch Linux Setup with LUKS Encrypted LVM

  1. Partition the disk $ fdisk /dev/sda

  2. Create EFI partition (skip for legacy)

g (creates GPT)
n
1
@aequabit
aequabit / .php_cs.php
Created June 16, 2018 13:19
Laravel PHP CS Fixer config
<?php
$finder = Symfony\Component\Finder\Finder::create()
->in(__DIR__)
->name('*.php')
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->notName('*.blade.php')
->ignoreDotFiles(true)
@aequabit
aequabit / desktop_setup.md
Last active December 17, 2021 10:46
Desktop Setup

Spotify

Fix "This song is not available, if you have the file on your computer you can import it"

https://medium.com/@felladrin/solving-spotify-problem-this-song-is-not-available-if-you-have-the-file-on-your-computer-you-can-889e1c5ae7ca

sudo wget -N https://github.com/ramedeiros/spotify_libraries/raw/master/libavcodec.so.54.71.100 -O /usr/lib/x86_64-linux-gnu/libavcodec.so.54 && sudo wget -N https://github.com/ramedeiros/spotify_libraries/raw/master/libavformat.so.54.36.100 -O /usr/lib/x86_64-linux-gnu/libavformat.so.54 && sudo wget -N https://github.com/ramedeiros/spotify_libraries/raw/master/libavutil.so.52.6.100 -O /usr/lib/x86_64-linux-gnu/libavutil.so.52 && sudo ldconfig

Fix muting in GNOME

Comment out load-module module-role-cork in /etc/pulse/default.pa