Skip to content

Instantly share code, notes, and snippets.

View jbarreraballestas's full-sized avatar
🎯
Focusing

Jhordy Barrera jbarreraballestas

🎯
Focusing
View GitHub Profile
@jbarreraballestas
jbarreraballestas / install reverb in laravel 10.md
Last active March 16, 2024 01:27
Instalar laravel reverb en larav el 10

Instalación de Laravel Reverb en Laravel 10

Para instalar Reverb en Laravel 10, sigue estos pasos:

  1. Actualiza a la última versión de Laravel 10:

    composer update laravel/framework
@jbarreraballestas
jbarreraballestas / remove_000webhost_logo.md
Created October 26, 2023 19:51
How to remove 000webhost logo

Hide 000webhost logo using CSS

a[title="Hosted on free web hosting 000webhost.com. Host your own website for FREE."]{
  display: none;
}

Remove 000webhost logo using Javascipt

@jbarreraballestas
jbarreraballestas / launch.json
Created October 10, 2023 13:13
run odoo vscode windows
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Odoo",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/odoo-bin",
"args": [
"-c",
@jbarreraballestas
jbarreraballestas / res.config.settings.md
Last active October 9, 2023 15:44
Odoo 16.0 res.config.settings sample

models/res_config_settings.py

from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
    _inherit = 'res.config.settings'

    sample = fields.Char(string='Sample', config_parameter='module_name.sample')
@jbarreraballestas
jbarreraballestas / odoo.conf
Last active July 21, 2023 14:08
Odoo nginx configuration
#odoo server
upstream odoo {
server 127.0.0.1:8069;
}
upstream odoochat {
server 127.0.0.1:8072;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
@jbarreraballestas
jbarreraballestas / odoo.conf
Last active May 30, 2024 18:09
Odoo apache virtual host
<VirtualHost *:80>
ServerName myodoodomain.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =myodoodomain.com
RewriteRule ^ http://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName myodoodomain.com

Configurar la seguridad del servidor ubuntu

Acceso SSH con llave pem

Crear carpeta para la llave

mkdir llavero

Ingresar a la carpeta

Comandos docker

correr el contenedor hello-world

docker run hello-world

ver documentación

docker run -h

Reglas de iptables

INPUT Configura las reglas de paquetes entrantes

FORWARD Configura las reglas de reenvío de paquetes

OUTPUT Configura las reglas de paquetes salientes

ACCEPT Significa que el paquete podrá pasar.

Configuración API / Web Service Educativo Probada en versión 3.11.5+, 4.1.1+

Identificado como usuario administrador:

Administracion servicios web

  • Administración del sitio > Servidor > Servicios Web

Paso 1. Habilitar Servicios Web