How to use arduino to flash a bricked arduino?

Those examples are good for a UNO with a removable chip

No they will work for anything, just connect the right wires up. Most boards have these pins brought out to a seprate 6 pin plug.