David Johnson-Davies @ technoblogy.com has a nice guide on how to program ATtiny10 6-pin mcu using the arduino IDE. Programming is done using the widely available USBasp programmer from Thomas Fischl. Examples are also included on the guide.
Unlike the SPI protocol used to program the larger AVR chips, such as the ATmega328 in the Arduino Uno, the ATtiny10 uses a programming protocol called TPI (Tiny Programming Interface) which needs only five wires. Fortunately Thomas Fischl’s excellent USBasp programmer supports this protocol ; you can build your own, order one from his site, or they are widely available on eBay , Banggood , etc.