Skip to content

Instantly share code, notes, and snippets.


Luis Troya LTroya

  • Santiago, Chile
View GitHub Profile
View laravel8.conf
server {
listen 80;
listen [::]:80;
root /var/www/learning/laravel8/public;
index index.php index.html index.htm;
gzip on;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Integer[] params = getParams();
int size = params[0];
int interval = params[1] + 1;
int lastIndex = 0;
ArrayList<Integer> children = createArrayList(size);
View KanbanTest.php
namespace Tests\Feature;
use App\Models\Task;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class KanbanTest extends TestCase
View kanban-board-App.vue
<div id="app">
<div class="flex justify-center">
<div class="min-h-screen flex overflow-x-scroll py-12">
v-for="column in columns"
class="bg-gray-100 rounded-lg px-3 py-3 column-width rounded mr-4"
<p class="text-gray-700 font-semibold font-sans tracking-wide text-sm">{{column.title}}</p>
LTroya /
Last active Aug 5, 2019
Magento 2 installation guide

Magento 2 installation guide

Nginx configuration

Clone the repository

LTroya / laravel-websockets.conf
Created Jan 22, 2019
Nginx configuration to work with laravel-websockets and laradock
View laravel-websockets.conf
server {
listen 80;
listen [::]:80;
# For https
# listen 443 ssl;
# listen [::]:443 ssl ipv6only=on;
# ssl_certificate /etc/nginx/ssl/default.crt;
# ssl_certificate_key /etc/nginx/ssl/default.key;
LTroya / magento.conf
Created Nov 19, 2018
Magento 2 nginx config
View magento.conf
server {
listen 80;
listen [::]:80;
set $MAGE_ROOT /var/www/magento;
server_name magento.localhost;
root /var/www/magento/pub;
index index.php index.html index.htm;
# Enter into workspace docker container
alias workspace="cd ~/Code/laradock && docker-compose exec workspace bash && cd -"
# Enter into mysql docker container
alias mysql="cd ~/Code/laradock && docker-compose exec mysql bash && cd -"
# Enter into nginx docker container
alias nginx="cd ~/Code/laradock && docker-compose exec nginx bash && cd -"
# Restart nginx after add a new site
LTroya /
Created Jun 18, 2018
Computer Parts
  • Memoria RAM: Kingston HyperX Fury Red HX424C15FR2/8 (1 x 8GB | DIMM DDR4-2400)
  • Tarjeta Madre: ASUS PRIME A320M-A
  • Procesador: AMD Ryzen 5 2600
  • Fuente de Poder: EVGA 600B B1
  • Disco M2: Western Digital Blue 3D NAND 500 GB
  • Video: EVGA GeForce GTX 1060 GAMING (06G-P4-6161-KR)
LTroya /
Last active Aug 27, 2017
Instalacion de php y script para hacer deploy con Jenkins
# Install composer dependencies
composer install
# Create medical-app-api directory
ssh root@VM_IP_1 "mkdir -p ~/nginx/app"
ssh root@VM_IP_2 "mkdir -p ~/nginx/app"
# Avoid some issues when copying .git folder