Skip to content

Instantly share code, notes, and snippets.

@photo
photo / install-openphoto.sh
Created November 14, 2011 23:42
Command line installation of OpenPhoto in under 5 minutes
# Installing OpenPhoto on Ubuntu and Apache
# Run this from the command line as root.
# As always, view any script before running it ;).
curl https://raw.github.com/openphoto/frontend/master/documentation/guides/InstallationUbuntuApache.sh | /bin/bash
@photo
photo / upgrade.sh
Created October 18, 2011 23:38
Upgrading OpenPhoto to version 1.2 (AWS EC2 AMI)
# if you don't have php-apc, install it
sudo apt-get install php-apc
# if you don't have the oauth library installed, install it
sudo pecl install oauth
# restart apache
sudo /etc/init.d/apache/restart
# change to the openphoto directory
@photo
photo / openphoto-php-upload-cli.sh
Created October 9, 2011 19:39
Upload all photos from a directory using command line (openphoto-php - https://github.com/openphoto/openphoto-php)
#!/bin/sh
source secrets.sh
for i in $(ls /path/to/directory/*.JPG) ; do
./openphoto -h yourhost -e /photo/upload.json -F "photo=@$i" -X POST;
done