Visual Source Code Font – Ubuntu 16.04

Droid font has been deprecated in Ubuntu 16.04, and this causes the underline character to NOT render in the visual source code terminal.  Change the font settings:

"editor.fontFamily": "Liberation Mono",

Okay but not as good:

"editor.fontFamily": "'Noto Mono', 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",

Macbook Unread Message Wrong

Close your iMessages and then open a terminal and do the following:

$ killall Dock

Refer: https://emmanuelbernard.com/blog/2015/02/20/unstuck-unread-count-apple-messages-app/

Keyring Issue with Ubuntu Lite

Problem: Ubuntu Lite keeps asking to unlock keyring

Solution: Unlock the keyring and/or change its password to match logon

$ sudo apt-get install seahorse

Refer: https://askubuntu.com/questions/867/how-can-i-stop-being-prompted-to-unlock-the-default-keyring-on-boot

  • Open Applications -> Accessories -> Password and Encryption Keys
  • Right-click on the "login" keyring
  • Select "Change password"
  • Enter your old password and leave the new password blank
  • Press ok, read the security warning, think about it and if you still want to get rid of this dialog, choose "use unsafe storage".

 

Backup of Firefox Settings

Refer: https://support.mozilla.org/en-US/questions/1126509

You can look at this extension:

  • Password Exporter: https://addons.mozilla.org/firefox/addon/password-exporter/

You can copy files like these to the current Firefox profile folder to restore specific data.

  • bookmarks and history: places.sqlite
  • bookmark backups: JSON backups in the bookmarkbackups folder
  • SQLite files like cookies.sqlite (cookies) and formhistory.sqlite (saved form data)
  • logins.json and key3.db (decryption key) for Passwords saved in the Password Manager
  • cert8.db and possibly cert_override.txt for (intermediate) certificates stored in the Certificate Manager
  • persdict.dat for words you added to the spelling checker dictionary
  • permissions.sqlite for Permissions and possibly content-prefs.sqlite for other Site Preferences
  • sessionstore.js for open tabs and pinned tabs and tab groups

You can use this button to go to the current Firefox profile folder:

  • Help > Troubleshooting Information > Profile Directory:
    Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder
  • http://kb.mozillazine.org/Profile_folder_-_Firefox

See also:

  • https://support.mozilla.org/kb/restore-bookmarks-from-backup-or-move-them
  • https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile

AWS Setup for Bash

Refer:  https://www.crmarsh.com/aws/

To have your account use bash, you need to update your account:

$ sudo vi /etc/passwd

You will need at the end - ::/home/mruckman:/bin/bash

This is both your home directory and also the :/bin/bash says to use bash

WordPress Bad Cert

Scan your WordPress code to turn off SSL Check, if you are behind a Firewall that re-writes the certs.

Searching for: sslverify
wp-includes\class-http.php(230): 'sslverify' => true

Accessing Oracle with Python

Ubuntu 14.04
$ sudo apt-get install python-dev
$ sudo pip install --upgrade pip
$ sudo -H pip install JayDeBeApi
Refer: https://pypi.org/project/JayDeBeApi/
Another option, untried: http://cx-oracle.readthedocs.io/en/latest/installation.html#quick-start-cx-oracle-installation

Python Request to Curl

Nice little utility to convert your Python Requests to Curl Statements.

Refer: https://github.com/ofw/curlify

Install
$ sudo pip install curlify
Usage

import curlify
import requests

response = requests.get("http://google.com")
print(curlify.to_curl(response.request))