Skip to content

Instantly share code, notes, and snippets.

@photo
photo / install-openphoto.sh
Created Nov 14, 2011
Command line installation of OpenPhoto in under 5 minutes
View install-openphoto.sh
# 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 Oct 18, 2011
Upgrading OpenPhoto to version 1.2 (AWS EC2 AMI)
View upgrade.sh
# 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 Oct 9, 2011
Upload all photos from a directory using command line (openphoto-php - https://github.com/openphoto/openphoto-php)
View openphoto-php-upload-cli.sh
#!/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
You can’t perform that action at this time.