Skip to content

Instantly share code, notes, and snippets.

# update
sudo yum -y update
sudo yum -y upgrade
# enable EPEL6 by changing enabled=0 -> enabled=1
sudo vim /etc/yum.repos.d/epel.repo
# install htop
sudo yum install htop
franklanganke /
Created May 19, 2015 13:36
Stop EC2 instances by tag
# 19.05.2015 Frank Langanke
# stop ec2 instances by tag "off-time" with value "true", can be used as cronjob
_instances=$(aws ec2 describe-instances --filters "Name=tag:off-time,Values=true" --query Reservations[].Instances[].[InstanceId] --output text)
aws ec2 stop-instances --instance-ids $_instances
franklanganke /
Created February 8, 2016 15:28
Fix SSL Handshake error on AWS Linux

Fixing http requests to Cloudflare SSL hosted sites.

$cat /etc/issues
`Amazon Linux AMI release 2015.09`
$ java -version
java version "1.7.0_91"
franklanganke /
Created February 10, 2016 15:58
Using virtualenv Python in local Ansible
franklanganke /
Last active November 4, 2016 15:58
rundeck locale date format

Works on:

Ubuntu 14.04.2 LTS (trusty)

cd /var/lib/rundeck/exp/webapp/WEB-INF/grails-app/i18n
# find and edit following lines: 
cat | grep jobslist\.date\.format
franklanganke /
Created July 28, 2015 08:08
Rundeck smtp email settings for AWS SES
# Rundeck version: 2.5.1-1, Ubuntu *.deb installation
grails.mail.props = ["mail.smtp.starttls.enable":"true","mail.smtp.port":"587"]
# from email or domain has to been verified by SES