Skip to content

Instantly share code, notes, and snippets.

View jerronimo's full-sized avatar

Eugene Kashkarov jerronimo

  • Kharkiv
View GitHub Profile
server {
listen 80 default_server;
index index.html;
root /var/www/frontend/dist;
charset utf-8;
rewrite_log on;
access_log off;
error_log /var/log/nginx/error.log error;
sendfile off;
client_max_body_size 100m;
<?php
namespace Acted\LegalDocsBundle\Entity;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
use Acted\LegalDocsBundle\Entity\Profile;
use Acted\LegalDocsBundle\Entity\Artist;
use Acted\LegalDocsBundle\Entity\PaymentSetting;
@jerronimo
jerronimo / re.conf
Last active February 11, 2017 20:55
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName offers.no
SSLEngine on
SSLProtocol all -SSLv2
SSLCertificateFile "/etc/letsencrypt/live/offers.no/fullchain.pem"
SSLCertificateKeyFile "/etc/letsencrypt/live/offers.no/privkey.pem"
DocumentRoot /var/offers/web
This file has been truncated, but you can view the full file.
'use strict';
(function(b, a) {
function f(b, c) {
g.addType(b, function(d, f, k) {
var p, s = f,
t = (new Date).getTime();
if (!d) {
s = {};
k = [];
f = 0;
{
"categories": {
"Electronics": [
{
"id": 4,
"name": "Alex-test"
},
{
"id": 5,
"name": "Axiom Telecom"
<?php
DB::table('psa_users')->insert([
//Create admin
[
'id' => 1,
'identity' => 'f8a7b94a-6c56-4bc5-94bf-d5efd921a26c',
'email' => '[email protected]',
'password' => bcrypt('12345678'),
'role' => 'admin',
#########################################################
# Vastree
#########################################################
server {
listen 80;
server_name vastree.loc www.vastree.loc;
root /home/user6/www/vastree-admin/admin-app;
index index.php index.html index.htm;
<?php
$southEast = new RefRegion();
$southEast->setName('South East');
$southEast->setCountry($uk);
$southEast->setLatitude('51.081785');
$southEast->setLongitude('0.597509');
$southWest = new RefRegion();
$southWest->setName('South West');
$southWest->setCountry($uk);
<?php
public function getCostsBasesData(array $criteria)
{
$qb = $this->createQueryBuilder('l')
->select('SUM(f.publicationPrice)/1000 as zakupki,
SUM(f.contractPrice)/1000 as contract,
SUM(f.factPrice)/1000 as cassa,
SUM(f.planPrice)/1000 as plan')
->leftJoin('l.plan', 'p')
{
"stateContract": {
"id": "df928de4-d992-4292-a6c4-eabb2d0c14dd",
"fullName": "123 123",
"statute": "123 123",
"approvedBY": "123 123",
"supplierName": "123333 123",
"supplierFullName": "123",
"supplierAuthority": "1123 123",
"nds": true,