Import Saved Logins to Firefox using csv/json file.

If you like me who want to take advantage of the Firefox Lockwise for password management, then check the procedures below to import logins to Firefox using csv file.

Likely you would need a pre-v70 Firefox install if your current firefox is updated. This might be due to the new lockwise.

Steps to Prepare your CSV file and convert to JSON format:

  1. Make sure the headers of CSV file, which contains all your logins, are “hostname”, “username”, “password”, like screenshot in the link.
  2. Convert the CSV file to the JSON format. There are multiple tools and scripts online to assist. I used miller tool on linux to do the conversion.

Steps to import the logins:

  1.  On the Pre-v70 Firefox, enable the command line in Browser Console by access “about:config” and set “” to be true.
  2. Open the Browser Console by pressing Ctrl+Shift+J
  3. Paste the code below to the Browser Console:
  4. When prompted, paste the content of your json file.

signons = '[{"username":"xxx","password":"xxx","hostname":"https://"},{more-logins}]';
if (logins = prompt("Logins JSON: [{},{}]",signons)){
try {
logins = JSON.parse(logins);
} catch(e){ console.log(e); }

Now you would need to login to the Firefox account so the logins can be synced, which means you would be able to access them in your Firefox account lockwise. Once synchronization is done, you could delete the Pre-v70 firefox from your computer.



Auto Hide bookmark toolbar in Firefox

As of Firefox 69, the browser will no longer load userChrome.css by default. The toolkit.legacyUserProfileCustomizations.stylesheets preference needs to be manually set to true to restore this ability.

I used to install extension for firefox have bookmark bar autohide after opening a new tab. Now somehow that extension is not available on firefox add-on store anymore…But direction pointed by Reddit shows I actually does not even need that extension…

Here below are the steps for my Firefox 68 (might work for yours as well):

  • Go to about:support within Firefox
  • Under Profile Directory, click on Open Directory
  • Create a folder called “chrome” without quotes
  • Enter chrome, right click and create a new text file. Name it “userChrome.css” without quotes
  • Copy and paste the CSS code below into userChrome.css
  • Restart Firefox (make sure “show bookmark toolbar” is checked already)

#main-window #PersonalToolbar {
visibility: collapse !important;
opacity:0 !important;
margin-top: -23px !important;
transition: all 0.2s ease 0.2s !important;

#main-window[title^="Mozilla Firefox"] #PersonalToolbar,
#main-window[title^="about:newtab"] #PersonalToolbar,
#main-window[title^="New Tab"] #PersonalToolbar,
#main-window[title^="Firefox"] #PersonalToolbar,
#main-window[title^="Nightly"] #PersonalToolbar {
visibility: visible !important;
margin-top: 0px !important;
transition: all 0.2s ease 0.2s !important;
opacity: 1 !important;

Import OVF to VMware workstation

I recently have the needs to test some feature on the latest version of Cisco FMC and decided to install one on my VMware workstation. However when tried to import the OVF file, I ran into following issue:






I changed VirtualSCSI within OVF file under ResourceSubType to lsilogic. But that leaded to another issue: the SHA HASH not matching anymore when tried to import again… Luckily I found this post here.

I uploaded the ovf, vmdk and mf files coming from Cisco to my linux VM and run following: openssl sha1 *.vmdk *.ovf > *.mf

Then downloaded the only mf file back to my PC to overwrite the original one. Now the appliance is able to be imported to work in workstation 14.

P.S. Within VMware workstation, I also upgraded the VM compatibility setting and there does not seem break anything…

How to download CiscoLive! recording

UPDATE: Check the bottom of the article for updated method.

NOTE: Respect copyright and consider what you’re doing and WHY before you use this technique to download videos that may have been embedded for a reason.

I like to watch CiscoLive! recordings for training and studying. But not all the time that I have Internet access when I am Free…Plus there are times I just simply want to play the recording at 1.2/1.3x speed to save some time…

I found actually it is quiet easy to download the recording. I use Firefox but should be similiar to Chrome as well.


  1. Load the video in browser
  2. Press “Ctrl+Shift+C” to open Web inspector on Windows. Do not have a Mac at the moment to find shortcut key.
  3. Click on the Video player inside browser
  4. The source link of the Video should be showing in inspector window
  5. Double click the source link to copy it
  6. Paste the link to a new browser tab
  7. Once the page loaded, right click on the video and “Save Video As…”


Not sure exactly when, but CiscoLive! site changed its way to stream recorded videos and the above method stopped working… Here below is my current workaround to download from


  1. Load the video in browser
  2. Press “Ctrl+Shift+E” to open Network Monitor in Firefox on Windows. Do not have a Mac at the moment to find shortcut key.
  3. Refresh or reload the page
  4. You should see tons of requests in the network monitor list
  5. Sort the list by File column and try to find the one entry with all digits value under the File column, such as 5803751421001, and likely the domain associated should be (at least currently):
  6. Right click on the entry and select Copy Response
  7. Paste the response into notepad and search for MP4
  8. Here is an example
  9. Paste the link from response to a new browser tab
  10. Once the page loaded, right click on the video and “Save Video As…”


USB-Serial adaptor on Mac OS X

I have a USB-Serial adaptor (prolific pl2303 chip) and MBP Mac OS 10.11.4 for connecting to console of switches, routers and firewalls via screen. Since somewhere between Mac OS 10.11.2 and 10.11.3, the setup is broken as screen will hang if I exit the screen session and then try to reconnect to the device via USB-Serial adaptor. I did upgrade to the latest firmware from prolific page for Mac but did not help…So I started posting for help on Internet forums…

janm on Stack Exchange really helped. Here is the workarounds: use cu instead of screen on Mac for the task. The catch though is by default cu needs to be run with sudo. So,

  1. Type in the password everytime you try to connect to console.
  2. Use one of the followings to get rid of the password prompts:

OPTION 1: Create cu configuration file like “/Users/test/cu.conf” with content below and also create the lock folder accordingly. Run the cu command as “cu -I /Users/test/cu.conf -l /dev/cu.usbserial -s 9600 –nostop

lockdir /Users/test/cu_lockdir

OPTION 2(HIGHLY NOT Recommended): Run “sudo visudo” and uncomment the line below and save and exit.


BTW, I also opened a bug report with Apple and provided necessary debug but have not heard back yet…I think the screen compiled with Mac OS X changed on handling port open/close.

3G on Cisco 819 Router

After two days of researching and testing, finally it is working. It was not any configuration difficulty but some technology confusion. Plus the configuration sample cisco provides doesnot really work…Here below is my working configure with Telus SIM Card.

chat-script hspa-R7 "" "AT!SCACT=1,1" TIMEOUT 30 "OK"
!Tried "ATDT*99*1#" and made no difference
interface Cellular0
description PrimaryWAN
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation slip
load-interval 30
dialer in-band
dialer string hspa-R7
dialer watch-group 1
no peer default ip address
async mode interactive
ip route Cellular0
ip access-list extended nat-list
permit ip any
dialer watch-list 1 ip
dialer watch-list 1 delay route-check initial 60
dialer watch-list 1 delay connect 1
dialer-list 1 protocol ip permit
ip nat inside source list nat-list interface Cellular0 overload
line 3
script dialer hspa-R7
modem InOut
no exec
transport input all
transport output all

Under exec mode, create/modify the profile for GSM to match the telus requirement.

cellular 0 gsm profile create 1

Mac OS X and Dell Monitor via HDMI

Please refer to here for issue background details. Below is just steps for El Capitan running on Retina MBP with Dell U2410/U2414 monitors.

  1. Download the patch-edid.rb script from Andrew Daugherity’s improved patch-edid.rb script. Put the script on Desktop.
  2. Connect the external monitor.
  3. Type “cd Desktop; chmod +x ruby patch-edid.rb; ./ruby patch-edid.rb” in Terminal.
  4. A new folder will be created on desktop. Move it into the “/System/Library/Displays/Contents/Resources/Overrides/” folder. If prompted if you want to overwrite an existing folder, consider backing it up first.
  5. Restart Mac. The monitor should changed color mode to RGB.
  6. Optionally, Adjust the color profile inside Mac OS and/or monitor presets as needed.