Various utility scripts for Shimmie2
PHP Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README fix_sizes script Feb 9, 2010
check_for_orphan_files.php extra functions Mar 19, 2012
cli_import.php add cli_import script Feb 9, 2010
clink1_to_clink2.php
coverage.php better averages, and use a gradient of colours rather than static red… Mar 19, 2012
create_monolith_2.2.php monolithing scripts Feb 6, 2012
create_monolith_2.4.php updates to keep create_monolith in sync Jun 17, 2012
fix_sizes.php fix_sizes script Feb 9, 2010
hashes1_to_hashes2.php warehouse maintenance scripts + readme Feb 9, 2010
ids_to_hashes2.php warehouse maintenance scripts + readme Feb 9, 2010
init.sh clone shimmie2-utils, in case init.sh was downloaded alone Mar 9, 2012
reset.sh another slash... Mar 9, 2012
reset_image_ids.php extra functions Mar 19, 2012
shimtest.nginx.conf Updated nginx rewrite rules Jun 28, 2012
shimtest.php-fpm.conf tweaks Mar 9, 2012
zlibcat.php extra functions Mar 19, 2012

README

create_monolith.php
~~~~~~~~~~~~~~~~~~~
run from the root of a shimmie install; it will output monolith.php, a single
file containing all shimmie code and active extensions (but not /lib/*); it will
also have comments stripped and various static optimisations applied.

ids_to_hashes2.php
~~~~~~~~~~~~~~~~~~
convert shimmie1 style "images/123.jpg" to shimmie2 style "images/24/24a7b..."

hashes1_to_hashes2.php
~~~~~~~~~~~~~~~~~~~~~~
convert shimmie2-beta style "images/bl/blah.jpg" to "images/bl/blah"

init_dev.sh
~~~~~~~~~~~
creates a tree of installations suitable for unit testing (one install for
each combination of stable/dev and mysql/pgsql/sqlite, with wipe-and-reinstall
scripts to clean up after testing)

fix_sizes.php
~~~~~~~~~~~~~
Fix the database in cases where the height/width/filesize were listed as zero

cli_import.php [OLD]
~~~~~~~~~~~~~~~~~~~~
Like the "bulk add" extension, but works from the command line.
- Last updated in the 2.1 era, won't work with current versions, but might be
  useful as a base if anyone wants to create an updated version