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
/** | |
* Class DateQuartersUtil | |
* @package UtilsBundle\Classes | |
*/ | |
class DateQuartersUtil | |
{ | |
/** | |
* Return quarters between tow dates. Array of objects | |
* @param $start_date | |
* @param $end_date |
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
git branch --merged | grep -v "\*" | grep -v "staging|master|dev" | xargs -n 1 git branch -d |
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
#! /bin/sh | |
COUNTER=0 | |
while [ $COUNTER -lt 1000 ]; do | |
SCRIPT_NAME=/status \ | |
SCRIPT_FILENAME=/status \ | |
REQUEST_METHOD=GET \ | |
cgi-fcgi -bind -connect 127.0.0.1:9000 | |
sleep 5 | |
let COUNTER=COUNTER+1 | |
done |
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
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | grep php-fpm |
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
$arr = [ | |
[ | |
'itemId' => 1, | |
'itemDescription' => 'ItemDescription', | |
'product' => 'productA', | |
'productDescription' => 'ProdADesc' | |
], | |
[ | |
'itemId' => 1, |
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
1. Install bundle https://github.com/tehplague/swiftmailer-mailgun-bundle | |
2. Follow instructions to this bundle | |
cspoo_swiftmailer_mailgun: | |
key: "key-xxxxxxxxxx" | |
domain: "mydomain.com" | |
http_client: 'httplug.client'(This is required field) | |
# Swiftmailer Configuration | |
swiftmailer: | |
transport: "mailgun" |
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
jms_serializer.naming_strategy_camelCase: | |
class: 'JMS\Serializer\Naming\IdenticalPropertyNamingStrategy' | |
jms_serializer.naming_strategy: | |
class: 'JMS\Serializer\Naming\SerializedNameAnnotationStrategy' | |
arguments : ['@jms_serializer.naming_strategy_camelCase'] |