Skip to content

Instantly share code, notes, and snippets.

View psychosquirrel85's full-sized avatar

psychosquirrel85

View GitHub Profile
@psychosquirrel85
psychosquirrel85 / disk_space_monitor_and_resizer.sh
Created July 30, 2017 17:44
Monitors local disk space on EC2 instance and resizes volume when usage is above certain percentage. Filesystem and partition is available, too.
#!/bin/bash
#This script needs a bit of work. I would like to have the option to use xvd* or sd*.
#As of right now you can not use this script if you have sd* attachments or are using
#LVM.
#Set Alert percent and volume expansion increment in GiB
pcent=85
incr=500
#End Variables
#!/bin/sh
#
#This script will install OpenSwan and configure ipsec.conf
#and ipsec.secrets for the purpose of establishing an IPSec
#VPN with your VPC on Amazon Web Services.
#
#This works with RHEL CentOS Ubuntu and Linux Mint
#The script uses "lsb_release -si" to determine the "flavor"
#If Not able to determine the flavor, the ipsec.{conf,secrets}
#will be written, and you just manually install openswan using
@psychosquirrel85
psychosquirrel85 / ices
Created June 18, 2016 00:08
ices 0.4 Startup script for RHEL/CentOS/Amazon Linux
#!/bin/sh
#
# ices This shell script takes care of starting and stopping
# the iceS Source streamer.
#
# chkconfig: - 86 14
# description: IceS is a multimedia Source Streaming daemon.
# processname: ices
# pidfile: /var/log/ices/ices.pid
# config: /etc/ices.conf