time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
This file contains hidden or 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
| export XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9000 remote_host=127.0.0.1 remote_connect_back=0" |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html dir="ltr" lang="en"> | |
| <head> | |
| <title></title> | |
| <meta name="description" content="" /> | |
| <meta name="keywords" content="" /> | |
| <link rel="canonical" href="" /> | |
| <meta name="content-language" content="en" /> | |
| <meta http-equiv="Content-Language" content="en" /> |
This file contains hidden or 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
| This is how I use docker-sync to get better performance with Symfony apps. | |
| The performance increase is visible to me in both response time and test execution time. | |
| 1. Install docker-sync | |
| 2. Create docker-sync configuration in the project directory. | |
| 3. Map sync name as a volume in your docker-compose.yml | |
| 4. Start docker-sync with `docker-sync start -f` and check console for errors | |
| 5. Start docker-compose | |
| 6. Attach to the container and see your files there |
This file contains hidden or 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
| // https://hr.wikipedia.org/wiki/Dodatak:Popis_gradova_i_op%C4%87ina_u_RH_po_%C5%BEupanijama | |
| data = {}; | |
| $('.mw-headline').each(function(item){ | |
| let county = $(this).text(); | |
| let nodes = $(this).parent('h2').next('ul').children('li'); | |
| let cities = $(nodes[0]).find('li').get().map(node => $(node).text()); | |
| let muncipalities = $(nodes[1]).find('li').get().map(node => $(node).text()); | |
| data[county] = {cities: cities, muncipalities:muncipalities}; |
Let's say we want to test that after we successfuly send POST request, we can GET the same data on another endpoint. Pretty common for a CRUD-like apps.
Let's further assume our entity after creation from the POST request payload will result with a primary entity (e.g. Book) and child entities (2 Authors). We're using the constructor to create the entity (no setters) and connect everything:
$tags = .. // result is Tag[]
$book = new Book($title, $something, $tags);
<?php
declare(strict_types=1);
namespace App\Application\Query\Article\Cms;
use App\Application\Query\QueryInterface;
class ArticleQuery implements QueryInterface<?php
declare(strict_types=1);
namespace App\Infrastructure\UI\Http\Common;
abstract class ApiModel implements \JsonSerializable
{Add SSH key to your host agent and verify it's present with ssh-add -L.
If you're using a passphrase and you face issues, try adding your key with ssh-add -K {path}, docs:
-K When adding identities, each passphrase will also be stored in
the user's keychain. When removing identities with -d, each
passphrase will be removed from it.
OlderNewer