Skip to content

Instantly share code, notes, and snippets.

View chekalsky's full-sized avatar

Ilya Chekalsky chekalsky

View GitHub Profile
<?php
$vars = [];
$hashes = [];
do {
$variant_first_row = [];
$variant_second_row = [];
$max = 5;
for ($i = 0; $i <= $max; $i++) {
@chekalsky
chekalsky / .php_cs
Created November 19, 2017 12:30
Our PHP-CS-Fixer config
<?php
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'no_whitespace_in_blank_line' => true,
'no_unused_imports' => true,
@chekalsky
chekalsky / tj-fake-google-analytics.js
Created March 23, 2015 10:06
TJ — Investigation
var a = [
["ozon.ru", "http://c.cpl1.ru/7Qp2"],
["vsemayki.ru", "http://www.vsemayki.ru/?ref=37215"],
["proskater.ru", "http://c.cpl1.ru/7USG"],
["fotosklad.ru", "http://c.cpl1.ru/7USK"],
["blackstarshop.ru", "http://c.cpl1.ru/7USV"],
["www.yoox.com", "http://f.gdeslon.ru/f/9602cc859c79b7cb941344477bcd0f60b1b9ffbf"],
["lightinthebox.com", "http://f.gdeslon.ru/f/bffbc7e21681a6ef79aa64292915c6cd970e9ffe"],
["advego.ru", "http://advego.ru/6kwUMqmja5"],
["leonbets.net", "http://ru.leonbets.net/?wm=7708304"],
@chekalsky
chekalsky / keybase.md
Last active March 5, 2019 23:07
keybase

Keybase proof

I hereby claim:

  • I am chekalsky on github.
  • I am chekalskiy (https://keybase.io/chekalskiy) on keybase.
  • I have a public key whose fingerprint is 31FF 9EB9 AC17 F6C2 C108 9981 15B8 D26E 0BF2 B352

To claim this, I am signing this object:

@chekalsky
chekalsky / tweets.redactor.js
Last active January 9, 2019 23:36
Imperavi Redactor Plugin for Embedding Tweets Usage: mention "tweets" in "plugins" setting of you redactor.
/**
* Imperavi Redactor Plugin for Embedding Tweets
* for version >= 9.1
*
* @author Ilya Chekalskiy <[email protected]>
* @version 0.2.2
*/
if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {};
RedactorPlugins.tweets = {
@chekalsky
chekalsky / Icecast2 config
Created November 8, 2013 14:10
Настройка icecast2 сервера для онлайн подкастов
<icecast>
<limits>
<!-- Максимальное количество слушателей на весь сервер -->
<clients>10000</clients>
<!-- Максимальное количество подключённых клиентов (трансляторов) -->
<sources>4</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>