Skip to content

Instantly share code, notes, and snippets.

View infoshahin's full-sized avatar

Shahin infoshahin

View GitHub Profile
@hasinhayder
hasinhayder / php7.1.md
Last active August 27, 2018 06:53 — forked from VirtuBox/php7.1.md
How to install php7.1-fpm with EasyEngine

How to install php7.1-fpm with EasyEngine


Install php7.1-fpm

apt install php7.1-common php7.1-cli php7.1-zip php7.1-opcache php7.1-mysql php7.1-mcrypt php7.1-mbstring php7.1-json php7.1-intl php7.1-gd php7.1-fpm php7.1-curl php7.1-bz2 php7.1-xml

Copy the php7.1-fpm pool configuration from php7.0-fpm

cp -f /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.conf
@AnowarCST
AnowarCST / Convert.php
Last active July 28, 2016 11:58
convertUTF8
public static function convertUTF8($string)
{
//$sampleString = 'u0986u09a8u09c7u09beu09dfu09beu09b0 u09b9u09c7u09beu09b8u09beu0987u09a8';
$string = preg_replace('/u([0-9a-fA-F]+)/', '&#x$1;', $string);
return html_entity_decode($string, ENT_COMPAT, 'UTF-8');
}
@sohelamin
sohelamin / guide.md
Last active January 12, 2016 18:04
Useful tool installation guide

Open JDK 8 installation

sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
java -version