Skip to content

Instantly share code, notes, and snippets.

Avatar

Takumi Sakamoto takus

View GitHub Profile
View Dockerfile
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 Sep 17, 2015 — forked from cognusion/riaudit.rb
Simple script to audit AWS EC2 Reserved Instances vs Instances running.
View riaudit.rb
#!/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 Dec 3, 2012 — forked from iwata/mqh_install.sh
Installing MySQL5.1 & Q4M on MacOSX Lion
View mq_install.sh
#!/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
You can’t perform that action at this time.