Friday, August 30, 2013

Puppet module for installing and configuring pgpool

Here is a puppet module that I have written for installing and configuring pgpool. Feel free to modify to suite your needs.

Ansible module for AWS EC2 ENI

Here is an Ansible module that I have written (reference ec2_vol by Lester Wade) for creating and attaching an AWS EC2 ENI to an instance. Attaching to an instance is optional.

Feel free to modify to your own need.

Monday, February 4, 2013

Script I used for suspending wireless - bluetooth and wifi - on Sony Vaio VPCS116FA

Here is a script that I used for disabling / enabling wireless on my laptop during suspend/wakeup

[root]# cat > /etc/pm/sleep.d/wireless <<EOF


. /usr/lib/pm-utils/functions

case "$1" in
                rfkill block all
                rfkill unblock all


[root]# chmod 755 /etc/pm/sleep.d/wireless