Copy Folders without Files

If you want to copy a complete folder structure, but not the files contained in it, use robocopy from the command line: robocopy “A:\Source folder” “B:\Destination folder” /e /xf * This is lifted straight from https://superuser.com/a/873585/178934, I’m just putting it here for my quick reference.

Continue reading

Gimp Plugin – fixed crop

This is a simple script to crop a plugin with fixed dimensions – I used it to crop out the window border from a VNC Client connected to an industrial touchscreen. (script-fu-register “script-fu-crop” ;func name “Screenshot Crop” ;menu label “Crops an image to a fixed size” ;description “Sandy Scott” ;author…

Continue reading

Sysprep Notes

Sysprep With the OOBE and Generalise options, Will preserve user accounts Drivers will automatically re-install Remembers network keys Forgets network locations (Home/Work/Public) Updates remain installed Windows update need to complete an initial scan Microsoft update is turned off Action Centre items in default state Antivirus starts and works correctly

Continue reading

Updating WordPress

EDIT: Don’t follow this, a properly set up installation will keep itself updated Updating wordpress: mkdir ~/temp cd ~/temp/ wget http://wordpress.org/latest.tar.gz tar -xzvf latest.tar.gz cd /var/www/html/ sudo rm -Rf wp-admin/ sudo rm -Rf wp-includes/ sudo cp -R ~/temp/wordpress/wp-admin/ . sudo cp -R ~/temp/wordpress/wp-includes/ . rsync -vcrultO ~/temp/wordpress/wp-content/ wp-content/ sudo chgrp…

Continue reading

Set-up SpiderOak on CentOS

Download the relevant SpiderOak binary – for the 32-bit Fedora installer it’s: wget https://spideroak.com/getbuild?platform=fedora&arch=i386 Install sudo yum install spideroak-download-file.rpm Set up, using interactive mode /usr/bin/SpiderOak –setup=- Enter details and protect your data! Use cron to run this command as frequently as necessary /usr/bin/SpiderOak –batchmode

Continue reading