Skip to content

Instantly share code, notes, and snippets.

View aequabit's full-sized avatar

aequabit aequabit

  • New Babylon
View GitHub Profile
@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

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