Skip to content

Instantly share code, notes, and snippets.

View lukkor's full-sized avatar
👓

Ludovic lukkor

👓
View GitHub Profile
@lukkor
lukkor / random.sh
Last active February 18, 2019 09:48
Generate random image of given resolution
# From https://unix.stackexchange.com/questions/289572/random-image-generator
mx=320;my=256;head -c "$((3*mx*my))" /dev/urandom | convert -depth 8 -size "${mx}x${my}" RGB:- random.png

Keybase proof

I hereby claim:

  • I am lukkor on github.
  • I am lukkor (https://keybase.io/lukkor) on keybase.
  • I have a public key ASCK8DuW19rIycNPBQUiZDdx40vQhYQ2P9uVkK9-VdhScAo

To claim this, I am signing this object: