Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
anon true, if the space may be omitted in anonymous function declarations | |
bitwise true, if bitwise operators should be allowed | |
browser true, if the standard browser globals should be predefined | |
cap true, if upper case HTML should be allowed | |
continue true, if the continuation statement should be tolerated | |
css true, if CSS workarounds should be tolerated | |
debug true, if debugger statements should be allowed | |
devel true, if logging should be allowed (console, alert, etc.) | |
eqeq true, if == should be allowed | |
es5 true, if ES5 syntax should be allowed |
<?xml version="1.0" encoding="UTF-8"?> | |
<database name="default" defaultIdMethod="native" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xsd.propelorm.org/1.6/database.xsd"> | |
<table name="country"> | |
<column name="id" type="integer" autoIncrement="true" primaryKey="true" /> | |
<column name="iso_code" type="char" size="2" required="true" /> | |
<column name="name" type="varchar" size="255" required="true" primaryString="true" /> | |
<behavior name="i18n"> | |
<parameter name="i18n_columns" value="name, url" /> | |
<parameter name="default_locale" value="de_DE" /> |
<!doctype html> | |
<html> | |
<head> | |
<style> | |
.persona { | |
border: 1px solid #666; | |
width: 100px; | |
text-align: center; | |
margin: 5px; | |
} |
boot.img http://dl.free.fr/h4GMnkXNR | |
system.img http://dl.free.fr/fCtptJFxs |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node
to find it, or use it directly in the command:
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
).module.exports = { | |
get: function (req, res) { | |
res.sendfile(req.path.substr(1)); | |
}, | |
_config: { | |
rest: false, | |
shortcuts: false | |
} | |
}; |
#!/bin/bash | |
#################################################################### | |
# This script was created by: MDK - [email protected] # | |
# http://projects.thecoreme.org/ # | |
# May 28 2014 # | |
# Last update on Jun 09 2014 # | |
# # | |
# Simple script/wrapper to "mute" Spotify's ads # | |
# based on https://gist.github.com/pcworld/3198763#comment-1233334 # | |
# # |
{ | |
"scripts": { | |
"test": "mocha -g", | |
"start": "babel-node server.js", | |
"prestart": "npm run build", | |
"build": "npm-run-all 'build:*'", | |
"build:js": "cross-env NODE_ENV=production browserify -t babelify -t envify src/app.js > static/build.js", | |
"postbuild:js": "uglifyjs static/build.js -o static/build.js", | |
"build:css": "cross-env NODE_ENV=production stylus css/main.styl -o static", | |
"watch": "npm-run-all --parallel 'watch:*'", |