<commit_before>#
# common aliases

alias vvm='((jvisualvm 2>&1 &)&)'
alias jmc='((jmc 2>&1 &)&)'

alias ws='wemux start'
alias wa='wemux attach'
alias wr='wemux rogue'

alias  j='jobs'
alias j1='fg %1'
alias j2='fg %2'
alias j3='fg %3'
alias j4='fg %4'
alias ,,='fg %+'
alias ,.='fg %-'

function , () {
  if [ $(jobs | grep '\[' | wc -l) -gt 1 ]; then
    fg %-
  else
    fg
  fi
}

alias  v='vim'
alias vi='vim'
alias ea='vim ~/.bash_aliases'
alias ra='source ~/.bash_aliases'

alias  ot='tail -F <%= node[:voice_rails][:logdir] %>/current <%= node[:voice_push][:logdir] %>/current <%= node[:voice_ahn][:logdir] %>/current <%= node[:voice_numbers][:logdir] %>/current'
alias tlf='tail -F /usr/local/<%= node[:flashphoner][:basename] %>/logs/server_logs/*.log'
alias tln='tail -F <%= node[:nginx][:basedir] %>/logs/*.log'

function mri() {
  rvm ruby-<%= node[:mri][:version] %>@global
}

function rbx() {
  rvm rbx-<%= node[:rbx][:version] %>@global
}

function jrb() {
  rvm jruby-<%= node[:jruby][:version] %>@global
}

alias   h='history | tail -n20'
alias   l='ls -1'
alias  ll='ls -lhG'
alias lla='ls -lhGa'
alias   s='cd ..'
alias   o='cd /opt'
alias   e='exit'
alias   t='htop'

alias va='cd <%= node[:voice_ahn][:basedir] %>'
alias vp='cd <%= node[:voice_push][:basedir] %>'
alias vd='cd <%= node[:voice_docs][:basedir] %>'
alias vr='cd <%= node[:voice_rails][:basedir] %>'
alias vs='cd <%= node[:voice_specs][:basedir] %>'
alias vn='cd <%= node[:voice_numbers][:basedir] %>'

function gc() {
  git commit -v -a -m "$*"
}

function gg() {
  git grep -Iin "$*"
}

function Gg() {
  git grep -In "$*"
}

alias  ga='git add --all'
alias gfa='git fetch --all'
alias grh='git reset --hard'
alias  gs='git show'
alias gst='git stash'
alias  gb='git branch'
alias gba='git branch -a'
alias gco='git checkout'
alias gcp='git cherry-pick'
alias  gd='git diff --no-prefix'
alias gdh='git diff --no-prefix HEAD'
alias gdt='git difftool'
alias  gt='git tag'
alias  gp='git push'
alias   g='git status --short'
alias gmt='git mergetool'
alias  gr='git repack -a -d -f --depth=250 --window=250'

alias  gsi='git submodule init'
alias  gsu='git submodule update'

alias gll='git pull'
alias  gm='git smart-merge'
alias  gl='git smart-log'

alias ret='export RAILS_ENV=test'
alias red='export RAILS_ENV=development'
alias rep='export RAILS_ENV=production'

alias  b='bundle'
alias bl='bundle list'
alias bs='bundle show'
alias be='bundle exec'
alias bc='bundle clean'
alias bu='bundle update'
alias bo='bundle outdated'

alias  go='gem outdated'
alias gcu='gem cleanup'

alias  tl='tail -f log/*.log'
alias rac='sh -c "/bin/rm -rf public/assets/*"'
alias psg='ps aux | grep -v grep | grep -v tail | grep -i'
alias afu="sudo aptitude update && sudo aptitude -y full-upgrade && sudo aptitude clean"

function remove-rbx-bundles() {
  find /opt -type d |
    grep vendor/bundle/rbx |
    sed 's/^\(.*\)vendor.bundle.*$/\1/' |
    sort -u |
    while read dir; do cd $dir; rm -rf vendor/bundle/rbx; done
}

alias   r='rake'
alias  rt='rake -T'
alias  rr='rails runner'
alias  rc='rails console'
alias  rg='rails generate'

alias  svd='sudo sv down'
alias  svr='sudo sv restart'
alias  svs='sudo sv status'
alias  svu='sudo sv up'
alias svda='sudo sv down /etc/service/*'
alias svra='sudo sv restart /etc/service/*'
alias svsa='sudo sv status /etc/service/*'
alias svua='sudo sv up /etc/service/*'

<% if node[:roles].include?('desktop') %>
#
# desktop specific aliases

alias  gff='git flow feature'
alias gffs='git flow feature start'
alias gffp='git flow feature publish'
alias gfff='git flow feature finish'
alias  gfr='git flow release'
alias gfrs='git flow release start'<commit_msg>add redis monitor alias<commit_after>#
# common aliases

alias vvm='((jvisualvm 2>&1 &)&)'
alias jmc='((jmc 2>&1 &)&)'

