The setup installs the following software:
- Nginx
- MySQL
- PHP
- Node
- Composer
| <?php | |
| /** | |
| * Download helper to download files in chunks and save it. | |
| * | |
| * @author Syed I.R <[email protected]> | |
| * @link https://github.com/irazasyed | |
| * | |
| * @param string $srcName Source Path/URL to the file you want to download | |
| * @param string $dstName Destination Path to save your file | |
| * @param integer $chunkSize (Optional) How many bytes to download per chunk (In MB). Defaults to 1 MB. |
| // takes a {} object and returns a FormData object | |
| var objectToFormData = function(obj, form, namespace) { | |
| var fd = form || new FormData(); | |
| var formKey; | |
| for(var property in obj) { | |
| if(obj.hasOwnProperty(property)) { | |
| if(namespace) { |
| git log --since='last month' --pretty=format:'%h;%an;%ad;%s' --author='Ionut Colceriu' > ~/log.csv |
| if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
| var Storage = function (type) { | |
| function createCookie(name, value, days) { | |
| var date, expires; | |
| if (days) { | |
| date = new Date(); | |
| date.setTime(date.getTime()+(days*24*60*60*1000)); | |
| expires = "; expires="+date.toGMTString(); |
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and php56-FPM | |
| sudo yum install -y nginx php56-fpm | |
| # Install php56 extensions | |
| sudo yum install -y php56-devel php-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap |
| <?php | |
| # Cron job command for Laravel 4.2 | |
| # Inspired by Laravel 5's new upcoming scheduler (https://laravel-news.com/2014/11/laravel-5-scheduler) | |
| # | |
| # Author: Soren Schwert (GitHub: sisou) | |
| # | |
| # Requirements: | |
| # ============= | |
| # PHP 5.4 |
| <?php | |
| namespace App\Console\Commands; | |
| use DB; | |
| use Illuminate\Console\Command; | |
| class UpgradeTimestamps extends Command | |
| { | |
| /** |