https://toggen.com.au/it-tips/find-and-replace-a-value-in-multiple-files-in-a-directory-tree cd /top/of/tree/to/change fgrep -IlR server_name_here \| grep -v "log" \| xargs sed -i.bak -e 's/server_name_here/new_server_name_here/g' Find all non binary files (-I)...
James McDonald
Default account and password for the Symantec Endpoint Protection 12.1.2 Security Virtual Appliance
Installed this on virtual box to have a look: Symantec_Endpoint_Protection_12.1.2_Security_Virtual_Appliance_ML.ova User: admin Password: symantec Run sudo su - to get root (sudo -s won't work)
Chromebook Disable the Touchpad while typing by using syndaemon
http://www.webupd8.org/2009/11/ubuntu-automatically-disable-touchpad.htmlSeriously annoyed that while typing my touchpad would be active and taking the accidental swipes and causing all sort of "unexpected behaviour" Syndaemon to the rescue syndaemon -i 1 -d worked well for me.
Scripting PSFTP and PLINK using VBS
Sample script of using PuTTYs psftp and plink to: login to a remote linux host using plink via ssh, run a find command to return a list of files in a directory tree, build a psftp batch script to grab and move the remote files login again using psftp and run the batch...
RegRead / RegWrite VBS
Thinking of storing settings in registry. Some sample code: set oshell = createobject("wscript.shell") apf = "HKEY_LOCAL_MACHINE\SOFTWARE\Settings" settings = Array("user", "domain", "password", "host") slug = apf & "\edi_transfer_" ' create APFoods key...
VBS Dictionary Object: The poor mans JSON
After spending a lot of time coding in jQuery and CakePHP. Which rely heavily on JSON and PHP Arrays respectively I have come to appreciate storing stuff in objects. Most of my at work Windows scripting stuff is done using VBS so I was searching for a way to store...
Generate and Insert a new password for your Joomla Install from the Linux Command Line
When resetting your Joomla password you may want to generate your own md5sum password. I found an oddity with doing if from the command line. If you just echo the password echo admin | md5sum 456b7016a916a4b178dd72b947c152b7 - echo -n admin | md5sum...
Apple.com Trailers ChromeOS Crouton/Ubuntu 13.04
I have a HP Chromebook but wanted to watch apple.com trailers and it comes up with the "Get QuickTime" splash in Google Chrome. Note: The following fix is not to get Apple.com trailers working in the Chromebooks ChromeOS Google Chrome browser but inside a crouton...
Learning Git
Generally if you Google you will be heading over to stackoverflow and will probably find the answer to specific problems quite quickly. However it pays to have a structural overview of git. I found the following two resources immensely helpful. The most amazing...
Ubuntu 13.04 Screen Dimming when running under Crouton Chroot on a HP Chromebook
I installed crouton using the smaller 'cli-extra' target because I didn't want to have to upgrade a desktop environment through two versions of Ubuntu. sudo sh -e ~/Downloads/crouton -t cli-extra Then entered the crouton change root environment using 'sudo...
