Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| - Ejemplo de Gulp con Ionic => https://gist.github.com/jdnichollsc/e3a323223fcb7822dbba | |
| - SQLite con ngCordova usando patrón de servicio y promesas => https://gist.github.com/jdnichollsc/9ac79aaa3407e92677ba | |
| - Permitir dinamicamente arrastrar elementos de una Lista => https://gist.github.com/mhartington/c5107ccd9204b755442b | |
| - Obtener datos consumiendo un servicio REST o desde el LocalStorage => https://gist.github.com/jdnichollsc/7367fe5b17369e856157 | |
| - Cambiar el tamaño de un Modal => https://gist.github.com/jdnichollsc/1b0112dfdca4b7f06fbe | |
| - OAuth Authentication, Firebase 3 and ngCordovaOauth => https://gist.github.com/jdnichollsc/17bae6581d405321937fe433410172c9 | |
| - Firebase Upload Files => https://gist.github.com/jdnichollsc/5ddc40c1c482e6209a8f4d634fd11d1e | |
| - Download and Open Files => https://gist.github.com/jdnichollsc/1e |
| <?php | |
| $args = array( | |
| 'post_author' => 1, | |
| 'post_content' => '', | |
| 'post_status' => "draft", // (Draft | Pending | Publish) | |
| 'post_title' => '', | |
| 'post_parent' => '', | |
| 'post_type' => "product" | |
| ); |
REGEX remove blank lines:
FROM: http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/remove_blank_lines.html
FIND:
^(?:[\t ]*(?:\r?\n|\r))+
| <?php | |
| // UPDATE: Stefan from Stack Overflow has explained a better way to handle cart item data. | |
| // See http://stackoverflow.com/a/32327810/470480 | |
| // ---------------------- | |
| /* | |
| Instructions: |
| <?php | |
| $file = '/path/to/file.png'; | |
| $filename = basename($file); | |
| $upload_file = wp_upload_bits($filename, null, file_get_contents($file)); | |
| if (!$upload_file['error']) { | |
| $wp_filetype = wp_check_filetype($filename, null ); | |
| $attachment = array( | |
| 'post_mime_type' => $wp_filetype['type'], | |
| 'post_parent' => $parent_post_id, |
| # Only listen on http; disable ajp and https | |
| web: java -jar jenkins.war --httpPort=$PORT --ajp13Port=-1 --httpsPort=-1 |