Skip to content

Instantly share code, notes, and snippets.

View fjugaldev's full-sized avatar
🚀
Deploying knowledges in my mind instance...

Francisco Javier Ugalde fjugaldev

🚀
Deploying knowledges in my mind instance...
View GitHub Profile
{
"_index": "book",
"_type": "_doc",
"_id": "1",
"_version": 2,
"found": true,
"_source": {
"title": "Deportes Extremos en Verano"
}
}
{
"_index": "book",
"_type": "_doc",
"_id": "1",
"_version": 2,
"found": true,
"_source": {
"title": "Deportes Extremos en Invierno"
}
}
{
"_index": "book",
"_type": "_doc",
"_id": "1",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
{
"name": "vytx6Jd",
"cluster_name": "elasticsearch_fjugaldev",
"cluster_uuid": "8XzlylxzTz6SVn0mhYSxRw",
"version": {
"number": "6.2.1",
"build_hash": "7299dc3",
"build_date": "2018-02-07T19:34:26.990113Z",
"build_snapshot": false,
"lucene_version": "7.2.1",
curl -XPOST -H "Content-Type: application/json" 'http://localhost:9200/book/_doc/1/_update?pretty' -d '{"doc": { "title": "Deportes Extremos en Verano" }}'
#Obtendremos la siguiente respuesta:
{
"_index": "book",
"_type": "_doc",
"_id": "1",
"_version": 2,
"found": true,
"_source": {
@fjugaldev
fjugaldev / Exporter.php
Created April 13, 2020 08:24 — forked from kunicmarko20/Exporter.php
Custom sonata admin export
<?php
/**
* Created by PhpStorm.
* User: markokunic
* Date: 4/21/17
* Time: 3:41 PM
*/
namespace AppBundle\Exporter;
@fjugaldev
fjugaldev / sampleREADME.md
Created March 23, 2020 19:15 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@fjugaldev
fjugaldev / Macbook.php
Created July 26, 2019 09:21
PHP Decorator Pattern
<?php
class Macbook
{
protected $basePrice = 1500;
public function getPrice()
{
return $this->basePrice;
}
}
C6111111116009998880Pepe 01012016205203000142
S7001112226111111111Movistar 02012016180130
C9112223336111111111Mama 03012016190000000142
C9114445556111111111Rodrigo 04012016200000000230
C6111111116336667770Jose 05012016200000000501
S611111111 14200 05012016220000
U4815162342
C6111111116336667770Javi 06012016200000000110
U4815162342
C6111111116336667770Jose 06012016200500000501
@fjugaldev
fjugaldev / osx-server-aliases
Created March 18, 2018 16:02 — forked from mgmilcher/osx-server-aliases
osx-server-aliases
### SERVER SERVICES ALIAS
# Nginx
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.restart='nginx.stop && nginx.start'
# PHP-FPM
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist"
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist"
alias php-fpm.restart='php-fpm.stop && php-fpm.start'