Skip to content

Instantly share code, notes, and snippets.

View AaronMT's full-sized avatar
👾
Hacking

Aaron Train AaronMT

👾
Hacking
View GitHub Profile
@AaronMT
AaronMT / gist:1607207
Created January 13, 2012 16:04
table-generator
#!/usr/bin/python
__author__ = 'aaron.train@gmail.com'
import sys
import getopt
import HTML
import json
class generate_table:
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
browsers = ['org.mozilla.fennec/.App']
sites = ["http://google.com",
"http://facebook.com",
"http://youtube.com",
"http://yahoo.com",
"http://baidu.com",
"http://wikipedia.org",
"http://live.com",
#!/bin/bash
# This script will try to upgrade to latest OSX Chromium build on your system via the
# command line (right, that means you'll have to open a term and run it from there)
#
# See README for further informations
die() {
echo "$@ => exiting" >&2
exit 1
}
I/ActivityManager( 196): START {flg=0x40010000 cmp=org.mozilla.fennec/org.mozilla.gecko.AwesomeBar (has extras)} from pid 15144
I/GeckoApp(15144): pause
D/GeckoAwesomeBar(15144): creating awesomebar
D/GeckoAwesomeBarTabs(15144): Creating AwesomeBarTabs
D/GeckoAwesomeBarTabs(15144): Creating All Pages tab
D/GeckoAwesomeBarTabs(15144): Creating Bookmarks tab
D/GeckoAwesomeBarTabs(15144): Creating History tab
D/AndroidRuntime(15144): Shutting down VM
W/dalvikvm(15144): threadid=1: thread exiting with uncaught exception (group=0x40a3b1f8)
E/GeckoAppShell(15144): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
W/WindowManager( 197): ActivityRecord{41ae9d00 org.mozilla.fennec/.App} failed creating starting window
W/WindowManager( 197): android.view.InflateException: Binary XML file line #28: Error inflating class <unknown>
W/WindowManager( 197): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
W/WindowManager( 197): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
W/WindowManager( 197): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
W/WindowManager( 197): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
W/WindowManager( 197): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
W/WindowManager( 197): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
W/WindowManager( 197): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
W/WindowManager( 197): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2685)
@AaronMT
AaronMT / Top-sites
Created March 27, 2012 21:41
Monkey Tab Populate
"http://google.com"
"http://facebook.com"
"http://youtube.com"
"http://yahoo.com"
"http://baidu.com"
"http://wikipedia.org"
"http://live.com"
"http://blogspot.com"
"http://qq.com"
"http://twitter.com"
@AaronMT
AaronMT / css-parse.py
Created April 5, 2012 01:01
CSS-Parse
#!/usr/bin/env python
__author__ = 'aaron.train@gmail.com'
import cssutils
import sys, getopt
def main():
try:
opts, args = getopt.getopt(sys.argv[1:], "", ["url=", "file="])
#!/bin/bash
# website history generator v 0.02
#
# Usage webhistgen <n> <appname>
# n: number of websites to visit
# appname: application name such as org.mozilla.fennec
#
n=$1;
appname=$2;
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from gaiatest import GaiaTestCase
import time
class TestIMEI(GaiaTestCase):
# Dialer
from gaiatest import GaiaTestCase
import time
class TestIMEI(GaiaTestCase):
# Dialer
_keyboard_container_locator = ('id', 'keyboard-container')
_call_bar_locator = ('id', 'keypad-callbar-call-action')
_phone_number_view_locator = ('id', 'phone-number-view')
_attention_frame_locator = ('xpath', '//*[@id="attention-screen"]/iframe')