Skip to content

Instantly share code, notes, and snippets.

View wesleysaraujo's full-sized avatar

Wesley Serafim de Araújo wesleysaraujo

View GitHub Profile
@wesleysaraujo
wesleysaraujo / lnmp.sh
Last active May 18, 2018 21:25 — forked from wesleyserafim/lnmp.sh
Deploy Stack Lnmp
!#/bin/bash/
sudo apt-get update
echo '### Instalando Web Server Nginx ###'
sudo apt-get install nginx -y
nginx -v
echo '### Instalando Mysql'
sudo apt-get install mysql -y
mysql -v
echo '### Prepearando para instalar a última versão do PHP ###'
sudo add-apt-repository ppa:ondrej/php
@wesleysaraujo
wesleysaraujo / nginx-default-php
Last active May 18, 2018 21:17 — forked from wesleyserafim/nginx-default-php
Configuração do PHP no Nginx
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
client_max_body_size 20M;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
@wesleysaraujo
wesleysaraujo / nginx.conf
Created November 22, 2017 04:55 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@wesleysaraujo
wesleysaraujo / estados.php
Created January 12, 2017 14:11 — forked from ricardobarantini/estados.php
Array com nome e siglas de estados Brasileiros para select do Codeigniter
$estadosBrasileiros = [
'AC'=>'Acre',
'AL'=>'Alagoas',
'AP'=>'Amapá',
'AM'=>'Amazonas',
'BA'=>'Bahia',
'CE'=>'Ceará',
'DF'=>'Distrito Federal',
'ES'=>'Espírito Santo',
'GO'=>'Goiás',
$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
then you can run
$ sudo composer install