Skip to content

Instantly share code, notes, and snippets.

View jzaplet's full-sized avatar
🦾
...

Jiří Zapletal jzaplet

🦾
...
View GitHub Profile
@jzaplet
jzaplet / ClientFactory.php
Last active October 22, 2024 05:33
Fixed body logging
<?php
declare(strict_types=1);
namespace App\Http\Client;
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\TransferStats;
use Megio\Helper\Path;
use Psr\Http\Message\RequestInterface;
@jzaplet
jzaplet / code-line-counter.php
Last active October 8, 2024 15:11
Code line counter
<?php
declare(strict_types=1);
//enable errors
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
ini_set('max_execution_time', '0');
ini_set('memory_limit', '-1');
@jzaplet
jzaplet / readme.md
Created April 22, 2024 21:12
Megio docker installation

Instalace přes Docker

# 1. Stáhněte vzorový projekt do aktuální složky
curl -sL \
  https://raw.githubusercontent.com/strategio-digital/megio-core/master/install.sh \
  | bash /dev/stdin create

# 2. Duplikujte vzorový konfigurační soubor
cp .env.example .env
@jzaplet
jzaplet / Gads-exporter.js
Created December 2, 2019 20:52
Copy table from google ads
/**
* Copyright (c) 2019 Wakers.cz
* @author Jiří Zapletal (https://www.wakers.cz, zapletal@wakers.cz)
*/
document.createTable = function () {
var table = document.createElement("table");
var tableBody = document.createElement("tbody");
var rows = document.querySelectorAll("[role='row']"); // Rows selector
for (var x = 0; x < rows.length; x++) {