<commit_before>/* vim: set ft=journal fdm=marker fdl=0 nowrap: */

Installation
============

Install Software
----------------

```sh
_packages=('ack'
           'aria2'
           'base64'
           'bash'
           'bash-completion'
           'ccrypt'
           'colordiff'
           'coreutils'
           'curl'
           'darkhttpd'
           'dnscrypt-proxy'
           'elixir'
           'elixir-build'
           'exenv'
           'exiftool'
           'ffmpeg'
           'findutils'
           'gawk'
           'gcc'
           'gdb'
           'git'
           'gnupg'
           'gnupg2'
           'gnu-sed'
           'gnu-tar'
           'go'
           'gotags'
           'gpg-agent'
           'icdiff'
           'jhead'
           'jq'
           'macvim'
           'mercurial'
           'mobile-shell'
           'moreutils'
           'openvpn'
           'p7zip'
           'perl'
           'pod2man'
           'proxychains-ng'
           'python'
           'python3'
           'qrencode'
           'rclone'
           'readline'
           'remarshal'
           'rlwrap'
           'rsync'
           'sdcv'
           'shellcheck'
           'socat'
           'sqlite'
           'sshuttle'
           'ssss'
           'the_platinum_searcher'
           'the_silver_searcher'
           'tor'
           'torsocks'
           'tree'
           'valgrind'
           'vim'
           'wget'
           'youtube-dl')

_casks=('adium'
        'caffeine'
        'coyim'
        'dash'
        'firefox'
        'flux'
        'iterm2'
        'keepassx'
        'little-snitch'
        'micro-snitch'
        'ricochet'
        'textmate'
        'torbrowser'
        'vlc')

# xcode
xcode-select --install

# homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew analytics off

# brews
brew install "${_packages[@]}"

# bash
# - add /usr/local/bin/bash to list of approved shells
# - chsh to switch to it

# dnscrypt-proxy
# - specify --resolver-name=ns0.dnscrypt.is
# - specify --ephemeral-keys

# neovim
brew install neovim/neovim/neovim
mkdir -p ~/.config
ln -s ~/.vim ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim

# universal-ctags
brew tap universal-ctags/universal-ctags
brew install --HEAD universal-ctags

# casks
brew tap caskroom/cask
brew cask install "${_casks[@]}"
```

seil [1]

tmux patched [2]

monaco for powerline [3]

vim-plug [4]

vim plugins [5]

fzf-extras [6]

f.lux [7]

myrepos [8]

rakudobrew [9]

iTerm2 seoul256 colorscheme [10]

iTerm2 alt keybindings [11]


Bootstrap
---------

*Be sure to customize name, email, github before running bootstrap.*

```sh
./bootstrap.sh
```


Plug
----

```sh
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +qa
```


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Configuration
-------------

Remap capslock key to backspace with Seil

System Settings

- System Settings -> Spotlight
  - Search Results
    - uncheck "Bing Web Searches"
    - uncheck "Allow Spotlight Suggestions in Spotlight and Look up"
- System Settings -> Keyboard
  - Keyboard
    - Repeat: fastest
    - Delay: second shortest
  - Shortcuts
    - Launchpad & Dock
      - uncheck all
    - Mission Control
      - uncheck all except "Show Desktop"
      - change "Show Desktop" to Super+D
    - Keyboard
      - uncheck all except "Move focus to next window"
    - Accessibility
      - uncheck all
    - App Shortcuts
      - uncheck all

Make ca-cert for mercurial

- `cacerts = /etc/ssl/certs/ca-certificates.crt`
  - resolved: https://www.mercurial-scm.org/wiki/CACertificates#Mac_OS_X_10.6_and_higher

Little Snitch

`/usr/local/Caskroom/little-snitch/3.6.4/Little\ Snitch\ Installer.app/Contents/MacOS/Little\ Snitch\ Installer`


******************************************************************************

[1] https://pqrs.org/osx/karabiner/seil.html
[2] https://github.com/atweiden/homebrew-formulae/tree/master/tmux
[3] https://gist.github.com/rogual/6824790627960fc93077
[4] https://github.com/junegunn/vim-plug
[5] https://github.com/atweiden/pkgbuilds-plugged
[6] https://github.com/atweiden/fzf-extras
[7] https://justgetflux.com/
[8] https://github.com/joeyh/myrepos
[9] https://github.com/tadzik/rakudobrew
[10] https://github.com/atweiden/iterm2-seoul256-dusk
[11] https://iterm2.com/faq.html
<commit_msg>install curl with openssl, osxlockdown<commit_after>/* vim: set ft=journal fdm=marker fdl=0 nowrap: */

Installation
============

Install Software
----------------

