Skip to content

Instantly share code, notes, and snippets.

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

Edgardo emoron

🏠
Working from home
View GitHub Profile
@emoron
emoron / Agregator.md
Last active November 28, 2022 14:33
G500_Agregador.md

Arquitectura

Actualmente los clientes de G500 al generar factura electronica, al dar clic en en el menu se requiere validar la estacion en la que se genero el ticket posteriomente es necesario llenar los datos requeridos para la facturación.

Datos

@emoron
emoron / install-rabbitmq-ubuntu1604.md
Created November 17, 2021 15:04 — forked from fernandoaleman/install-rabbitmq-ubuntu1604.md
Install RabbitMQ on Ubuntu 16.06

Install RabbitMQ on Ubuntu 16.04

Install Erlang

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update -y
sudo apt-get install -y erlang erlang-nox
@emoron
emoron / process_downloader.py
Created October 20, 2021 11:11
Downloader Streamming
var fs = require('fs');
var path = require('path')
var json2md = require("json2md")
var marked = require('marked')
const prettier = require("prettier");
var youtubeEmbedded = function (input,options) {
var episode = {
@emoron
emoron / deployment.sh
Last active September 13, 2021 17:39
aws lambda deployment
#!/bin/bash
VARIABLES=''
REGION=us-west-2
PROFILE=DIAGEO
FUNCTION_NAME=name-function
## ENVIRONMENT VARS
ids=(CONTENT_DOC_ID=value1 \
CONTENT_SHEET_NAME=value2 \
QUIZ_ANSWERS_SHEET_NAME=value3 \
@emoron
emoron / keybase.md
Last active January 26, 2021 22:29
keybase

Keybase proof

I hereby claim:

  • I am emoron on github.
  • I am emoron (https://keybase.io/emoron) on keybase.
  • I have a public key ASBOg3mKMdVs55lG0EBvwqT7HWWg1ZaBWLz7GUK_5J-9iAo

To claim this, I am signing this object:

@emoron
emoron / rsync_backup.py
Created March 21, 2020 15:25 — forked from seebk/rsync_backup.py
Python rsync backup script
#!/usr/bin/python3
#######################################################
# Python rsync Backup script
# Sebastian Kraft, 24.06.2013
#
#######################################################
#-----------------------------------------------------
# Config
@emoron
emoron / webpack.config.js
Created March 11, 2020 16:53
Ejemplo de Webpack Pug
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const devMode = process.env.NODE_ENV !== 'production'
const devFlagPlugin = new webpack.DefinePlugin({
__DEV__: JSON.stringify(JSON.parse(process.env.DEBUG || 'false'))
});
const config = {
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\usepackage{tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\usepackage{lipsum}
\begin{document}
<html>
<head>
<!-- Aqui va un comentario -->
<!-- Este es otro comentario -->
</head>
<body>
<h1>Notas de HTML</h1>
<h2>Introduccion a la estructura <strong>basica</strong></h2>
<h3>Este es mas pequeño</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sed ullamcorper dui. Suspendisse maximus congue tortor a mollis. Morbi posuere turpis metus. Praesent ut massa lectus. Sed sit amet sagittis lorem. Praesent mattis feugiat luctus. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam laoreet sed turpis nec varius. Nam lacinia nulla in blandit imperdiet. Mauris non justo at tellus ornare iaculis. Pellentesque ullamcorper nisl eu purus tempor, sit amet tempus dolor eleifend. Etiam et risus ac nisl congue dapibus id vitae nulla. Nulla facilisi. Cras pulvinar bibendum turpis id volutpat.</p>
@emoron
emoron / jimp-example.js
Created May 10, 2019 18:27 — forked from ASteinheiser/jimp-example.js
An example of how to use Jimp to read a base64 image string, resize, removeExif data, then return as an image buffer.
let imageBuffer = Buffer.from(body.profilePicture.split(',')[1], 'base64');
console.log(imageBuffer);
Jimp.read(imageBuffer, function(err, image) {
if (err) {
context.done(err,
prepareErrorResponse(response, 'Unable to remove EXIF data from profile picture'));
}
console.log('before transform: ', image);
image = image.resize(400, 400).exifRotate((err, exifRotatedData) => {