Skip to content

Instantly share code, notes, and snippets.

View abler98's full-sized avatar
🇺🇦
Все буде Україна!

Serhii Semenko abler98

🇺🇦
Все буде Україна!
  • Kharkiv, Ukraine
View GitHub Profile
@abler98
abler98 / ubuntu-php7.2-zts-pthreads
Created October 12, 2017 20:21 — forked from 0xfff/ubuntu-php7.2-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
@abler98
abler98 / ngram-search.sh
Created August 4, 2017 18:15 — forked from avar/ngram-search.sh
ElasticSearch fuzzy ngram powered search
export http_proxy=
export https_proxy=
curl -XDELETE 'http://localhost:9200/test/'
echo "Creating the mapping"
curl -XPUT 'http://localhost:9200/test/?pretty=1' -d '
{
"mappings" : {
"member" : {
@abler98
abler98 / movie-titles.rb
Created August 3, 2017 09:29 — forked from karmi/movie-titles.rb
Multiple analyzers and query fields in Elasticsearch for auto-completion
require 'tire'
# Tire.configure { logger STDERR, level: 'debug' }
Tire.index('movie-titles') do
delete
create \
settings: {
index: {
analysis: {
@abler98
abler98 / AbstractPresenter.php
Created January 13, 2017 10:24 — forked from Ellrion/AbstractPresenter.php
Презентеры в Laravel.
<?php
namespace App\Presenters;
abstract class AbstractPresenter
{
/**
* The resource that is the object that was decorated.
*
* @var mixed