Skip to content

Instantly share code, notes, and snippets.

@mvtango
mvtango / Makefile
Created August 24, 2018 15:06
Makefile to run a EsperService inside a tomcat docker container using https://github.com/IPVS-AS/EsperService
SHELL := /bin/bash
PWD := $(shell pwd)
target/EsperService-0.0.1.war:
mvn install
# make run MODE=-d - run as daemon
MODE := -it
@mvtango
mvtango / service.sh
Created March 28, 2019 12:00
bash service: sync on file change
#! /bin/bash
# Improvement: Use https://github.com/reduardo7/bash-service-manager
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
# -o pipefail fail immediately if error in pipe
# -e fail immediately on error
# -E subshells inherit ERR handler
# -u Error on unset variables
# -x Echo all lines to STDERR
@mvtango
mvtango / install.sh
Created July 7, 2019 01:53
ssm-install
#! /bin/bash
# from https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-managed-linux.html
mkdir /tmp/ssm
curl https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb -o /tmp/ssm/amazon-ssm-agent.deb
sudo dpkg -i /tmp/ssm/amazon-ssm-agent.deb
sudo service amazon-ssm-agent stop
@mvtango
mvtango / README.md
Last active February 27, 2020 11:52
Fix <div> inside of <p> for livebridge

Fix <div> inside of <p> for livebridge

Liveblog gives you broken HTML. Here's how to fix it.

Dependencies

  • beautifulsoup

Files: