Skip to content

Instantly share code, notes, and snippets.

@muffinresearch
muffinresearch / gist:7488742
Last active August 12, 2016 12:01 — forked from jberkel/gist:1087757
A way to get mkbootimg / mkbootfs without needing to download epic amounts of android src. /hattip @jberkel
mkdir ~/android-tools/
cd ~/android-tools/
wget https://android.googlesource.com/platform/system/core/+archive/master.tar.gz
tar -xzf master.tar.gz
cd libmincrypt
gcc -c *.c -I../include
ar rcs libmincrypt.a *.o
cd ../mkbootimg
gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a
@muffinresearch
muffinresearch / screensaver.plugin
Created June 7, 2012 15:13
Rhythmbox Screeensaver plugin updated to new plugin format.
[Plugin]
Loader=python
Module=screensaver
IAge=1
Name=Screensaver
Description=Pause Rhythmbox when the GNOME screensaver is activated
Authors=Jannik Heller <scrawl@baseoftrash.de>
Copyright=Copyright 2009 Jannik Heller
Website=http://scrawlshome.de/projects/screensaver
@muffinresearch
muffinresearch / gplus-noyoutube.user.js
Created November 8, 2011 12:02
This script adds styles to remove the youtube link widget from G+
// ==UserScript==
// @name Remove Youtube Links from Google+
// @namespace http://muffinresearch.co.uk
// @author Stuart Colville
// @match https://plus.google.com/*
// @description This script adds styles to remove the youtube link widget from G+
// ==/UserScript==
window.addEventListener("load", function(e) {
var sheetNode = document.createElement('style');
@muffinresearch
muffinresearch / spotify_dbus_screensaver.py
Last active April 7, 2016 12:58
Dbus Spotify Screensaver Toggle
#!/usr/bin/env python
"""
Spotify Screensaver Toggle
By Stuart Colville
http://muffinresearch.co.uk/
Requires Spotify Linux Preview.
"""