This file contains 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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 13/09/15 | |
* Time: 22:13 | |
*/ | |
namespace ImageManipulator\Utilities; |
This file contains 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
#!/bin/sh | |
# | |
# /etc/init.d/elasticsearch -- startup script for Elasticsearch | |
# | |
# Written by Miquel van Smoorenburg <miquels@cistron.nl>. | |
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>. | |
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>. | |
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>. | |
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>. | |
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>. |
This file contains 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
{ | |
"cluster_name": "elasticsearch", | |
"nodes": { | |
"kpSUqEDETiq_bIzpheJ6LA": { | |
"name": "Node client balancer", | |
"transport_address": "inet[/127.0.0.1:9300]", | |
"host": "mockie-notebook", | |
"ip": "127.0.1.1", | |
"version": "1.6.0", | |
"build": "cdd3ac4", |
This file contains 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
#!/bin/sh | |
# | |
# /etc/init.d/elasticsearch -- startup script for Elasticsearch | |
# | |
# Written by Miquel van Smoorenburg <miquels@cistron.nl>. | |
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>. | |
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>. | |
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>. | |
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>. | |
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>. |
This file contains 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
mockie@mockie-notebook:~$ sudo /etc/init.d/elasticsearch start | |
[sudo] password for mockie: | |
Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME | |
mockie@mockie-notebook:~$ sudo /etc/init.d/elasticsearch start | |
mockie@mockie-notebook:~$ sudo /etc/init.d/elasticsearch start | |
dodol | |
mockie@mockie-notebook:~$ sudo echo $JAVA_HOME | |
/home/mockie/softwares/jdk1.8.0_45 | |
mockie@mockie-notebook:~$ sudo echo $JAVA_HOME | |
/home/mockie/softwares/jdk1.8.0_45 |
This file contains 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
################################ | |
# Elasticsearch | |
################################ | |
# Elasticsearch home directory | |
#ES_HOME=/usr/share/elasticsearch | |
# Elasticsearch configuration directory | |
#CONF_DIR=/etc/elasticsearch |
This file contains 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
$latestInstalled = '0.0.1'; | |
$url = 'https://raw.githubusercontent.com/mockiemockiz/MockBlogBundle/master/composer.json'; | |
$json = json_decode(file_get_contents($url)); | |
if($json->version != $latestInstalled) { | |
/** | |
* download zip file version https://github.com/mockiemockiz/MockBlogBundle/archive/master.zip | |
* run installer script | |
*/ | |
} |
This file contains 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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 12/24/14 | |
*/ | |
// ================== Data ================================= | |
$list = ['anto', 'bob', 'boby', 'susi', 'argo', 'sasi', 'szssy', 'bozki']; |
This file contains 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
post_entity: | |
class: Mockizart\Bundle\BlogBundle\Service\Entity\MockblogPost | |
scope: request | |
arguments: | |
params: | |
tag_entity_name: "%tag_entity_name%" | |
post_entity_name: "%post_entity_name%" | |
user_entity_name: "%user_entity_name%" | |
tag_post_entity_name: "%tag_post_entity_name%" | |
entity_manager: @doctrine.orm.entity_manager |
This file contains 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
<?php | |
namespace Mockizart\Bundle\BlogBundle\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Mockizart\Bundle\BlogBundle\Entity\MockblogPost; | |
/** | |
* MockblogPost controller. |