Skip to content

Instantly share code, notes, and snippets.

ivan shabarin

  • Ivanovo, Russia
Block or report user

Report or block shabarin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View umi selector
class catalog_custom extends def_module
public function mysearch()
$searchStr = getRequest('search_str');
$pages = new selector_custom('pages');
$pages->types('hierarchy-type')->name('catalog', 'object');
shabarin /
Last active Dec 19, 2016
self-signed ssl cert
openssl req -x509 -newkey rsa:2048 -keyout test.key -out test.crt -days 1 -nodes -subj "/C=RU/CN=*.localhost"
shabarin / ngx.conf
Last active May 13, 2017
View ngx.conf
#server {
pagespeed on;
# Needs to exist and be writable by nginx. Use tmpfs for best performance.
pagespeed FileCachePath /var/ngx_pagespeed_cache;
# Ensure requests for pagespeed optimized resources go to the pagespeed handler
# and no extraneous headers get set.
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
shabarin / testmail.php
Last active Sep 14, 2016
tmweb base64 html email test
View testmail.php
$to = "";
$subject = "base64 html email test";
$messageHtml = <<<EOF
<title>HTML email test</title>
You can’t perform that action at this time.