Tag: macOS

  • Make SSL certificate always trusted for local development on Mac

    If you’re doing local development on your Mac and you’re always getting SSL warnings (or maybe the local site won’t load at all in Safari), use the following instructions to make the SSL certificate for the local site always trusted by your Mac.

    1. In the address bar, click the little lock with the X. This will bring up a small information screen. Click the button that says “Certificate Information.”
    2. Click and drag the image to your desktop. It looks like a little certificate.
    3. Double-click it. This will bring up the Keychain Access utility. Enter your password to unlock it.
    4. Be sure you add the certificate to the System keychain, not the login keychain. Click “Always Trust,” even though this doesn’t seem to do anything.
    5. After it has been added, double-click it. You may have to authenticate again.
    6. Expand the “Trust” section.
    7. “When using this certificate,” set to “Always Trust”

    Source: Rob Peck : Google Chrome, Mac OS X and Self-Signed SSL Certificates

  • iTunes Internet Radio Stations

  • Delete multiple lines in nano

    For example, when doing $ sudo nano /etc/hosts in the Terminal on Mac.

    1. Move cursor to start of line and type Ctrl + K
    2. Repeat
    3. (Type Ctrl + X to quit)
  • Hard refresh in macOS Safari

    Shift-click the refresh button, or choose View → Reload Page From Origin (⌥⌘R) to refresh ignoring cached resources for the current domain. You can observe the effect in the Web Inspector’s Network tab.

    What I suspect is catching you out here is how a force refresh only bypasses cache for the same domain as the site you’re refreshing. Even with a force refresh, resources may still be cached, such as from CDN domains.

    To bypass cache for all resources, open the web inspector, choose the Network tab, then select ‘Ignore the resource cache when loading resources’. Refresh the page normally (all refreshes ignore cache now, not just ⇧-refresh) and all resources will be loaded from origin.

    For me changing the ‘Ignore the resource cache’ icon from blue to black, seemed to do it.

    Source: keyboard – How to do a complete refresh in Safari 10.1.1 on MacOS Sierra – Ask Different

  • No sound in macOS Catalina (v10.15.3)

    If I restart in the activity window coreaudiod then the sound comes back.

    Source: Audio/Sound fails in macOS Catalina – Apple Community