Skip to content

Instantly share code, notes, and snippets.

View lucaslz's full-sized avatar
Good Vibe !

Lucas Teotônio Lima lucaslz

Good Vibe !
View GitHub Profile
lucaslz /
Created May 27, 2023 23:49 — forked from yidas/
Codeigniter 3 server configuration for Nginx & Apache

Codeigniter 3 server configuration for Nginx & Apache

Web Server Site Configuration

Recommended Apache Configuration

Use the following configuration in Apache's httpd.conf file or within a virtual host configuration. Note that you should set DocumentRoot and ServerName fit to your environment:

use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Php53\Rector\Ternary\TernaryToElvisRector;
use Rector\Set\ValueObject\SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
lucaslz /
Created June 26, 2022 21:50 — forked from filipelenfers/
Install JDK from tar.gz Ubuntu
#Login as root
sudo su
#create jdk directory
mkdir /opt/jdk
#uncompress, change to your file name
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk
#check if files are there
lucaslz /
Created April 22, 2020 12:33 — forked from mmcc/
Install Docker on Linux Mint 17
sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sh -c 'echo deb ubuntu-trusty main > /etc/apt/sources.list.d/docker.list'
# Install docker
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install linux-image-extra-$(uname -r)
sudo apt-get install docker-engine
sudo service docker start
lucaslz / .gitconfig
Created April 21, 2019 21:57 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
name = Pavan Kumar Sunkara
email =
username = pksunkara
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
smtpencryption = tls
lucaslz / Laravel PHP7 LEMP
Created October 17, 2018 20:49 — forked from santoshachari/Laravel PHP7 LEMP
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
lucaslz / laravel5-nginx-virtualhost
Created August 18, 2018 21:27 — forked from enginkartal/laravel5-nginx-virtualhost
Laravel 5 - Nginx Virtual Host Conf
server {
listen 80;
root /usr/share/nginx/html/laravel/public;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
lucaslz / Install Vagrant Virtualbox Fedora
Created February 3, 2018 18:41 — forked from gangsta/Install Vagrant Virtualbox Fedora
Install Vagrant and Virtualbox on Fedora 27

How to Install Vagrant and Virtualbox Fedora 27

Check for cpu Virtualization

lsmod | grep kvm
kvm_intel             167936  3
kvm                   499712  1 kvm_intel


lucaslz / DoctrineDbalStatementInterface.php
Created September 1, 2017 13:01 — forked from gnutix/DoctrineDbalStatementInterface.php
Mock Builder for Doctrine EntityManager / Connection mock objects.
namespace Mocks;
use Doctrine\DBAL\Driver\Statement;
* Doctrine DBAL Statement implementing \Iterator.
* This class has been created because of a bug in PHPUnit Mock Objects.
# Sublime Text 3 install with Package Control (last update: 25 September 2016)
# No need to download this script, just run it on your terminal:
# $ curl -L | sh
# Detect the architecture