Taken from XBMC Wiki.
UPDATE art SET url = REPLACE(url,'nfs://192.168.0.2/','nfs://nas/');
UPDATE episode SET c18 = REPLACE(c18,'nfs://192.168.0.2/','nfs://nas/');
UPDATE movie SET c22 = REPLACE(c22,'nfs://192.168.0.2/','nfs://nas/');
Taken from XBMC Wiki.
UPDATE art SET url = REPLACE(url,'nfs://192.168.0.2/','nfs://nas/');
UPDATE episode SET c18 = REPLACE(c18,'nfs://192.168.0.2/','nfs://nas/');
UPDATE movie SET c22 = REPLACE(c22,'nfs://192.168.0.2/','nfs://nas/');
Perl wrapper script for curl from Amazon to GET/PUT items to/from S3 buckets, adding the required headers to the curl command line.
Download: http://aws.amazon.com/code/128
$ chmod u+x s3curl.pl
$ ./s3curl.pl \
--id [AWS_KEY] \
#!/bin/bash | |
rm turbo/* | |
rm mozjpeg/* | |
cd orig/ | |
echo libjpeg-turbo | |
find . -name "*.jpg" -exec jpegtran -optimize -copy none -outfile "{}.tmp" "{}" \; -exec mv "{}.tmp" "../turbo/{}" \; | |
echo Done |
For my own sanity, as I always seem to struggle with this.
#!/bin/bash | |
find . -type f -exec touch -r "{}" -d '+1 day' "{}" \; |
#!/bin/bash | |
git clone --depth 1 \ | |
-qb $BRANCH_NAME \ | |
$REPOSITORY_URL $TARGET_CLONE_DIR | |
cd $TARGET_CLONE_DIR | |
git submodule update -q --init --depth 1 |
#!/bin/bash | |
IFS=$'\n' | |
counter=1 | |
for file in $(ls -1tr *.jpg); do | |
mv "$file" "$(printf "img_%04d.jpg" "$counter")" | |
counter=$(($counter + 1)) | |
done |
I hereby claim:
To claim this, I am signing this object:
## Building PHP 5.4.3 under Red Hat Linux 5/6 for php CLI and php-fpm (FastCGI for Nginx/etc.) | |
## Adjust your included PHP modules to suit. | |
$ yum install libxml2-devel libcurl-devel libjpeg-devel libpng-devel libmcrypt-devel | |
- Note: package 'libcurl-devel' is named 'curl-devel' under RHEL 5 | |
$ mkdir /php/compile/path | |
$ cd /php/compile/path | |
$ wget http://au2.php.net/get/php-5.4.3.tar.gz/from/au.php.net/mirror | |
$ tar xvf php-5.4.3.tar.gz |