Using perl to get newest file in folder


$iisdir = '\\\\myfolder\\subfolder\\';
opendir LOGS, "$iisdir" or die "Directory error for IIS LOGS: $!\n";
my @files = grep /\.txt$/, readdir LOGS;
@files = sort { -M $a <=> -M $b } @files;
$active_log = $files[-1];
print "active log: $active_log\n\n";

Disable Compatibility Check in Firefox

Open "about:config"
Create if necessary and set the key to false for:
extensions.checkCompatibility

After you install the plug-in you want, go ahead and set it back to true again. Once it's installed it will start working.

Sublime – Change font size of folder sidebar

Select Preferences / Browse Packages…, and go to Theme - Default directory.

Open Default.sublime-theme with your editor and search for sidebar_label string. You should find something like:

{
"class": "sidebar_label",
"color": [0, 0, 0],
"font.bold": false
}

You can add here the font size you prefer:
{
"class": "sidebar_label",
"color": [0, 0, 0],
"font.bold": false,
"font.size": 14.0
}

Curl Example for Mariner Lookup Rest Call

Use the following to make the rest call from the command line:


curl -H "Accept: application/xml" -H "Content-Type: application/xml" -d @myfile.xml "http://halprdpolartu01.hq.halw.com:8080/hal-polar/rest/contact/v1.0.0"

curl -H "Accept: application/json" -H "Content-Type: application/xml" -d @myfile.xml "http://halprdpolartu01.hq.halw.com:8080/hal-polar/rest/contact/v1.0.0"