Nanosecond x-ray diffraction from polycrystalline and amorphous materials in a pinhole camera geometry suitable for laser shock compression experiments.