Skip to content

Instantly share code, notes, and snippets.

View loxK's full-sized avatar

Laurent Dinclaux loxK

View GitHub Profile
assert(getprop("ro.product.device") == "hero" || getprop("ro.build.product") == "hero" || getprop("ro.product.board") == "hero");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
run_program("/tmp/backuptool.sh", "backup");
show_progress(0.500000, 0);
format("yaffs2", "MTD", "/system");
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("recovery", "/system");
package_extract_dir("system", "/system");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
# mount point fstype device [device2]
/boot mtd boot
/cache yaffs2 cache
/data yaffs2 userdata
/misc mtd misc
/recovery mtd recovery
/sdcard vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0
/system yaffs2 system
/sd-ext ext3 /dev/block/mmcblk0p2
# Cronos Contact: [email protected]
# Are u interested in the sources used in this full rom?
# Please send me an email requesting information about these sources on specified email address.
# Please include in the subject line: "Cronos Sources"
##################################################################
# Cronos Scheduler and Governor are both Closed source.
##################################################################
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
pick 56f6e37 More properties overrides
pick 6ad0799 Libcamera sources (from SteelBytes)
pick 407b60d Builds libcamera
pick 18af184 Working libsensors. TODO: remove proximity sensor
pick fbd0cfd Htc usb switch for tethering
pick 0511823 Should make libcamera to build
pick b6907df Corrected omx packages to include
pick da097fc Inherit from full_base
pick 3a78b83 Removed TARGET_NO_RECOVERY
pick b667f89 wcdma first
A user PM pointed me to the Readme file inside the rom package:
[quote]
# Cronos Contact: [email protected]
# Are u interested in the sources used in this full rom?
# Please send me an email requesting information about these sources on specified email address.
# Please include in the subject line: "Cronos Sources"
##################################################################
# Cronos Scheduler and Governor are both Closed source.
##################################################################
A user PM pointed me to the Readme file inside the rom package:
[quote]
# Cronos Contact: [email protected]
# Are u interested in the sources used in this full rom?
# Please send me an email requesting information about these sources on specified email address.
# Please include in the subject line: "Cronos Sources"
##################################################################
# Cronos Scheduler and Governor are both Closed source.
##################################################################
@loxK
loxK / gist:841744
Created February 24, 2011 04:20
Auto-thixkbox patch for error notices and useless ?> at the end of php files
Index: auto-thickbox-info.php
===================================================================
--- auto-thickbox-info.php (révision 350190)
+++ auto-thickbox-info.php (copie de travail)
@@ -6,4 +6,3 @@
__('Image', 'auto-thickbox');
__('of', 'auto-thickbox');
__('Close', 'auto-thickbox');
-?>
\ No newline at end of file
Index: includes/controller.php
===================================================================
--- includes/controller.php (révision 350190)
+++ includes/controller.php (copie de travail)
@@ -3,10 +3,10 @@
add_action( 'init', 'wpcf7_init_switch', 11 );
function wpcf7_init_switch() {
- if ( 'GET' == $_SERVER['REQUEST_METHOD'] && isset( $_GET['_wpcf7_is_ajax_call'] ) ) {
+ if ( isset($_SERVER['REQUEST_METHOD']) && 'GET' == $_SERVER['REQUEST_METHOD'] && isset( $_GET['_wpcf7_is_ajax_call'] ) ) {
@loxK
loxK / fixes-notices.patch
Created February 24, 2011 04:35
Fixes contact form 7 error notice when executing wp-cron.php from command line
Index: includes/controller.php
===================================================================
--- includes/controller.php (révision 350190)
+++ includes/controller.php (copie de travail)
@@ -3,10 +3,10 @@
add_action( 'init', 'wpcf7_init_switch', 11 );
function wpcf7_init_switch() {
- if ( 'GET' == $_SERVER['REQUEST_METHOD'] && isset( $_GET['_wpcf7_is_ajax_call'] ) ) {
+ if ( isset($_SERVER['REQUEST_METHOD']) && 'GET' == $_SERVER['REQUEST_METHOD'] && isset( $_GET['_wpcf7_is_ajax_call'] ) ) {
@loxK
loxK / gist:863256
Created March 9, 2011 23:40
Patch for WP-e-commerce 3.8-developpement to enable users registration notice
Index: wpsc-includes/misc.functions.php
===================================================================
--- wpsc-includes/misc.functions.php (révision 357938)
+++ wpsc-includes/misc.functions.php (copie de travail)
@@ -90,6 +90,11 @@
$errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'wpsc' ), get_option( 'admin_email' ) ) );
return $errors;
}
+
+ if ( get_option('registration_notice') === '1' ) {