Skip to content

Instantly share code, notes, and snippets.

@thesamesam
thesamesam / bashrc
Last active November 30, 2023 22:24
Portage /etc/portage/bashrc hook for testing src_configure with stricter Clang
# Distributed under the terms of the GNU General Public License v2
#
# Hook to make it easier to detect compiler output changes in src_configure with stricter Clang
# Outputs logs to /var/tmp/clang.
# Written by Sam James <sam@gentoo.org> and Arsen Arsenović <arsen@aarsen.me>
#
# For background, please see https://wiki.gentoo.org/wiki/Modern_C_porting.
#
# Instructions:
# 1. Install clang:15 or clang:16 or clang:17
@Tblue
Tblue / mozlz4a.py
Last active July 16, 2024 09:50
MozLz4a compression/decompression utility
#!/usr/bin/env python3
# vim: sw=4 ts=4 et tw=100 cc=+1
#
####################################################################################################
# DESCRIPTION #
####################################################################################################
#
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to
# compress e. g. bookmark backups (*.jsonlz4).
#
@Yengas
Yengas / Kissanime.js
Last active April 5, 2022 01:23
Continous watching, Localstorage features(Where you left an episode), Downloading and Streaming functionality to Kissanime
// ==/UserScript==
// ==UserScript==
// @name Premium Kissanime
// @version 0.5
// @description Tampermonkey script for better kissanime usage.
// @include /https?://(www\.|)kissanime\.(to|org|me|com)/*/
// @copyright 2012+, Yengas
// ==/UserScript==
// Disable Adblock Detection
@tsujigiri
tsujigiri / PKGBUILD
Last active December 16, 2015 18:19
PKGBUILD to install the Debian package from the Leap SDK on Arch Linux – https://www.leapmotion.com/
# Maintainer: Helge Rausch <helge@rausch.io>
# This script is licensed under the MIT license.
# https://gist.github.com/tsujigiri/5476281
#
## Installation
#
# To install the Leap software, you first need to download the SDK for Linux
# from https://developer.leapmotion.com/downloads/leap-motion/sdk using your
# developer account. Unpack it, place the included .deb files in the same
# directory as this PKGBUILD and run `makepkg`. If all goes well this will
@jandk
jandk / cleanup.sh
Last active December 21, 2018 14:30
Clean up some gentoo files
#!/bin/sh
echo "Space free"
df -h | head -n 2
echo "Removing foreign man pages"
find /usr/share/man -type d -not -name man*
echo "Removing gtk docs"
rm -rf /usr/share/gtk-doc