How to build a hydrualic handbrake

thinking i might build a hydrualic handbrake as mine doesnt work atm and id like to know how it works/ build one....
any tips?
what have you used for your hydro setup?
good parts to use and where i can get them?