An open API service indexing awesome lists of open source software.

https://github.com/vidhill/dotfiles-snippets

Dotfiles and snippets
https://github.com/vidhill/dotfiles-snippets

dotfiles snippets

Last synced: 2 months ago
JSON representation

Dotfiles and snippets

Awesome Lists containing this project

README

        

# dotfiles-snippets

Just a space to store my Dotfiles and some snippets

## Cheatsheets

- [Docker](notes-cheatsheets/docker.md)
- [Git](notes-cheatsheets/git.md)
- [Networking](notes-cheatsheets/networking.md)
- [Command line](notes-cheatsheets/command_line.md)
- [Kubernetes - kubectl](notes-cheatsheets/kubernetes.md)

#### Use `shfmt` to format all bash scriptsi

Run

```bash
$ make lint-bash-scripts
```

Install tool

```bash
$ brew install shfmt
```

#### Use prettier to prettify all markdown files

```bash
$ make format-md
```

### Set up spell check pre-commit hook

#### Prerequisites

Copy over custom dictionary

```bash
$ cp git-hooks/.dict.en.pws ~/.config/git/.dict.en.pws
```

Copy helper script into local `bin` folder

```bash
chmod +x git-hooks/aspell-add-word.sh; cp git-hooks/aspell-add-word.sh ~/bin/aspell-add-word.sh
```

#### Copy hook

```bash
$ chmod +x git-hooks/commit-msg-spell-check.sh; cp git-hooks/commit-msg-spell-check.sh .git/hooks/commit-msg
```