A visitor to Buncrana has thanked all those who helped saved his life after he suffered a sudden cardiac arrest.