Skip to content

Instantly share code, notes, and snippets.

View batuzav's full-sized avatar
What´s dev?

Pedro Batuza batuzav

What´s dev?
View GitHub Profile
batuzav /
Last active December 11, 2020 20:39
just its the config to deploy a react app

How Config server to deploy React App to a Multisite Server with APache2

Config File in APache2

<VirtualHost *:80>
  Redirect permanent /
batuzav /
Last active December 8, 2020 22:48
.htaccess to all react app
 <IfModule mod_rewrite.c>     
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.html$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-l
      RewriteRule . /index.html [L]
batuzav /
Last active December 3, 2020 00:00
Guide for JavaScript

ES6 Coding Style

This document is intended to provide consistent and helpful coding convention for ES6 code. It should be usable either in Node/IO.js or in the browser.

The recommended transpiling tool for ES6 to ES5 is babel. The recommended bundler for the browser is webpack, but browserify is also acceptable.

The recommended text editor is Sublime Text using babel-sublime. Other editors are acceptable, as long as they have proper ES6 and optionally, JSX support.

Instructions denoted as must/must not are mandatory. Instructions denoted as should/should not are preferred.

batuzav /
Last active October 26, 2023 07:30
BackEnd example

...[backend server nombre]...

Este es el back-end del sistema de [Nombre]. Acá se conecta la LINK y el LINK.


Back-End controlador de usuraio y notocias. El proyecto esta realizado en:

batuzav / nginxconfigmultisite.txt
Last active October 7, 2020 15:13
config nginx multi sites wordpress redirectin to https
server {
listen 80;
server_name ~^(?<name>\w+)\.yourdomain\.com$;
return 301$request_uri?user=$name;
server {
listen 443 ssl http2;
server_name ~^(?<name>\w+)\.yourdomain\.com$;
batuzav / gist:6b01e3b630d18ad89b00e6dec923910b
Last active November 10, 2020 23:23
Nginx config to NodeJS

server { listen 80; server_name;

#Configures the publicly served root directory
#Configures the index file to be served
root /var/www/proyectos/mybl-news-backend;
    index index.html index.htm;

#These lines create a bypass for certain pathnames