Skip to content

Instantly share code, notes, and snippets.

View mrsombre's full-sized avatar

Dmitrii Barsukov mrsombre

  • Montenegro
  • 23:10 (UTC +02:00)
View GitHub Profile
@mrsombre
mrsombre / git.md
Last active September 11, 2018 03:28
GIT cheat-sheet

For example following command adds user execute permission to an arbitrary file:

git update-index --chmod=+x <file>
git ls-files --stage
git commit -m "Set exec"
@mrsombre
mrsombre / cli-speedtest.md
Last active July 31, 2017 10:47
cli-speedtest

500mb

wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip

10mb

wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip
@mrsombre
mrsombre / _readme.md
Last active June 6, 2017 12:26
LE SSL

default domain


server {
  listen  80 default_server;

  access_log  /var/log/nginx/default__access.log  main;
  error_log   /var/log/nginx/default__error.log   error;

 client_max_body_size 512k;
@mrsombre
mrsombre / OpCache
Created March 16, 2015 07:27
Заметки о PHP
http://jpauli.github.io/2015/03/05/opcache.html
Configuring OPCache#
If you use a framework based application, like a Symfony2 based application, I strongly suggest :
you turn off revalidation mechanism on production (turn opcache.validate_timestamps to 0)
you deploy using a full new runtime of your scripts, this is the case with Symfony2 applications
you size correctly your buffers
opcache.memory_consumption, the most important
opcache.interned_strings_buffer , monitor your usage, and size accordingly, take care if you tell OPCache to save comments, which you will likely do if you use PHP "annotations" (opcache.save_comments = 1), those are strings, big strings, that will eat your interned strings buffer