Skip to content

Instantly share code, notes, and snippets.

View wbrisett's full-sized avatar

Wayne Brissette wbrisett

View GitHub Profile
[2013-12-18 10:34:33] requirements_osx_brew_libs_install
requirements_osx_brew_libs_install ()
{
brew unlink "$@" || true;
brew install "$@" || {
typeset ret=$?;
rvm_warn "There were package installation errors, make sure to read the log.
Try \`brew tap --repair\` and make sure \`brew doctor\` looks reasonable.
@wbrisett
wbrisett / add_navtitles.rb
Last active December 15, 2015 04:59
About this Script: With the testing of trying to move DITA structured topics to local computers, using the extract map instead of extracting individual topics is more enticing. However, when you extract a map and open it, unless you have manually added the navtitle attribute to each item in a map, then you will only see the file names. When a na…
# Version 3.1 March 2013
# Changed reading of files from binary back to text.
# Added backup folder "...just in case"
# Added fix for Vasont extract Maps
# Added .dita files to script
# Changed parsing of title to xpath via Nokogiri
# Added htmlentities dependency to fix those title with HTML characters
# 3.1 version:
# Added doctype to XSLT processing
# Added locktitle removal in cleanup (probably leftover from prior versions of the script on some internal maps)