Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
// MySQL test: (create on database 'abook' with username 'abook' and password 'abook') | |
// | |
// CREATE TABLE IF NOT EXISTS `users` ( | |
// `id` int(5) unsigned NOT NULL AUTO_INCREMENT, | |
// `username` varchar(50) NOT NULL, | |
// `password` varchar(50) NOT NULL, | |
// PRIMARY KEY (`id`), | |
// KEY `username` (`username`) | |
// ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
// INSERT INTO `users` (`username`, `password`) VALUES |
#!/bin/bash | |
# Interactive PoPToP install script on a OpenVZ VPS | |
# Tested on Debian 5, 6, and Ubuntu 11.04 | |
# 2011 v1.1 | |
# Author: Commander Waffles | |
# http://www.putdispenserhere.com/pptp-debian-ubuntu-openvz-setup-script/ | |
echo "######################################################" | |
echo "Interactive PoPToP Install Script for OpenVZ VPS" | |
echo "by Commander Waffles http://www.putdispenserhere.com" |
#!/usr/bin/env node | |
var path = require('path'), | |
exec = require('child_process').exec, | |
when = require('when'), | |
gm = require('gm'), | |
Gearman = require('node-gearman'), | |
gearman = new Gearman(), | |
options = { | |
thumbDir: path.join(__dirname, 'thumb'), |
#! /usr/bin/env bash | |
# Link https://l10n.etherpad.mozilla.org/gaia-multilocale | |
localecode="zh-TW" | |
branch="v1.2" | |
# This line force reads $PATH from .profile on OS X | |
# Ref: http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/ | |
cd ~ | |
. ./.profile echo $PATH |
This is how I generate my dogfood build, daily-ish. I do so to ensure I have (almost) total control over what goes into my phone so I could pick up the changes anytime I wanted (and indentifying the version of Gaia/Gecko I am using).
This instruction is used for Geeksphone Peak and with zh-TW locale. Replace/remove instruction for your own phone.
File locations:
update.sh
should go to $B2G
(the place you clone B2G repo with git
).#!/bin/bash | |
while read album | |
do | |
echo -e "Will download album $album" | |
google picasa get "$album" . | |
pushd "$album" | |
echo -e "Start to upload $album to Flickr" | |
find -type f|sort|xargs -I{} flickr_upload {} | |
popd |
-optimizationpasses 5 | |
# 混淆时不会产生形形色色的类名 | |
-dontusemixedcaseclassnames | |
# 指定不去忽略非公共的类库 | |
-dontskipnonpubliclibraryclasses | |
# 不预校验 | |
-dontpreverify |