Auto Hide bookmark toolbar in Firefox

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 60.0.2 (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;
}

Advertisements

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:

pvscsi

 

 

 

 

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

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.

Steps:

  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…”

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.

 %wheel ALL=(ALL) NOPASSWD: ALL

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 0.0.0.0 0.0.0.0 Cellular0
!
ip access-list extended nat-list
permit ip 10.100.100.0 0.0.0.127 any
!
dialer watch-list 1 ip 5.6.7.8 0.0.0.0
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 isp.telus.com

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.

 

Really tried to keep using the Terminal App coming with Mac…

Actually I tried several times by removing iterm2 in last 2-3 months but I always find the feature/function I dislike that provided by Terminal while features I need are not….

1. Why high-light to copy inside Terminal can not sync with CMD-C/CMD-V?

2. Why background colour is included when high-light to copy inside Terminal and paste into Word editor?

3. Why Tabs can not be opened inside one Terminal window? I am too lazy to merge them manually…

4. Why Terminal Tab name can not be automatically set to be just the device name?

5. Where is the logging!!!?

TO BE CONTINUED…