Skip to content

Instantly share code, notes, and snippets.

View abracu's full-sized avatar
🎯
Focusing

Alfredo Bravo Cuero abracu

🎯
Focusing
View GitHub Profile
@Klerith
Klerith / instalaciones-nest-microservicios.md
Last active June 11, 2024 19:15
Instalaciones recomendadas para el curso de Microservicios con Nest
@danielo515
danielo515 / restore_bin.js
Created November 14, 2020 14:10
Restore everything on google drive bin
const recoverAll = (kind,iterator) => {
while (iterator.hasNext()) {
const next = iterator.next();
next.setTrashed(false);
Logger.log(kind + ": " + next.getName() + " RESTORED!");
}
}
function RecoverTrash() {
const folders = DriveApp.getTrashedFolders();
@abracu
abracu / Odoo
Last active July 6, 2022 19:35
Instalar para correr CLI
- sudo apt install mono-runtime
Ruta de Instalacion Ubuntu
- cd /usr/lib/python3/dist-packages/odoo
Modulos e Instalaciones
- /usr/lib/python3/dist-packages/odoo/addons
Crear Scaffold de Modulo Odoo
@dhoelzgen
dhoelzgen / base_controller.rb
Last active October 7, 2021 16:19
CORS in Rails 4 APIs
class API::V1::BaseController < ApplicationController
skip_before_filter :verify_authenticity_token
before_filter :cors_preflight_check
after_filter :cors_set_access_control_headers
def cors_set_access_control_headers
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS'