Skip to content

Instantly share code, notes, and snippets.

View kmaxat's full-sized avatar

Maxat Ku kmaxat

View GitHub Profile
@kmaxat
kmaxat / .vimrc
Created September 1, 2018 17:03 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
{
//Xdebug with php 7.1 setup
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
wget https://xdebug.org/files/xdebug-2.5.5.tgz
tar xvzf xdebug-2.5.5.tgz
cd xdebug-2.5.5
phpize
@kmaxat
kmaxat / gist:c07795ab88677efb843686d075fafa9e
Created February 1, 2017 08:53
NGINX config for php7
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root PATH TO PUBLIC FOLDER IN LARAVEL;
index index.php index.html index.htm;
server_name localhost;
location / {
@kmaxat
kmaxat / Install-php7.md
Created January 31, 2017 18:15 — forked from hollodotme/Install-php7.md
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions