Stuart Colville muffinresearch

View toggle-finder-hidden-files.sh
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash
 
if [ "$(defaults read com.apple.finder AppleShowAllFiles)" == 'TRUE' ]; then
defaults write com.apple.finder AppleShowAllFiles FALSE
else
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
 
killall Finder
exit 0
View .travis.yml
1 2 3 4 5 6 7 8 9 10
env:
- SLIMERJSLAUNCHER=$(which firefox) DISPLAY=:99.0 PATH=$TRAVIS_BUILD_DIR/slimerjs:$PATH
addons:
firefox: "24.0"
before_script:
- "sh -e /etc/init.d/xvfb start"
- "echo 'Installing Slimer'"
- "wget http://download.slimerjs.org/v0.8/slimerjs-0.8.3.zip"
- "unzip slimerjs-0.8.3.zip"
- "mv slimerjs-0.8.3 ./slimerjs"
View gist:7676683
1 2 3 4 5 6 7
git clone https://android.googlesource.com/platform/system/extras
cd extras/ext4_utils
git checkout android-4.1.1_r1
gcc -o simg2img -lz sparse_crc32.c simg2img.c
ln -s ${PWD}/simg2img ~/bin/simg2img
 
# Last step make sure ~/bin is in your $PATH.
View Create a Mavericks ISO
1 2 3 4 5 6 7 8 9 10
hdiutil attach /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg
cd /tmp
hdiutil convert /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg -format UDRW -o /tmp/RWBase
hdiutil convert -format UDSP -o /tmp/sparseRWBase RWBase.dmg
rm /tmp/RWBase.dmg
hdiutil resize -size 6g /tmp/sparseRWBase.sparseimage
hdiutil attach -owners on /tmp/sparseRWBase.sparseimage -shadow
sudo rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
sudo ditto /Volumes/OS\ X\ Install\ ESD/Packages /Volumes/OS\ X\ Base\ System/System/Installation/Packages
hdiutil eject /Volumes/OS\ X\ Install\ ESD/
View default.prop
1 2 3 4 5
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.usb.serialno=full_inari
persist.sys.usb.config=adb
View gist:7488742
1 2 3 4 5 6 7 8 9 10
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
View screensaver.plugin
1 2 3 4 5 6 7 8 9
[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
View gplus-noyoutube.user.js
1 2 3 4 5 6 7 8 9 10
// ==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');
View spotify_dbus_screensaver.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
 
"""
Spotify Screensaver Toggle
By Stuart Colville
http://muffinresearch.co.uk/
 
Requires Spotify Linux Preview.
 
"""
Something went wrong with that request. Please try again.