Skip to content

Instantly share code, notes, and snippets.

View gaboluque's full-sized avatar
🐻

Gabriel Luque gaboluque

🐻
View GitHub Profile
@gaboluque
gaboluque / mediaConvertConfig.json
Created February 6, 2022 23:01
AWS Media Convert simple config
{
"Queue":"<insert_queue_arn_here>",
"UserMetadata":{},
"Role":"<insert_iam_role_here>",
"Settings":{
"TimecodeConfig":{
"Source":"ZEROBASED"
},
"OutputGroups":[
{
FROM node:14.17
WORKDIR /usr
COPY package.json ./
COPY tsconfig.json ./
COPY src ./src
RUN ls -a
RUN yarn install
EXPOSE 8000
CMD ["yarn","start"]
## Stage one: where the app is built
FROM node:14.17 AS builder
WORKDIR /usr
# We copy the necessary files to build our project
COPY package.json ./
COPY tsconfig.json ./
COPY src ./src
# We build our project
@gaboluque
gaboluque / express-entry.ts
Created October 8, 2021 17:18
Simple NodeJS-Express starting file
import cors from "cors";
import express, { NextFunction, Request, Response } from "express";
import helmet from "helmet";
import { errorHandler } from "./complements/helpers/errorHandler";
import { userRouter } from "./modules/users/users.router";
// Initial Express configuration
const app = express();
app.use(express.json());
app.use(helmet());
@gaboluque
gaboluque / ShareButton.jsx
Created August 28, 2020 14:47
ReactJs Web Share API Button
import React from 'react';
import { arrayOf, string } from 'prop-types';
import Button from '../Button';
import { ShareAltOutlined } from '@ant-design/icons';
import showNotification from '../helpers/showNotification';
const handleShareError = (message) => {
showNotification({
type: 'error',
message,