This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function paghid_send_mail($to,$copy_to,$subject,$message_data) { | |
/** headers **/ | |
$headers .= 'From: paghid<[email protected]>' . "\r\n"; | |
if( $copy_to != "" ) { | |
$headers .= 'Bcc: '.$copy_to. "\r\n"; | |
} | |
$headers .= "MIME-Version: 1.0\r\n"; | |
$headers .= "Content-Type: text/html; charset=UTF-8\r\n"; | |
$message_data = $message_data.'<p style="font-size: 12px; color: #444; text-align: right;">'.date_i18n('j F Y - H:i:s').'</p>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastboot flash partition gpt.bin | |
fastboot flash motoboot motoboot.img | |
fastboot reboot-bootloader | |
fastboot flash logo logo.bin | |
fastboot flash boot boot.img | |
fastboot flash recovery recovery.img | |
fastboot flash system system.img_sparsechunk.0 | |
fastboot flash system system.img_sparsechunk.1 | |
fastboot flash system system.img_sparsechunk.2 | |
fastboot flash system system.img_sparsechunk.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### start nginx config | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* =============== start gulp file =============== */ | |
/* File: gulpfile.js */ | |
// grab our packages | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var sass = require('gulp-sass'); | |
var scss_directory = 'sass/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DOCKER start - LAMP Server | |
#docker run -p 80:80 -d -v /Users/eduardo/Development/nginx-wordpress/nginx-conf/:/etc/nginx/ --name e5o-nginx-wordpress nginx | |
# 1 - mysql user and password : root | |
docker run --name e5o-lamp-mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7 | |
# 2 - phpmyadmin linked server | |
docker run --name e5o-lamp-phpmyadmin -d --link e5o-lamp-mysql:db -p 32779:80 phpmyadmin/phpmyadmin | |
# 3 - apache -- not linked | |
docker run --name e5o-lamp-apache --link e5o-lamp-mysql:db -p 80:80 -d -v /Users/eduardo/Development/LAMP/:/var/www/html php:5.6-apache /bin/bash -c 'a2enmod rewrite; apache2-foreground' | |
# php mysql driver extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n "\n\n============== E5O - WP Theme Generator ==============\n\n"; | |
echo -n "Enter WP Theme Name: "; | |
read wp_theme_name; | |
echo -n "Enter WP Theme Author Name: "; | |
read wp_theme_author_name; | |
echo -n "Enter WP Author URL: "; | |
read wp_theme_author_url; | |
echo -n "Enter WP Theme URL: "; | |
read wp_theme_url; | |
echo -n "Enter WP Theme Description: "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# query to get all categories | |
SELECT tlax_term_taxonomy.term_id as category_id, tlax_term_taxonomy.count as category_count, tlax_terms.name as category_name FROM tlax_term_taxonomy,tlax_terms WHERE tlax_term_taxonomy.taxonomy = 'category' AND tlax_term_taxonomy.count > 0 AND tlax_terms.term_id = tlax_term_taxonomy.term_id GROUP BY tlax_terms.term_id ORDER BY tlax_terms.name ASC; | |
# query for get post from category ID and post ID | |
select | |
b.term_id as category_id, | |
c.ID as post_id, | |
c.post_title as post_title, | |
c.post_content as post_content, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy some file from android device system with adb. It will be hide | |
adb shell run-as com.g4a.quadratin cp /data/data/com.g4a.quadratin/databases/quadratin_app.db /sdcard/DB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function express_remove_route(router_path,callback) { | |
express_stack = router.stack; | |
console.log("================= express_remove_route =================="); | |
express_stack.forEach(function(route_layer){ | |
if( !route_layer ) return; | |
if( route_layer.route.path.indexOf(router_path) >= 1 ) { | |
//console.log(router_path,route_layer.route.path.indexOf(router_path)); // log layer | |
idx = express_stack.indexOf(route_layer); | |
//console.log("IDX",idx); // id to remove layer | |
express_stack.splice(idx, 1); |
OlderNewer