Skip to content

Instantly share code, notes, and snippets.

View vzabaznov's full-sized avatar

Zabaznov Vitalii vzabaznov

  • Adobe Systems Incorporated
  • Austin
View GitHub Profile
@mariotacke
mariotacke / README.md
Created March 7, 2017 04:36
Default nginx log format (combined) and grok pattern
@0xfff
0xfff / ubuntu-php7.2-zts-pthreads
Last active August 4, 2020 12:19 — forked from erkanarslan/ubuntu-php5.6-zts-pthreads
Installing php-zts on ubuntu 16.04
#####################################################################################
# INSTALL isolated PHP 7.2 ZTS (Thread-safe) with pthreads on Ubuntu 14.04 &16.04 ###
#####################################################################################
0) Possible dependencies
sudo apt-get install libxml2-dev
1) Install necessary bison version
wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
@csamsel
csamsel / Enhanced NGINX logstash parser
Last active February 5, 2022 14:54
Enhanced NGINX logstash parser to include upstream response time and request length fields
Enhanced NGINX logstash parser:
NGINX log format:
log_format enhanced '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent $request_length "$http_referer" "$http_user_agent" $request_time $upstream_response_time';
access_log /var/log/nginx/access.log enhanced;
error_log /var/log/nginx/error.log;
logstash pattern (/opt/logstash/pattern/nginx):
@curtismcmullan
curtismcmullan / setup_selenium.sh
Last active May 2, 2023 22:56
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in
@umidjons
umidjons / drop-down-page-size-cgrid-view.php
Created November 22, 2013 05:25
Yii: drop down to choose page size for CGridView
// in config/main.php
'params' => array(
'defaultPageSize' => 20,
),
// in controller action
public function actionIndex()
{
if ( isset( $_GET[ 'pageSize' ] ) )
{