How To Create and Restore an SVN Backup Dump File (.dmp)

Author: , February 1st, 2018

Backup Compressed: svnadmin dump /volumes/data/svn/yourRepo | gzip -9 > /volumes/data/backup/yourRepo.dmp.gz Backup Uncompressed: svnadmin dump /volumes/data/svn/yourRepo > /volumes/data/backup/yourRepo.dmp Restore the Repo Create a new SVN repository: svnadmin create /volumes/data/svn/newRepo Restore the dump file to the new repository: svnadmin load /volumes/data/svn/newRepo < /volumes/data/backup/yourRepo.dmp Just for good measure, here is how to checkout from a local repo: svn […]

How To Enable Compression On Apache Webservers

Author: , April 26th, 2016

Add the following to either .htaccess or httpd.conf: 1 2 3 4 5 6 7 8 9 AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE […]

How To GZip Uncompressed Files Older Than a Week Using Find

Author: , August 29th, 2014

find . -mtime +7 ! -name “*.gz” -exec gzip {} \;

How To Manually Compile and Minify LESS Source Files

Author: , May 24th, 2012

Prerequisites: LESS Compiler YUI Compressor Unzip and copy the build/yuicompressor-2.4.7.jar file to a known location. Java runtime Install of this is beyond the scope of this post 1 2 /usr/lib/nodejs/less/bin/lessc yourFile.less > yourFile.css /usr/bin/java -jar yuicompressor-2.4.7.jar yourFile.css -v -o yourFile.min.css –charset utf-8 /usr/lib/nodejs/less/bin/lessc yourFile.less > yourFile.css /usr/bin/java -jar yuicompressor-2.4.7.jar yourFile.css -v -o yourFile.min.css –charset utf-8 […]