Australia's stock market posted its biggest gain since August as a tech recovery and mining booms lifted the market.