No, it will not be possible to enjoy both Dubai shopping festival and Dubai food festival both at the same time with just 30 days Dubai visa. Hence you will have to either renew the visa or have a Dubai visa extension or take a long term visa for about 2 years or 5-year visas.