Skip to content

Instantly share code, notes, and snippets.

View aequabit's full-sized avatar

aequabit aequabit

  • New Babylon
View GitHub Profile
@aequabit
aequabit / imageProxyFixer.user.js
Last active February 5, 2018 15:21
Image Proxy Fixer Userscript
// ==UserScript==
// @name Image Proxy Fixer
// @namespace http://aequabit.de/
// @version 0.1
// @description Removes redundant image proxies from image source attributes
// @author aequabit
// @match *://*/*
// @grant none
// ==/UserScript==
@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

@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 / 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 / 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
// ==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 / 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
@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 / 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 / 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==