AutoMySQLBackup with a basic configuration will create Daily, Weekly and Monthly backups of one or more of your MySQL databases from one or more of your MySQL servers.
- Ubuntu server
- MySQL
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Application Routes | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Here is where you can register all of the routes for an application. | |
| | It's a breeze. Simply tell Laravel the URIs it should respond to | |
| | and give it the Closure to execute when that URI is requested. |
| var EventSystem = (function() { | |
| var self = this; | |
| self.queue = {}; | |
| return { | |
| publish: function (event, data) { | |
| var queue = self.queue[event]; | |
| if (typeof queue === 'undefined') { |
Here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft CMS.
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
Collection of some of my fav terminal aliases that I use often & collected from the web. This file will be updated with more aliases as I find more. Feel free to comment and share your fav aliases you use :)
vim ~/.bash_profilei and then paste the following at the top of the file:| function MyObject(options) { | |
| /***************************************** | |
| /* PRIVATE VARS | |
| /****************************************/ | |
| var self = { | |
| } |
| set :deploy_to, "/var/www/default" | |
| set :branch, 'master' | |
| #Remote DB info | |
| set :dbuser, "" | |
| set :dbname, "" | |
| set :dbhost, "" | |
| set :dbpass, "" |
| requirejs.config({ | |
| shim: { | |
| 'foundation/jquery.foundation.topbar': { | |
| deps: ['jquery'], | |
| }, | |
| 'foundation/jquery.cookie': { | |
| deps: ['jquery'] | |
| }, | |
| 'foundation/jquery.event.move': { | |
| deps: ['jquery'] |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |