Skip to content

Instantly share code, notes, and snippets.

View macagua's full-sized avatar
🏠
Working from home

Leonardo J. Caballero G. macagua

🏠
Working from home
View GitHub Profile

Field JS

odoo.define('academy.field', (require) => {

    const registry = require('web.field_registry');
    const Widget = require('web.AbstractField');
@seunggabi
seunggabi / semantic-branch-names.md
Last active April 23, 2025 19:35
Semantic Branch Names

Semantic Branch Names

See how a minor change to your branch name style can make you a better programmer.

Format: <type>/#<issueNumber>-<alias>

Example

@alivx
alivx / ansible.cfg
Created May 23, 2020 15:15
Default Ansible config file
# Example config file for ansible -- https://ansible.com/
# =======================================================
# Nearly all parameters can be overridden in ansible-playbook
# or with command line flags. Ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory, or /etc/ansible/ansible.cfg, whichever it
# finds first
# For a full list of available options, run ansible-config list or see the
@xiCO2k
xiCO2k / nginx-rtmp-stream-multi-debian-18.md
Last active December 10, 2024 14:37
RTMP Server to Stream to Facebook, Youtube, Instagram
apt install nginx
apt install libnginx-mod-rtmp
apt install ffmpeg
apt install stunnel4

vim /etc/nginx/nginx.conf

  • Remove http {} and mail {}
@hari4274
hari4274 / ir_http.py
Created November 24, 2019 18:32
To enable session_id in session/authenticate JSON-RPC call in odoo13 and above
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
from odoo.http import request
class Http(models.AbstractModel):
_inherit = 'ir.http'
@holdenrehg
holdenrehg / docker-compose-with-hostnames.yml
Created June 18, 2019 15:54
docker-compose-with-hostnames
version: '3.3'
services:
app:
build:
context: .
dockerfile: services/app/Dockerfile
ports:
- 5000:5000
networks:
#-*- coding: utf-8 -*-
# This scripts imports a JSON export made with `collective.jsonify` into
# ArangoDB (database: ugent, collection: portal by default)
import os
import json
import time
import pprint
import traceback
from rest_framework import viewsets, status
from rest_framework.response import Response
from .models import *
from .serializers import *
class CancionesForAlbumViewSet(viewsets.ModelViewSet):
"""!
Vistas para registrar las canciones de un album
@author Rodrigo Boet (rudmanmrrod at gmail.com)
@jvanyom
jvanyom / Speech-To-Text.py
Last active October 14, 2024 21:15
Programa de transcripción de un archivo de audio a un archivo de texto
#################
# Para más información consulte este link: https://realpython.com/python-speech-recognition/
# pip install SpeechRecognition
##################
# Importa las librerías necesarias
import speech_recognition as libreria_principal
@eilst
eilst / odoo_security_tool.py
Created February 7, 2019 04:27
Methods to easily see which record rules and acls are applied to a user on a model
# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL).
from odoo.tests import common
class TestSecurityCommon(common.TransactionCase):
def setUp(self):
super(TestProjectEventCommon, self).setUp()