Two men have been remanded in custody after a man with a Scotland tattoo was left critically injured following an alleged random attack in Dublin.