Skip to content

Instantly share code, notes, and snippets.

View agnelvishal's full-sized avatar
😀

Agnel Vishal agnelvishal

😀
View GitHub Profile
let price = await fetch("http://localhost:3000/price")
result = await price.json()
console.log(result["priceR"])
@agnelvishal
agnelvishal / phpThread.sh
Last active August 4, 2021 15:49
Compile PHP 7.2 with pthreads on Ubuntu 16.04 or Ubuntu 18.04 or Debian 9 Stretch
#!/bin/bash
sudo apt update && \
sudo apt install -y libzip-dev bison autoconf build-essential pkg-config git-core \
libltdl-dev libbz2-dev libxml2-dev libxslt1-dev libssl-dev libicu-dev \
libpspell-dev libenchant-dev libmcrypt-dev libpng-dev libjpeg8-dev \
libfreetype6-dev libmysqlclient-dev libreadline-dev libcurl4-openssl-dev
cd $HOME
wget https://github.com/php/php-src/archive/php-7.2.2.tar.gz
tar --extract --gzip --file php-7.2.2.tar.gz