This file contains hidden or 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
| Add a config to keep everything clean: | |
| /etc/mysql/conf.d/disable_strict_mode.cnf | |
| Set specific SQL modes: | |
| [mysqld] | |
| sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | |
| OR simply: |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Sample Widget Page</title> | |
| </head> | |
| <body> | |
| <h1>Sample Widget Page</h1> | |
| <script type="text/javascript" src="http://localhost:81/widget-bootstrap.js"></script> | |
| <div id="widget-container"></div> |
This file contains hidden or 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
| # Block Skype ads | |
| 127.0.0.1 *.msads.net | |
| 127.0.0.1 *.msecn.net | |
| 127.0.0.1 *.rad.msn.com | |
| 127.0.0.1 a.ads2.msads.net | |
| 127.0.0.1 ac3.msn.com | |
| 127.0.0.1 ad.doubleclick.net | |
| 127.0.0.1 adnexus.net | |
| 127.0.0.1 adnxs.com | |
| 127.0.0.1 ads1.msn.com |
This file contains hidden or 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
| sudo chmod -R u+rwX,go+rX,go-w /path | |
| Folders -> 755 | |
| Files -> 644 |
This file contains hidden or 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_date = '2009-09-30 20:24:00'; | |
| $stop_date = date('Y-m-d H:i:s', strtotime($start_date . ' + 1 day')); |