Cerca qui le cose strambe

2018-05-26

how to load a static html page in firefox new tabs

From some months in order to load a static page in new tabs Firefox requires a bit of configuration more in detail: created a file local-settings.js in mozillainst\defaults\pref folder (C:\Program Files (x86)\Mozilla Firefox\defaults\pref on my laptop) with this content
// local-settings.js.cfg needs to start with a comment line
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);
then created another file mozilla.cfg in mozillainst folder (C:\Program Files (x86)\Mozilla Firefox on my laptop) with this content
// mozilla.cfg needs to start with a comment line

var {classes:Cc,interfaces:Ci,utils:Cu} = Components; /* set new tab page */ try {

 var newTabURL = "file:///C:/some/path/to/an/htmlfile.html";
 aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService);
 aboutNewTabService.newTabURL = newTabURL;

} catch(e){Cu.reportError(e);} // report errors in the Browser Console
and finally close and reopen firefox for this change to take effect

2018-03-06

KVM is an hidden gem on Dell laptops

I have been working with Dell laptops for 12 years now... and today I discovered that some of them is shipped with a quite nice KVM built-in feature that allows for remote BIOS access wow - this is huge! Maybe dangerous... but really *huge!*

2018-02-22

how to change your password when logged in rdp from within another rdp session

today I had to change the password of one of my acconts that I can reach only through a double rdp (i.e.: I could not use the smbpasswd command from linux :( ) Usually, when a single rdp is involved the simple trick is using its basic translation: CTRL-ALT-END is translate by the rdp client into a remote CTRL-ALT-DEL, thus allowing you to reach the screen for changing the password my doubt came from the fact that I need to do this from within another rdp session... in 2 minutes google provided me this link that clearly explains how to change your password when logged in rdp from another rdp:
  1. go to the Start menu
  2. Type osk and Hit enter to run the on-screen keyboard program
  3. Once the On screen Keyboard is open, hold ctrl+Alt on your physical keyboard, then click on the del key in the on screen keyboard
and -BANG!- in the double-remote session you are prompted with the option to change your password job done