Skip to content

Instantly share code, notes, and snippets.

View brunopk's full-sized avatar

Bruno Piaggio brunopk

View GitHub Profile
@brunopk
brunopk / doc_1.md
Last active June 3, 2023 02:40
Playing with Google Calendar and Apps Script

Google Calendar and Google Apps Script

Bigquery

@brunopk
brunopk / tips_spring.md
Last active March 5, 2024 15:59
Spring

Spring

@brunopk
brunopk / doc.md
Last active March 6, 2024 01:31
Strip Controller

Strip Controller

@brunopk
brunopk / README.md
Last active December 25, 2023 21:37
Debugging Typescript AWS Lambda with VSCode and Serverless

Debug TypeScript serverless application in VSCode

  1. Edit serverless.yml, the handler path should be from the root folder (not dist/**/your_handler.main or from any directory with compiled files), for instance:
    ...
    my_function:
     handler: handlers/my_function.main
    ...
  2. Edit serverless.yml adding serverless-plugin-typescript to the plugin section:
@brunopk
brunopk / commands.md
Last active February 21, 2024 04:09
Useful commands for Linux and macOS

Commands

@brunopk
brunopk / mac-setup-redis.md
Created May 13, 2021 16:19 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@brunopk
brunopk / README.md
Last active July 1, 2021 00:39
Setting ESLint and Prettier for TypeScript projects

Setting eslint and prettier for TypeScript projects

  1. Install dev dependencies:
$ yarn add --dev eslint prettier
$ yarn add --dev eslint-plugin-prettier eslint-config-prettier

or

@brunopk
brunopk / serverless_offline.md
Last active June 30, 2021 13:36
Running serverless offline with a local DynamoDB database

Running serverless offline (with a local DynamoDB database)

On console:

$ export AWS_ACCESS_KEY_ID='any_value'
$ export AWS_SECRET_ACCESS_KEY='any_value'
$ export AWS_SERVICE_REGION='us-west-2'
$ export IS_LOCAL=1
$ serverless offline start
@brunopk
brunopk / server_clean.sh
Last active November 19, 2020 22:05
Script para eliminar archivos temporales de JBoss/WildFly mediante cron
# 1. Colocar este script en la ruta del server (ej: /opt/jboss7)
# 2. Dar permisos de ejecución:
#
# chmod +x server_clean.sh
#
# 3. Agregar las correspondientes líneas al servicio cron:
#
# 00 00 1 * * /opt/jboss7/server_clean.sh
# 00 00 4 * * /opt/jboss7/server_clean.sh
# 00 00 7 * * /opt/jboss7/server_clean.sh