Skip to content

Instantly share code, notes, and snippets.

View RomkaSk's full-sized avatar

Roman Kravets RomkaSk

View GitHub Profile
@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
@marcelom
marcelom / pysyslog.py
Created December 5, 2012 18:06
Tiny Python Syslog Server
#!/usr/bin/env python
## Tiny Syslog Server in Python.
##
## This is a tiny syslog server that is able to receive UDP based syslog
## entries on a specified port and save them to a file.
## That's it... it does nothing else...
## There are a few configuration parameters.
LOG_FILE = 'youlogfile.log'