Simple Laravel 5.2 stack with web serer (php-fpm) and db drivers
- NGINX
- PHP7
- PHP mongo driver for php-fpm and php-cli
- PHP mbstring module
- PHP bz2 module
- PHP imagick module
- Memcached + PHP memcached
- Mysql PHP driver
Simple Laravel 5.2 stack with web serer (php-fpm) and db drivers
| #!/usr/bin/env bash | |
| echo "Written By Ankur Mishra" | |
| echo "Starting Server Setup....." | |
| echo "Be Sure you are are a super user..." | |
| # To become a super user | |
| sudo su | |
| # to update the packages from repositories | |
| apt-get update |
Following this guide will set up a local Elasticsearch with Kibana and Marvel using Homebrew and Homebrew Cask
If you already have Java installed on your system, skip steps Install Cask and Install Java
If you already have Java and Homebrew installed on your system, skip steps Prerequisites, start at Install Elasticsearch and Kibana after running $ brew update
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"| import UIKit | |
| import StoreKit | |
| //MARK: SKProductsRequestDelegate | |
| extension IAPHelpers : SKProductsRequestDelegate | |
| { | |
| func productsRequest(request: SKProductsRequest, didReceiveResponse response: SKProductsResponse) | |
| { |
| ##################### Elasticsearch Configuration Example ##################### | |
| # This file contains an overview of various configuration settings, | |
| # targeted at operations staff. Application developers should | |
| # consult the guide at <http://elasticsearch.org/guide>. | |
| # | |
| # The installation procedure is covered at | |
| # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. | |
| # | |
| # Elasticsearch comes with reasonable defaults for most settings, |
| <?php | |
| DB::table('rooms') | |
| ->whereNotIn('room_id', function($query) | |
| { | |
| $query->select('room_id') | |
| ->from(with(new Booking)->getTable()) | |
| ->where(function($query) | |
| { | |
| $query->where('time_out', '<', '2012-09-14T18:00') | |
| ->orWhere('time_in', '>', '2012-09-21T09:00'); |
Based on documentation from ElasticSearch about snapshots
mkdir /srv/webplatform/elastic_backup
chown -R elasticsearch:elasticsearch /srv/webplatform/elastic_backup| ############## UPDATE UBUNTU ############## | |
| sudo local-gen UTF-8 | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| ############## GIT ############## | |
| $ sudo add-apt-repository ppa:git-core/ppa | |
| $ sudo apt-get update |
| <? | |
| require("redis.php"); | |
| require("json.php"); | |
| $term = $_GET['term']; | |
| $r = new Redis("127.0.0.1","6379"); | |
| $r->connect(); | |
| $items = $r->zrangebylex("kernel","[$term","[$term\xff",Array("LIMIT","0","10")); |