Skip to content

Instantly share code, notes, and snippets.

View roj4s's full-sized avatar

Luis Miguel Rojas Aguilera roj4s

View GitHub Profile
@roj4s
roj4s / gist:1e043ad448ecc11936f465bc8ffe7715
Created September 30, 2020 18:57
Configure heroku to use subfolders as different projects
heroku buildpacks:set https://github.com/roj4s/subdir-heroku-buildpack -a
<app_name>
heroku buildpacks:add heroku/nodejs -a <app_name>
heroku config:set PROJECT_PATH=api -a <app_name>
@roj4s
roj4s / file_monitor.py
Last active September 30, 2020 13:01
Monitor files with watchdog in python
import sys
import time
from watchdog.observers import Observer
from watchdog.events import LoggingEventHandler
from watchdog.events import FileSystemEventHandler
class Handler(FileSystemEventHandler):
def __init__(self):
FileSystemEventHandler.__init__(self)