Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
ansi2html
battery
cat-safe
changelog
colordump
consolidate-path
crlf
each-git
eprime
gem-isolate
gif2mov
git-autofixup
git-big-file
git-branches-that-touch
git-longest-message
git-move-branch
git-overwritten
git-promote
git-recently-checkout-branches
git-related
git-resolve
git-sync
git-thanks
git-unpushed-branches
git-unreleased
git-where
git-where-pr
gitio
gopath
h264
happybd
ichat-convert
js-no-comments
json
lineprof
loc
merge
nginx-dir
pair
passive
pr
proxy
rbconfig
rbenv-lock
readme.md
rebase-authors
release-tag
ruby-open
screencap
search-and-replace
stacktrace
stdev
steal
tap-tty-formatter
tmux-ps
tmux-session
tmux-switch-session
tmux-vim-select-pane
travis-log
weasel
websize
wifi-pass

readme.md

Mislav's command-line utilities for absolute winning

The following is a non-comprehensive list.

Code helpers

Git utilities

Terminal helpers

  • ansi2html [-w] [--css]
    Convert terminal color ANSI escape sequences to HTML.
  • cat-safe <file1> [<file2>...]
    Like cat, but ensures that every file ends with a newline.
  • colordump [-b]
    Dump a table of ASCII colors to a 256-color compatible terminal. With -b, switch to outputting background color samples.
  • crlf -i src/*
    Convert Windows to Unix line breaks. Use -i to change files in-place.
  • PATH="$(consolidate-path "$PATH")"
    Remove duplicate entries from PATH.
  • lineprof
    Annotates each line of input with the number of milliseconds elapsed since the last line. Useful for figuring out slow points of output-producing programs.
  • stdev
    Calculate mean and standard deviation from a stream of numbers passed as lines of input.

System utilities

  • battery
    Show MacBook battery level formatted for tmux status bar.
  • wifi-pass
    Shows SSID and password for the currently connected network. Requires sudo.

Writing checks

  • eprime
    Highlights usage of the verb "to be" when you're trying to write E-Prime.
  • passive
    Highlights possible usage of passive language.
  • weasel
    Highlights weasel words (empty words that sound like they have meaning).

Tmux utilities

  • tmux-ps <pattern>
    Switch to tmux window which hosts the tty that is controlling the process matching .
  • tmux-session
    Save and restore the state of tmux sessions and windows.
  • tmux-switch-session [<name>]
    Switches to the tmux session that starts with the name given, or to the previously attached session when name is blank.
  • tmux-vim-select-pane
    Like tmux select-pane, but sends a <C-h/j/k/l> keystroke if Vim is running in the current pane, or only one pane exists.