View server.py
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 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
View mautic-docker-compose.yml
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
mautic: | |
image: mautic/mautic | |
links: | |
- mauticdb:mysql | |
ports: | |
- 80:80 | |
mauticdb: | |
image: mysql:5.6 | |
environment: |
View ffmpeg-linux-static-build-install-one-liner
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
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz && mkdir -p ffmpeg-static && tar xvf ffmpeg-release-64bit-static.tar.xz -C ffmpeg-static --strip-components 1 && sudo mv ffmpeg-static/ff* /usr/bin/ |
View cron.yaml
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
version: 1 | |
cron: | |
- name: "send-test-event" | |
url: "/send-test-event" | |
schedule: "* * * * *" |
View snsToSlack.js
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
var https = require('https'); | |
var util = require('util'); | |
exports.handler = function(event, context) { | |
console.log(JSON.stringify(event, null, 2)); | |
console.log('From SNS:', event.Records[0].Sns.Message); | |
var postData = { | |
"channel": "#aws-sns", | |
"username": "AWS SNS via Lamda :: DevQa Cloud", |
View gist:30b9e6f0051cb414cbf2
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/sh | |
if [ "$1" = "" ] | |
then | |
echo "Usage: $0 <project directory path>" | |
exit | |
fi | |
PROJECT_DIR=$1 | |
cd ${PROJECT_DIR} |