This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# based on https://github.com/alphacep/vosk-api/blob/master/python/example/test_simple.py | |
# by alphacep under Apache 2.0 | |
# modifications by Jan D. | |
# instead of returning a JSON it returns lines of text: MM:SS,texttexttext | |
# so you can use them in a transcript or for close captions | |
# (for the code below to work you need python 3 and pipenv installed. If you do not have pipenv, do | |
# $ pip install --user pipenv | |
# | |
# The lines that start with $ mean that the text of the line after the $ is put in the terminal and executed (press Enter). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
target_branch="production" | |
working_tree="PATH_TO_DEPLOY" | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |