Skip to content

Instantly share code, notes, and snippets.

FROM perl:latest
RUN cpanm install Starlet
ADD oversleep.psgi /oversleep.psgi
EXPOSE 5000
CMD ["plackup", "-p", "5000", "-s", "Starlet", "--max-workers=8", "/oversleep.psgi"]
@takus
takus / riaudit.rb
Last active September 17, 2015 05:21 — forked from cognusion/riaudit.rb
Simple script to audit AWS EC2 Reserved Instances vs Instances running.
#!/usr/bin/env ruby
# Audits your reserved instances vs your running instances, and reports back.
# If you want to run this from an AWS instance, its IAM Role must be granted at least the following:
#
#{
# "Statement": [
# {
# "Action": [
# "ec2:DescribeInstances",
@takus
takus / mq_install.sh
Created December 3, 2012 21:52 — forked from iwata/mqh_install.sh
Installing MySQL5.1 & Q4M on MacOSX Lion
#!/bin/zsh
MYSQL_VERSION=5.1.65
if [ `which perl` = "/usr/bin/perl" ]; then
echo -n -e "\e[1;31mUSING SYSTEM PERL OK? [y/n]\e[m: "
read ANSWER
if [ "$ANSWER" != "y" ]; then
exit 255
fi