<commit_before>---
title: "macOS Commands"
date: 2017-08-28T11:41:43-07:00
draft: true
tags: ["macos", "cli", "command"]
---

My work computer is using macOS Sierra with a touch bar. As much as I am excited about this new computer, using it hasn't been particularly smooth. Therefore I'm consolidating a list of commands that has helped me get around using macOS. You may find this helpful too. If you like to contribute, hit on up on Github.

## Reindexing Spotlight

When some of your applications are no longer listed in Spotlight, this reindexes

```sh
sudo mdutil -E /
```

Sometimes the in-built video camera doesn't work after you close and open the laptop lid. It says "No Connected Camera" and Chrome may not detect you have a camera. Fix that by running this:

```sh
sudo killall VDCAssistant
```<commit_msg>publised<commit_after>---
title: "macOS Commands"
date: 2017-08-28T11:41:43-07:00
published: true
tags: ["macos", "cli", "command"]
---

My work computer is using macOS Sierra with a touch bar. As much as I am excited about this new computer, using it hasn't been particularly smooth. Therefore I'm consolidating a list of commands that has helped me get around using macOS. You may find this helpful too. If you like to contribute, hit on up on Github.

## Reindexing Spotlight

When some of your applications are no longer listed in Spotlight, this reindexes

```sh
sudo mdutil -E /
```

Sometimes the in-built video camera doesn't work after you close and open the laptop lid. It says "No Connected Camera" and Chrome may not detect you have a camera. Fix that by running this:

```sh
sudo killall VDCAssistant
```
{'fraction_non_alphanumeric': 0.0782874617737003, 'fraction_numerical': 0.022018348623853212, 'mean_word_length': 4.226837060702875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3500722', 'n_tokens_mistral': 501, 'n_tokens_neox': 457, 'n_words': 254}