Skip to content

Instantly share code, notes, and snippets.

View rpappalax's full-sized avatar

Richard Pappalardo rpappalax

View GitHub Profile

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
#!/bin/bash
#
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
#
set -ex
if [ $# -ne 2 ]; then
echo usage: $0 root_dir jenkins_master
gaiatest --testvars=/Users/Edwin/home.json --address=localhost:2828 test_persona_cookie.py
from gaiatest import GaiaTestCase
import time
class TestIdentitySmoke(GaiaTestCase):
APP_NAME = 'UI tests'
_bid_tests_locator = ('link text', 'navigator.mozId tests')
_bid_iframe_locator = ('css selector', 'iframe[src*="identity"]')
def setUp(self):
from marionette import Marionette
from gaiatest.apps.browser.app import Browser
m = Marionette('localhost', 2828)
m.start_session()
browser = Browser(m)
browser.launch()
browser.go_to_url('http://native.123done.org\n')
browser.switch_to_content()
#wait
btn = m.find_element('css selector', 'img[src*="persona-login"]')
#!/usr/bin/env python
from marionette import Marionette
from gaiatest.apps.browser.app import Browser
# remember to 'adb forward tcp:2828 tcp:2828'
m = Marionette('localhost', 2828)
m.start_session()
browser = Browser(m)
browser.launch()
{ "acknowledged_risks" : true,
"skip_warning" : true,
"wifi": { "ssid": "Mozilla Guest" }
}
#!/bin/bash
if [ "$1" == "" ]; then
echo 'Pulls and pushes pref.js to your phone.'
echo 'Usage: ./modPref.sh [pull|push|catfxa|rmfxa]'
exit
fi
echo "Plug in your device"
adb wait-for-device
echo "Found device"
PROFILE=$(adb shell echo -n "/data/b2g/mozilla/*.default")