alias ws='wemux start'
alias wa='wemux attach'
alias wr='wemux rogue'

alias  j='jobs'
alias j1='fg %1'
alias j2='fg %2'
alias j3='fg %3'
alias j4='fg %4'
alias ,,='fg %+'
alias ,.='fg %-'

function , () {
  if [ $(jobs | grep '\[' | wc -l) -gt 1 ]; then
    fg %-
  else
    fg
  fi
}

alias  v='vim'
alias vi='vim'
alias ea='vim ~/.bash_aliases'
alias ra='source ~/.bash_aliases'

alias  ot='tail -F <%= node[:voice_rails][:logdir] %>/current <%= node[:voice_push][:logdir] %>/current <%= node[:voice_ahn][:logdir] %>/current <%= node[:voice_numbers][:logdir] %>/current'
alias tlf='tail -F /usr/local/<%= node[:flashphoner][:basename] %>/logs/server_logs/*.log'
alias tln='tail -F <%= node[:nginx][:basedir] %>/logs/*.log'

function mri() {
  rvm ruby-<%= node[:mri][:version] %>@global
}

function rbx() {
  rvm rbx-<%= node[:rbx][:version] %>@global
}

function jrb() {
  rvm jruby-<%= node[:jruby][:version] %>@global
}

alias   h='history | tail -n20'
alias   l='ls -1'
alias  ll='ls -lhG'
alias lla='ls -lhGa'
alias   s='cd ..'
alias   o='cd /opt'
alias   e='exit'
alias   t='htop'

alias va='cd <%= node[:voice_ahn][:basedir] %>'
alias vp='cd <%= node[:voice_push][:basedir] %>'
alias vd='cd <%= node[:voice_docs][:basedir] %>'
alias vr='cd <%= node[:voice_rails][:basedir] %>'
alias vs='cd <%= node[:voice_specs][:basedir] %>'
alias vn='cd <%= node[:voice_numbers][:basedir] %>'

function gc() {
  git commit -v -a -m "$*"
}

function gg() {
  git grep -Iin "$*"
}

function Gg() {
  git grep -In "$*"
}

alias  ga='git add --all'
alias gfa='git fetch --all'
alias grh='git reset --hard'
alias  gs='git show'
alias gst='git stash'
alias  gb='git branch'
alias gba='git branch -a'
alias gco='git checkout'
alias gcp='git cherry-pick'
alias  gd='git diff --no-prefix'
alias gdh='git diff --no-prefix HEAD'
alias gdt='git difftool'
alias  gt='git tag'
alias  gp='git push'
alias   g='git status --short'
alias gmt='git mergetool'
alias  gr='git repack -a -d -f --depth=250 --window=250'

alias  gsi='git submodule init'
alias  gsu='git submodule update'

alias gll='git pull'
alias  gm='git smart-merge'
alias  gl='git smart-log'

alias ret='export RAILS_ENV=test'
alias red='export RAILS_ENV=development'
alias rep='export RAILS_ENV=production'

alias  b='bundle'
alias bl='bundle list'
alias bs='bundle show'
alias be='bundle exec'
alias bc='bundle clean'
alias bu='bundle update'
alias bo='bundle outdated'

alias  go='gem outdated'
alias gcu='gem cleanup'

alias  tl='tail -f log/*.log'
alias rac='sh -c "/bin/rm -rf public/assets/*"'
alias psg='ps aux | grep -v grep | grep -v tail | grep -i'
alias afu="sudo aptitude update && sudo aptitude -y full-upgrade && sudo aptitude clean"

function remove-rbx-bundles() {
  find /opt -type d |
    grep vendor/bundle/rbx |
    sed 's/^\(.*\)vendor.bundle.*$/\1/' |
    sort -u |
    while read dir; do cd $dir; rm -rf vendor/bundle/rbx; done
}

alias   r='rake'
alias  rt='rake -T'
alias  rr='rails runner'
alias  rc='rails console'
alias  rg='rails generate'

alias  svd='sudo sv down'
alias  svr='sudo sv restart'
alias  svs='sudo sv status'
alias  svu='sudo sv up'
alias svda='sudo sv down /etc/service/*'
alias svra='sudo sv restart /etc/service/*'
alias svsa='sudo sv status /etc/service/*'
alias svua='sudo sv up /etc/service/*'

alias rcm='redis-cli monitor'

<% if node[:roles].include?('desktop') %>
#
# desktop specific aliases

alias  gff='git flow feature'
alias gffs='git flow feature start'
alias gffp='git flow feature publish'
alias gfff='git flow feature finish'
alias  gfr='git flow release'
alias gfrs='git flow release start'
{'fraction_non_alphanumeric': 0.18840383835653465, 'fraction_numerical': 0.006217056358967428, 'mean_word_length': 4.25195173882186, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 39, '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': '411335', 'n_tokens_mistral': 2999, 'n_tokens_neox': 2808, 'n_words': 823}