Skip to content

Instantly share code, notes, and snippets.

View rickychien's full-sized avatar
🏠
Working from home

Ricky Chien rickychien

🏠
Working from home
View GitHub Profile
@rickychien
rickychien / rev-build-diff.sh
Last active August 29, 2015 14:11
Compare difference between two commits (HEAD and HEAD^) for gaia profile (Usage: ./diff-build.sh)
#!/bin/bash
REV1=HEAD
REV2=HEAD^
if [ -z "$REV1" -o -z "$REV2" ]; then
echo "Usage: $0 REV1 REV2";
exit 1;
fi
@rickychien
rickychien / push-to-try.sh
Last active August 29, 2015 14:11
Push to mozilla try server (Usage: ./push-to-try.sh branch-name)
#!/bin/bash
# setup your mozilla-central REPO and github REMOTE.
# path to mozilla-central
REPO="mozilla-central"
# regualr expression for gaia github repo url
REMOTE="https:\/\/github\.com\/RickyChien\/gaia"
@rickychien
rickychien / node-build-diff.sh
Created March 9, 2015 07:37
Put this scripts our of gaia folder and run ./node-build-diff.sh
#!/bin/bash
REV1=xpc
REV2=node
compute_profile () {
REV=$1
FLAG=""
if [ $REV == "node" ]; then
from __future__ import print_function
import os
import platform
import subprocess
import urlparse
import requests
import mozinstall
def download_b2g_sdk(b2g_sdk):
system = platform.system()
{
"cmd": "GAIA_DEVICE_TYPE=tv DEVICE_DEBUG=1 APP=smart-system make && b2g_sdk/B2G.app/Contents/MacOS/b2g-bin -start-debugger-server 6000 -profile /Users/Ricky/Documents/gaia/profile/ -screen 1280x800@1.75",
"name": "smart-system build",
"sh": true,
"env": {
},
"errorMatch": [
"error",
"fail",
"Stop."
ERROR in ./src/netmonitor-controller.js
Module not found: Error: Cannot resolve module 'devtools/shared/fronts/timeline' in /Users/Ricky/Documents/firefox/devtools/client/netmonitor/src
@ ./src/netmonitor-controller.js 9:26-68
ERROR in ./src/netmonitor-controller.js
Module not found: Error: Cannot resolve module 'devtools/client/shared/curl' in /Users/Ricky/Documents/firefox/devtools/client/netmonitor/src
@ ./src/netmonitor-controller.js 10:22-60
ERROR in ./src/components/StatisticsPanel.js
Module not found: Error: Cannot resolve module 'devtools/client/shared/widgets/Chart' in /Users/Ricky/Documents/firefox/devtools/client/netmonitor/src/components