Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pavel-vasiluk's full-sized avatar

Pavels Vasiluks pavel-vasiluk

View GitHub Profile
@pavel-vasiluk
pavel-vasiluk / DocumentsController.php
Last active January 9, 2022 15:16
NelmioApiDocBundle - multipart/form-data request with file and POST parameters
// Post request OpenAPI definition in controller
use Nelmio\ApiDocBundle\Annotation\Model;
use OpenApi\Annotations as OA;
use Symfony\Component\HttpFoundation\Response;
@OA\Post(
description="Submit verification document",
@OA\RequestBody(
@OA\MediaType(
@pavel-vasiluk
pavel-vasiluk / xdebug.ini
Created January 4, 2021 22:04
Xdebug 3 config for Linux-based system
# /etc/php/7.4/mods-available/xdebug.ini
zend_extension=xdebug.so
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_port=9003
@pavel-vasiluk
pavel-vasiluk / index.html.twig
Last active October 8, 2019 15:40
Sulu CKEditor: adding plugins & toolbars for text color, background color & inserting images features
{# app/Resources/SuluAdminBundle/views/Admin/index.html.twig #}
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@pavel-vasiluk
pavel-vasiluk / Samba-share-linux-folder-with-windows.md
Last active April 19, 2019 19:54
Samba: how to share Linux folder with your Windows machine

How to share Linux folder with Windows

# Install samba on your Linux machine
sudo apt-get update
sudo apt-get install samba

# Edit samba config file
sudo nano /etc/samba/smb.conf