Skip to content

Instantly share code, notes, and snippets.

View leandrodaf's full-sized avatar
:octocat:

Leandro Ferreira leandrodaf

:octocat:
  • Yalo
  • São Paulo
View GitHub Profile
@leandrodaf
leandrodaf / .gitlab-ci.yml
Created June 1, 2021 17:07 — forked from andregaldino/.gitlab-ci.yml
Vue Gitlab CI - Node 10
image: node:10-alpine
.init_ssh: &init_ssh |
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
mkdir -p ~/.ssh
chmod 700 ~/.ssh
[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
.requirements: &requirements |
@leandrodaf
leandrodaf / sku-update
Last active May 28, 2021 12:53
SKU - Example
"SKU","ID da Turma"
"4AVEB","36626"
"VAWDP","36830"
"VAGDP","37380"
"5GIRO","36837"
"4POWB","36624"
"VALOV","36677"
"VALIV","36829"
"VAWIX","36832"
"VAZAP","36684"
@leandrodaf
leandrodaf / vhost.conf
Last active April 29, 2020 01:24
Development - Dockerfile nginx - vhost.conf
server {
large_client_header_buffers 8 32k;
listen 80;
index index.php index.html;
root /var/www/public;
location / {
try_files $uri /index.php?$args;
}
@leandrodaf
leandrodaf / nginx.conf
Created April 29, 2020 00:39
Development - Dockerfile nginx - nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@leandrodaf
leandrodaf / Dockerfile
Created April 29, 2020 00:35
Development - Dockerfile nginx
FROM nginx:stable
COPY ./Docker/nginx/nginx.conf /etc/nginx/nginx.conf
@leandrodaf
leandrodaf / Dockerfile
Last active April 29, 2020 00:23
Development - Dockerfile PHP 7.4 - Lumen
FROM php:7.4-fpm-alpine
ARG HOST_UID=${HOST_UID}
ARG HOST_USER=${HOST_USER}
# Install dev dependencies
RUN apk add --no-cache --virtual .build-deps \
curl-dev \
imagemagick-dev \
libtool \
@leandrodaf
leandrodaf / Laravel PHP7 LEMP AWS.md
Created April 27, 2017 01:20 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
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