```sh
_packages=('ack'
           'aria2'
           'base64'
           'bash'
           'bash-completion'
           'ccrypt'
           'colordiff'
           'coreutils'
           'darkhttpd'
           'dnscrypt-proxy'
           'elixir'
           'elixir-build'
           'exenv'
           'exiftool'
           'ffmpeg'
           'findutils'
           'gawk'
           'gcc'
           'gdb'
           'git'
           'gnupg'
           'gnupg2'
           'gnu-sed'
           'gnu-tar'
           'go'
           'gotags'
           'gpg-agent'
           'icdiff'
           'jhead'
           'jq'
           'macvim'
           'mercurial'
           'mobile-shell'
           'moreutils'
           'openvpn'
           'p7zip'
           'perl'
           'pod2man'
           'proxychains-ng'
           'python'
           'python3'
           'qrencode'
           'rclone'
           'readline'
           'remarshal'
           'rlwrap'
           'rsync'
           'sdcv'
           'shellcheck'
           'socat'
           'sqlite'
           'sshuttle'
           'ssss'
           'the_platinum_searcher'
           'the_silver_searcher'
           'tor'
           'torsocks'
           'tree'
           'valgrind'
           'vim'
           'wget'
           'youtube-dl')

_casks=('adium'
        'caffeine'
        'coyim'
        'dash'
        'firefox'
        'flux'
        'iterm2'
        'keepassx'
        'little-snitch'
        'micro-snitch'
        'ricochet'
        'textmate'
        'torbrowser'
        'vlc')

# xcode
xcode-select --install

# homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew analytics off

# brews
brew install "${_packages[@]}"

# bash
# - add /usr/local/bin/bash to list of approved shells
# - chsh to switch to it

# dnscrypt-proxy
# - specify --resolver-name=ns0.dnscrypt.is
# - specify --ephemeral-keys

# curl
brew install curl --with-gssapi --with-libidn --with-openssl
brew link --force curl

# neovim
brew install neovim/neovim/neovim
mkdir -p ~/.config
ln -s ~/.vim ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim

# universal-ctags
brew tap universal-ctags/universal-ctags
brew install --HEAD universal-ctags

# osxlockdown (see also: https://objective-see.com/products.html)
mkdir -p ~/.src/osxlockdown && cd ~/.src/osxlockdown
export GOPATH="$PWD"
go get -v -u github.com/SummitRoute/osxlockdown/...
cp src/github.com/SummitRoute/osxlockdown/commands.yaml .
sudo bin/osxlockdown
sudo bin/osxlockdown --remediate

# casks
brew tap caskroom/cask
brew cask install "${_casks[@]}"
```

seil [1]

tmux patched [2]

monaco for powerline [3]

vim-plug [4]

vim plugins [5]

fzf-extras [6]

f.lux [7]

myrepos [8]

rakudobrew [9]

iTerm2 seoul256 colorscheme [10]

iTerm2 alt keybindings [11]


Bootstrap
---------

*Be sure to customize name, email, github before running bootstrap.*

```sh
./bootstrap.sh
```


Plug
----

```sh
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +qa
```


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Configuration
-------------

Remap capslock key to backspace with Seil

System Settings

- System Settings -> Spotlight
  - Search Results
    - uncheck "Bing Web Searches"
    - uncheck "Allow Spotlight Suggestions in Spotlight and Look up"
- System Settings -> Keyboard
  - Keyboard
    - Repeat: fastest
    - Delay: second shortest
  - Shortcuts
    - Launchpad & Dock
      - uncheck all
    - Mission Control
      - uncheck all except "Show Desktop"
      - change "Show Desktop" to Super+D
    - Keyboard
      - uncheck all except "Move focus to next window"
    - Accessibility
      - uncheck all
    - App Shortcuts
      - uncheck all

Make ca-cert for mercurial

- `cacerts = /etc/ssl/certs/ca-certificates.crt`
  - resolved: https://www.mercurial-scm.org/wiki/CACertificates#Mac_OS_X_10.6_and_higher

Little Snitch

`/usr/local/Caskroom/little-snitch/3.6.4/Little\ Snitch\ Installer.app/Contents/MacOS/Little\ Snitch\ Installer`


******************************************************************************

[1] https://pqrs.org/osx/karabiner/seil.html
[2] https://github.com/atweiden/homebrew-formulae/tree/master/tmux
[3] https://gist.github.com/rogual/6824790627960fc93077
[4] https://github.com/junegunn/vim-plug
[5] https://github.com/atweiden/pkgbuilds-plugged
[6] https://github.com/atweiden/fzf-extras
[7] https://justgetflux.com/
[8] https://github.com/joeyh/myrepos
[9] https://github.com/tadzik/rakudobrew
[10] https://github.com/atweiden/iterm2-seoul256-dusk
[11] https://iterm2.com/faq.html

{'fraction_non_alphanumeric': 0.16496490108487555, 'fraction_numerical': 0.014890448840672197, 'mean_word_length': 1.9709320695102686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 29, 'lorem ipsum': 0, 'www.': 2, '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': '1005374', 'n_tokens_mistral': 3432, 'n_tokens_neox': 3215, 'n_words': 663}