<commit_before>#!/bin/sh
## Sets up ssh stuff, some bash goodies,
## and a vimrc, should work on any linux distro.
## Also Emacs.

## wget -N https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/.genericLinuxConfig.sh -P ~/; sh ~/.genericLinuxConfig.sh


## My ssh key:
cd
if [ ! -d ~/.ssh/ ]; then
  git clone https://ryanpcmcquen@bitbucket.org/ryanpcmcquen/.ssh.git
  chmod 700 .ssh/
  chmod 400 .ssh/*
  chmod 444 .ssh/id_rsa.pub
  chmod 644 .ssh/known_hosts
fi

## Copy this version if you do not have sudo:
##echo >> /etc/profile.d/START_SSH_AGENT; echo 'if [ -z "$SSH_AUTH_SOCK" ]; then' >> /etc/profile.d/START_SSH_AGENT; echo '  eval `ssh-agent`' >> /etc/profile.d/START_SSH_AGENT; echo '  ssh-add' >> /etc/profile.d/START_SSH_AGENT; echo 'fi' >> /etc/profile.d/START_SSH_AGENT; echo >> /etc/profile.d/START_SSH_AGENT

## Start the ssh-agent so we can clone away without
## entering a passphrase several times:
if [ -z "$SSH_AUTH_SOCK" ]; then
  eval `ssh-agent`
  ssh-add
fi

## Get vimrc, and set up git config:
curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/.gitVimNORMALorROOT.sh | sh

## Emacs!
wget -N https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/.emacs -P ~/

if [ -e $HOME/.bashrc ]; then
  if [ -e $HOME/.bash_profile ]; then
    BASHFILE=".bash_profile"
  else
    BASHFILE=".bashrc"
  fi
  ## Make ssh less annoying:
  if [ -z "$(grep 'SSH_AUTH_SOCK' ${BASHFILE})" ]; then<commit_msg>Switch to Keybase repo.<commit_after>#!/bin/sh
## Sets up ssh stuff, some bash goodies,
## and a vimrc, should work on any linux distro.
## Also Emacs.

## wget -N https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/.genericLinuxConfig.sh -P ~/; sh ~/.genericLinuxConfig.sh


## My ssh key:
cd
if [ ! -d ~/.ssh/ ] && [ "`which run_keybase`" ]; then
  git clone keybase://private/rpcm/.ssh
  chmod 700 .ssh/
  chmod 400 .ssh/*
  chmod 444 .ssh/id_rsa.pub
  chmod 644 .ssh/known_hosts
fi

## Copy this version if you do not have sudo:
##echo >> /etc/profile.d/START_SSH_AGENT; echo 'if [ -z "$SSH_AUTH_SOCK" ]; then' >> /etc/profile.d/START_SSH_AGENT; echo '  eval `ssh-agent`' >> /etc/profile.d/START_SSH_AGENT; echo '  ssh-add' >> /etc/profile.d/START_SSH_AGENT; echo 'fi' >> /etc/profile.d/START_SSH_AGENT; echo >> /etc/profile.d/START_SSH_AGENT

## Start the ssh-agent so we can clone away without
## entering a passphrase several times:
if [ -z "$SSH_AUTH_SOCK" ]; then
  eval `ssh-agent`
  ssh-add
fi

## Get vimrc, and set up git config:
curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/.gitVimNORMALorROOT.sh | sh

## Emacs!
wget -N https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/.emacs -P ~/

if [ -e $HOME/.bashrc ]; then
  if [ -e $HOME/.bash_profile ]; then
    BASHFILE=".bash_profile"
  else
    BASHFILE=".bashrc"
  fi
  ## Make ssh less annoying:
  if [ -z "$(grep 'SSH_AUTH_SOCK' ${BASHFILE})" ]; then
{'fraction_non_alphanumeric': 0.15552523874488403, 'fraction_numerical': 0.008185538881309686, 'mean_word_length': 3.59717868338558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '882371', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1130, 'n_words': 278}