临时 (linshi) Just at the moment, at the last minute. Also temporary. The Guoyu dictionary gives the example: “It was agreed, and then at the last minute she changed her mind.”
临时抱佛脚 To clasp the Buddha’s feet at the last minute. To make no preparations and scramble when the matter arrives. The Handian dictionary cites an early example from the Tang poet Meng Jiao: “In old age he clasps the Buddha’s feet.”
特事特办,急事急办 Special matters handled specially, urgent matters handled urgently. In 2022, the news magazine Banyuetan called this “always an important means of grassroots governance.”
随机应变 To change according to the situation.