<commit_before>#!/bin/sh

set -e

# shellcheck source=_lib.sh
. "${XDG_DATA_HOME:-~/.local/share}/replicator/_lib.sh"

section "Utilities"

# cookiecutter
pipx_install "cookiecutter"

# gdb
git_sync https://github.com/cyrus-and/gdb-dashboard "$XDG_DATA_HOME/gdb-dashboard"
pipx_install "gdbgui"

# ngrok
if ! command -v ngrok >/dev/null; then
  goversion=$(go version | awk '{print $4}')
  GOOS=${goversion%/*}
  GOARCH=${goversion#*/}

  important "Bootstrapping ngrok..."
  curl -sS "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-$GOOS-$GOARCH.zip" | funzip >"$HOME/.local/bin/ngrok"
  chmod +x "$HOME/.local/bin/ngrok"
  ngrok update
else
  important "Self-updating ngrok..."
  ngrok update
fi

# Pipeline Tools
cargo_install "runiq"
pipx_install "shell-functools"
go_get "mvdan.cc/xurls/v2/cmd/xurls"

# shfmt
go_get "mvdan.cc/sh/v3/cmd/shfmt"

important "Refreshing tldr pages..."
tldr --update

# vi: ft=sh
<commit_msg>replicator: add http-prompt<commit_after>#!/bin/sh

set -e

# shellcheck source=_lib.sh
. "${XDG_DATA_HOME:-~/.local/share}/replicator/_lib.sh"

section "Utilities"

# cookiecutter
pipx_install "cookiecutter"

# gdb
git_sync https://github.com/cyrus-and/gdb-dashboard "$XDG_DATA_HOME/gdb-dashboard"
pipx_install "gdbgui"

# http-prompt
pipx_install "http-prompt"

# ngrok
if ! command -v ngrok >/dev/null; then
  goversion=$(go version | awk '{print $4}')
  GOOS=${goversion%/*}
  GOARCH=${goversion#*/}

  important "Bootstrapping ngrok..."
  curl -sS "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-$GOOS-$GOARCH.zip" | funzip >"$HOME/.local/bin/ngrok"
  chmod +x "$HOME/.local/bin/ngrok"
  ngrok update
else
  important "Self-updating ngrok..."
  ngrok update
fi

# Pipeline Tools
cargo_install "runiq"
pipx_install "shell-functools"
go_get "mvdan.cc/xurls/v2/cmd/xurls"

# shfmt
go_get "mvdan.cc/sh/v3/cmd/shfmt"

important "Refreshing tldr pages..."
tldr --update

# vi: ft=sh

{'fraction_non_alphanumeric': 0.164576802507837, 'fraction_numerical': 0.00522466039707419, 'mean_word_length': 4.1897018970189706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '5010735', 'n_tokens_mistral': 816, 'n_tokens_neox': 823, 'n_words': 145}