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...
James McDonald
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...
Get the X Display Resolution from the Command Line
Run the following from the command line xdpyinfo | grep 'dimensions' dimensions: 1920x1080 pixels (508x285 millimeters) Version: Fedora 18
XFreeRDP – Remmina Missing RDP Protocol
Just installed xfreerdp as I found that it provided a better experience when connecting to the Oracle Virtualbox RDP server. Also installed Remmina a tsclient style app with multi-protocol support but discovered no support for RDP connections as installed. yum install...
SCRIPT5007: Unable to get value of the property ‘parentNode’: object is null or undefined
Just loaded a jQuery site into IE9 and threw the error "SCRIPT5007: Unable to get value of the property 'parentNode': object is null or undefined" Code Before (working on Google Chrome but not in IE9) $('#item-table tbody').click(function(){...
