Skip to content

Instantly share code, notes, and snippets.

View gcachet's full-sized avatar

Grégoire Cachet gcachet

  • Audacy
  • Paris, France
View GitHub Profile
#!/usr/bin/env php
<?php
$file = $argv[1] ;
list($width, $height) = getimagesize($file) ;
echo $width.'x'.$height."\n" ;
?>
# post_commit and post_rollback transaction signals for Django with monkey patching
# Author Grégoire Cachet <gregoire.cachet@gmail.com>
# http://gist.github.com/247844
#
# Usage:
# You have to make sure to load this before you use signals.
# For example, create utils/__init__.py and then utils/transaction.py contening
# this gist in you project. Then add "import utils.transaction" in your project
# __init__.py file
#
@gcachet
gcachet / org.apache.solr.plist
Created September 25, 2009 10:21
plist to launch solr with launchd on mac os X
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC
"-//Apple Computer//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.apache.solr</string>
<key>ProgramArguments</key>
<array>