For switching of my radioberry On or Off switch with a single push button I was searching for a compact and simple design. I found the design of Kevin Darrah and designed a small PCB.
Why this fancy switch.... I like to use one button for On and Off for safe shutdown to avoid damage to my running kernel or data on the SD card.
The power mosfet can switch high currents however my home made PCB can go to about 8 amps this is limited by the connectors and copper tracks.
We use two gpio pins from the Raspberry one for switching the power Off after shutdown and one pin to start the shutdown sequence shutdown -h now.
The software is a Python script instead of using processing.io so as Kevin mentioned I used a python script for avoiding install extra software and create extra difficulties for Raspberry Pi users.
The install procedure is straight forward and needs no programming skills at all, the Python script is only 266 bytes.