Skip to content

Instantly share code, notes, and snippets.

Luis Troya LTroya

  • Santiago, Chile
View GitHub Profile
@LTroya
LTroya / magento_installation.md
Last active Mar 1, 2019
Magento installation guide
View magento_installation.md

Magento installation guide

Nginx configuration

https://gist.github.com/LTroya/a5a570a651c81697b28fdbca65ea51c2

Clone the repository

@LTroya
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
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;
@LTroya
LTroya / parts.md
Created Jun 18, 2018
Computer Parts
View parts.md
  • 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)
View Laradock.sh
# 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
LTroya / AddRevision.vue
Last active Jun 26, 2017
Revision - Reply components using Vue and Vuex
View AddRevision.vue
<template>
<div class="row">
<div class="col-md-10 col-md-offset-1 pb-20">
<form id="new-revision" class="new-revision" v-on:submit.prevent="submit">
<div class="form-group">
<textarea name="body" id="body" rows="4" class="form-control" placeholder="Do you have something to say?" v-model="form.body"></textarea>
</div>
<button type="submit" class="btn btn-primary" :disabled="isSubmitting">Add Revision</button>
<button type="button" class="btn btn-link" @click="hideReply" v-if="revision" :disabled="isSubmitting">Cancel</button>
@LTroya
LTroya / vue-vuex-items-modal-experiment.html
Last active Jun 25, 2017
Experiment using vue and vuex to add subitems from a modal in a non-parent-child relationship
View vue-vuex-items-modal-experiment.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vuex Experiment</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
@LTroya
LTroya / Example.html
Created May 26, 2017
Bootstrap progress bar height not matching with others
View Example.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css"/>
<script src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
@LTroya
LTroya / readme.md
Created Apr 11, 2017 — forked from nasrulhazim/readme.md
Using Middleware to Check Account Activation and Resend Activation E-mail
@LTroya
LTroya / jenkins_deploy.sh
Last active Aug 27, 2017
Instalacion de php y script para hacer deploy con Jenkins
View jenkins_deploy.sh
## JENKINS DEPLOY ##
# 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
You can’t perform that action at this time.