Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
usage() {
echo "Find the true writable size of a device in mb. Useful for cheap/fake"
echo "SD Cards, mp3 players etc. that have been missold."
echo "NOTE: the data on the device WILL be destroyed"
echo ""
echo "Options:"
echo ""
echo " -h|-?|--help Show this help text"
echo " -d /dev/something Destination device"
wget https://apt.puppetlabs.com/puppetlabs-release-jessie.deb
dpkg -i puppetlabs-release-jessie.deb
apt-get update
apt-get install git puppet hiera vim
git clone https://github.com/iMartyn/degoogle.git
cd degoogle/
git submodule init
git submodule update --recursive
@iMartyn
iMartyn / prank.sh
Last active August 29, 2015 14:08 — forked from glenjamin/prank.sh
function cd() {
# Aliases
alias cd=''
alias exit=''
# Variables
NONE='\033[00m'
RED='\033[01;31m'
SLEEP=`which sleep`
SEQ=`which seq`
@iMartyn
iMartyn / keybase.md
Created August 8, 2014 10:51
Keybase proof

Keybase proof

I hereby claim:

  • I am imartyn on github.
  • I am imartyn (https://keybase.io/imartyn) on keybase.
  • I have a public key whose fingerprint is 8EBC 1DF3 822C 1A06 ACA4 AAFF 5EC7 9FA7 3066 3077

To claim this, I am signing this object:

<?php
// Change me
const ADDRESS_ID = 'Gold|StringOfAlphas|MY|HouseNumber'; // Pull from the BT checker with a network inspector :)
const TO_EMAIL = 'me@example.com';
const FROM_EMAIL = 'server@example.com';
// Don't change me
const SERVICE_URL = 'http://www.productsandservices.bt.com/consumerProducts/v1/productAvailability.do';
var casper = require('casper').create();
var journeystage = 'ProductPage';
var journeytimings = Array();
casper.on('load.started', function() {
journeytimings[journeystage] = new Date().getTime();
});
casper.on('load.finished', function(status) {