Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
| /** | |
| * Requirements: | |
| * - jQuery (http://jquery.com/) | |
| * - DataTables (http://datatables.net/) | |
| * - BootboxJS (http://bootboxjs.com/) | |
| * --------------------------------------------------------------------------- | |
| * Credits to https://gist.github.com/flackend/9517696 | |
| * --------------------------------------------------------------------------- | |
| * This monitors all AJAX calls that have an error response. If a user's | |
| * session has expired, then the system will return a 401 status, |
| jQuery.fn.dataTableExt.oApi.fnFilterOnReturn = function (oSettings) { | |
| var _that = this; | |
| this.each(function (i) { | |
| $.fn.dataTableExt.iApiIndex = i; | |
| var $this = this; | |
| var anControl = $('input', _that.fnSettings().aanFeatures.f); | |
| anControl | |
| .unbind('keyup search input') | |
| .bind('keypress', function (e) { |
| # Install Java | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| # Download & install the Public Signing Key | |
| wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
| # Add the following to /etc/apt/sources.list | |
| deb http://packages.elasticsearch.org/elasticsearch/1.3/debian stable main | |
| # Update Aptitude |
This procedure is tested on Mac OS X 10.8 with Developpers tools installed (xCode).
PHP 5.4 installed with Homebrew.
Update: I wrote a blog post about this.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| // Add a 401 response interceptor | |
| window.axios.interceptors.response.use(function (response) { | |
| return response; | |
| }, function (error) { | |
| if (401 === error.response.status) { | |
| swal({ | |
| title: "Session Expired", | |
| text: "Your session has expired. Would you like to be redirected to the login page?", | |
| type: "warning", | |
| showCancelButton: true, |
| wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
| tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
| mv wkhtmltox/bin/wkhtmlto* /usr/bin/ | |
| ln -nfs /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf |
Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.
| APP_NAME=Laravel | |
| APP_ENV=local | |
| APP_KEY=base64:2JTqUn+p24WXtpVdoIyoK3cIaMOMpeuKvE7vEIlShlg= | |
| APP_DEBUG=true | |
| APP_LOG_LEVEL=debug | |
| APP_URL=http://localhost | |
| DB_CONNECTION=sqlite | |
| BROADCAST_DRIVER=log |