Skip to content

Instantly share code, notes, and snippets.

View dimitryz's full-sized avatar

Dimitry Z. dimitryz

View GitHub Profile
@dimitryz
dimitryz / convert.php
Last active December 23, 2015 07:28
Quickly convert all images in the given and sub-directories to JPGs.
<?php
/**
* Converts all images in this directory and all subdirectories into JPGs.
*
* Example: php convert.php ~/Images
*
* Takes a directory as its only parameter and traverses it recursively looking for images. Whenever an image is found,
* this creates a copy of the image with the same name and the extension .jpg. Images with the extension .jpg will
* be overwritten.
*
@dimitryz
dimitryz / .hgignore
Created November 8, 2012 20:13
Mercurial Wordpress Ignore file
.DS_Store
_notes
syntax: regexp
\.ht.+
\.project
wp-config.php
uploads/.+
.*\.sw.+$