Показаны сообщения с ярлыком Mac OS X. Показать все сообщения
Показаны сообщения с ярлыком Mac OS X. Показать все сообщения

22 апр. 2020 г.

Location of browser extensions in macOS

  • Firefox: ~/Library/Application Support/Firefox/Profiles/abcdefgh.default
  • Chrome: ~/Library/Application Support/Google/Chrome/Default/Extensions
  • Yandex Browser: ~/Library/Application Support/Yandex/YandexBrowser/Default/Extensions
  • Yandex Browser: ~/Library/Application Support/Yandex/YandexBrowser/Resources/extension/cache
  • 10 янв. 2018 г.

    How to write to NTFS USB drives on Mac OS X

    Mac OS X by default can only read from attached USB drives with the NTFS file system. Here are the steps to enable read/write access:


    Initial setup (only first time on a new Mac)

    1. Install Homebrew (and probably additional XCode tools)
    2. In Terminal: brew install caskroom/cask/osxfuse
    3. In Terminal: brew install ntfs-3g
    4. In Terminal: sudo mkdir -p /Volumes/NTFS

    Each time when an NTFS USB drive is connected to the computer

    1. List disk partitions: diskutil list
    2. Find identifier of the partition with Windows_NTFS type (typically disk2s1 or disk3s1)
    3. Unmount found drive: sudo umount /dev/disk2s1
    4. Mount the drive with read/write access: sudo ntfs-3g /dev/disk2s1 /Volumes/NTFS -olocal -oallow_other
    5. The mounted drive should appear on the desktop, the file system should be mounted at /Volumes/NTFS.

    The same steps in a shell script


    sudo mkdir -p /Volumes/NTFS
    DISK=`diskutil list | grep Windows_NTFS | sed -E "s/.+Windows_NTFS .+ GB +//"`
    echo Mounting NTFS disk $DISK
    sudo umount /dev/$DISK
    sudo ntfs-3g /dev/$DISK /Volumes/NTFS -olocal -oallow_other

    25 авг. 2017 г.

    Emulate slow network connection on Mac OS X with Network Link Conditioner


    1. Open https://developer.apple.com/download/more/ (Downloads For Apple Developers)
    2. Find and download Additional Tools for Xcode 8.2 (or other Xcode version you use). Note that there is no need to download/install Xcode itself.
    3. Open Additional Tools - Hardware - double-click on Network Link Conditioner
    4. Agree to install it to Preferences
    Available Network Profiles:
    • 100% Loss - drops all incoming and outgoing packets 
    • High Latency DNS - adds 3000 ms DNS delay 
    • Very Bad Network - 1 Mbps 500ms delay downlink, 1 Mbps 500 ms delay uplink, and 10% of incoming and outgoing packets are dropped
    • Edge - 240 Kpbs 400 ms delay downlink, 200 Kbps 440 ms delay uplink
    • 3G - 780 Kpbs 100 ms delay downlink, 330 Kbps 100 ms delay uplink
    • DSL - 2 Mbps 5ms delay downlink, 256 Kbps 5 ms delay uplink
    • LTE - 50 Mbps 50ms delay downlink, 10 Mbps 65 ms delay uplink
    • Wi-Fi - 40 Mbps 1ms delay downlink, 33 Mbps 1 ms delay uplink
    • Wi-Fi 802.11ac - 250 Mbps 1ms delay downlink, 100 Mbps 1 ms delay uplink
    Also there is an option to create custom profiles.

    7 авг. 2017 г.

    Mouse and keyboard support in Midnight Commander for Mac OS X

    Somehow I broke mouse support in Midnight Commander while setting up a fresh Mac OS X. It took me the whole week to find the root cause and enable mouse in MC again. Here is the checklist:

    • Check that Mouse Reporting is enabled
      Terminal - Menu - View or Cmd+R hotkey
    • Find the value of TERM env variable
      echo $TERM in terminal or open Terminal Settings (Cmd+,), go to Profiles - look for Terminfo; it was set to xterm-256color in my case
    • Quit all Midnight Commander instances, if any
    • Edit ~/.config/mc/ini file, find corresponding terminal section, e.g. [xterm-256color] for my terminal, and remove all its entries
    • Start Midnight Commander
    Keyboard support: to make Shift+Up and Shift+Down keys work in Midnight Commander, do the following:
    • Open Terminal Settings - Keyboard tab
    • Add Shift+Up - send text "\033[1;2A" (copy from Shift+Left and edit text)
    • Add Shift+Down - send text "\033[1;2B"