Skip to content

Instantly share code, notes, and snippets.

View brunopk's full-sized avatar

Bruno Piaggio brunopk

View GitHub Profile
@brunopk
brunopk / home_assistant.md
Last active June 8, 2025 00:36
Homa Assistant

Home Assistant

@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 / strip_controller.md
Last active June 9, 2025 18:17
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 17, 2025 23:03
Useful commands for Linux and macOS

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 / typescript_00.md
Last active March 11, 2025 22:00
Setting ESLint and Prettier for TypeScript projects

TypeScript

@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