Skip to main content

Batch resize images on Ubuntu

  • Install imagemagick
  • Create newdir and copy images to be resized into it
  • cd into newdir

mogrify -format jpg -resize "800x500>" *

Extract parts of Mysql dumps

nawk '/CREATE DATABASE \/\*\!32312 IF NOT EXISTS\*\/ \`%DB-NAME%\`/,$0 ~ /CREATE DATABASE/ && $0 !~ /%DB-NAME%/' DUMPFILE > DUMP_DB

Subscribe to