Skip to content

Instantly share code, notes, and snippets.

View skowron-line's full-sized avatar

K.Skaradziński skowron-line

  • Warsaw
View GitHub Profile
@skowron-line
skowron-line / monolog.json
Last active December 30, 2023 18:58
lnav Monolog format
{
"monolog": {
"title": "Monolog log file",
"description": "Monolog log format",
"url": "https://github.com/Seldaek/monolog",
"regex": {
"default": {
"pattern": "\\[(?P<timestamp>.*)\\] (?P<logger>\\w+).(?P<level>\\w+): (?P<message>[^\\[\\{]+) (?P<context>[\\[\\{].*[\\]\\}]) (?P<extra>[\\[\\{].*[\\]\\}])"
}
},
@skowron-line
skowron-line / lazy services.md
Last active November 30, 2016 15:16
ocramius/proxy-manager v1.0.2 bug
@skowron-line
skowron-line / Money.php
Last active June 30, 2017 19:47
Money format, and money amount in words
<?php
/**
* @author Krzysztof Skaradziński <[email protected]>
*/
class Money
{
/**
* @param $value
*
public function byId(string $id)
{
$query = [
'source' => [
'query' => [
'query_string' => [
'fields' => ['id'],
'query' => $id,
],
],
@skowron-line
skowron-line / Article.php
Created September 25, 2020 11:37 — forked from kunicmarko20/Article.php
Symfony Second Level Cache
<?php
namespace AppBundle\Entity;
/**
* @package AppBundle\Entity
* @ORM\Entity()
* @ORM\Table()
* @ORM\Cache(usage="NONSTRICT_READ_WRITE")
*/