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 / IntString.php
Created August 16, 2018 10:08
Simple istr encoder/decoder
<?php
class IntString
{
/**
* Набор символов для кодирования
*/
const CHARSET = '0-9a-zA-Z_-';
/**
package com.example;
import java.util.*;
import java.util.logging.Logger;
import java.util.regex.Pattern;
public class Main {
// Use control characters for minimize chance of matches with original text
private static final String UGLY_HACK_MARKER = "\u0080\u0081\u0082";
const TOP = 'top';
const BOTTOM = 'bottom';
const LEFT = 'left';
const RIGHT = 'right';
const OUTSIDE = 'outside';
const INSIDE = 'inside';
const SIDES = [TOP, RIGHT, BOTTOM, LEFT];
const SIDES_LENGTH = SIDES.length;