Skip to content

Instantly share code, notes, and snippets.

1. put <file> on sdcard
2. put sdcard in device
3. reboot and hold down up arrow and power for 10s.
4. "apply update from external storage" - select <file>
5. "wipe data/factory reset"
6. reboot
Now you've got an unrooted phone. Let's install a su binary that gives us root.
1. download root-zte-open.zip (md5 cecc15bd0cc315633d066d81b44d7732)
#!/usr/bin/env node
var httpProxy = require('http-proxy'),
path = require('path'),
fs = require('fs');
httpProxy.createServer(443, 'login.persona.org', {
https: {
key: fs.readFileSync(path.join(process.env['HOME'], 'key.pem'), 'utf8'),
cert: fs.readFileSync(path.join(process.env['HOME'], 'cert.pem'), 'utf8')
@minikomi
minikomi / persona.go
Last active December 11, 2015 06:59
mozilla persona test
package main
import (
"encoding/json"
"fmt"
"github.com/gorilla/sessions"
"io/ioutil"
"log"
"net/http"
"net/url"

This document is intended to be a simplified version of the OAuth 2.0 specification. In particular it has been written with implementors in mind, and as such attempts to trim the spec down to just what you need to implement an OAuth provider or client. It is necessarily not complete, but attempts to introduce spec requirements in the same order in which the protocol proceeds in practise, with everything you need to know about each protocol endpoint brought together in one place rather than scattered across a large document.

@Gozala
Gozala / reducers.js
Created May 11, 2012 01:42
Experimenting with clojure reducers
Array.prototype.reduce = this.ArrayReduce || Array.prototype.reduce
var console = window.console
var global = this
function assert(actual, expected) {
if (arguments.length < 2 && actual)
return actual
if (actual === expected)
return actual
if (JSON.stringify(actual) == JSON.stringify(expected))
return JSON.stringify(actual)
@paulhoux
paulhoux / AppImplMswBasic.cpp
Created November 5, 2011 03:57
Cinder: improved frame rate and low CPU usage on Windows PC's
/*
Copyright (c) 2010, The Barbarian Group
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and
the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and