Skip to content

Instantly share code, notes, and snippets.

View fredead's full-sized avatar
🍌
banana

Simon Loader fredead

🍌
banana
View GitHub Profile
@nicdoye
nicdoye / activemq
Last active August 23, 2017 15:10
Init script for activemq. Known to work on RHEL 6, probably works on RHEL 5 and SLES Relies on variables set in /etc/sysconfig/activemq
#!/bin/bash
#
# activemq Starts ActiveMQ.
#
#
# chkconfig: 345 88 12
# description: ActiveMQ is a JMS Messaging Queue Server.
### BEGIN INIT INFO
# Provides: activemq
### END INIT INFO
@sneakybeaky
sneakybeaky / prepare_ebs_volume.sh
Created May 25, 2016 10:09
Script to prepare an EBS volume for use. Formats with ext4 if needed and updates fstab. Intended to be run as part of EC2 user data startup.
#!/usr/bin/env bash
if [ ! $2 ]; then
echo "Usage: $(basename $0) DEVICE MOUNT_POINT"
echo
echo " DEVICE - The device location on the EC2 instance. (E.g. /dev/sdh)"
echo " MOUNT_POINT - The location you would like the EBS Volume mounted to. (E.g. /data)"
exit
fi