Skip to content

Instantly share code, notes, and snippets.

@morugu
morugu / server.py
Last active December 6, 2021 00:31 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/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
mautic:
image: mautic/mautic
links:
- mauticdb:mysql
ports:
- 80:80
mauticdb:
image: mysql:5.6
environment:
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/
@morugu
morugu / cron.yaml
Last active November 10, 2016 10:31
aws-eb-queue-worker-cron-sample-yaml
version: 1
cron:
- name: "send-test-event"
url: "/send-test-event"
schedule: "* * * * *"
@morugu
morugu / snsToSlack.js
Created November 10, 2016 09:46 — forked from terranware/snsToSlack.js
AWS Lambda function to Slack Channel hookup
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",
#!/bin/sh
if [ "$1" = "" ]
then
echo "Usage: $0 <project directory path>"
exit
fi
PROJECT_DIR=$1
cd ${PROJECT_DIR}