A collection of helpful command line utilities
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
hs-src
oldruby
spec
sum-lines
templates
tests
.gitignore
.ruby-version
Gemfile
Gemfile.lock
LICENSE
README.md
bin-src.cabal
build.sh
cljs-repl.sh
config.py.sample
deploy.sh
git-grep-blame.rb
git_utils.rb
requirements.txt
scpi.sh
serve_pwd.py
setup.py
setup.sh
setup_cabal.sh
setup_haskell_sandboxes.rb
ssh-rm-host.sh
vimman.sh
vimr.sh

README.md

About

A collection of source code for helpful command line utilities.

Feel free to copy, modify or distribute any content in this repository for any use you see fit.

System Requirements

  • Bash
  • rvm and ruby-2.1.1
  • Haskell Platform

Install rvm

Follow the instructions at https://rvm.io/ to install rvm, then navigate to this repository and you should see somethig like:

Unknown ruby string (do not know how to handle): ruby-2.1.1. ruby-2.1.1 is not installed. To install do: 'rvm install ruby-2.1.1'

Follow the instructions and install ruby-2.1.1:

rvm install ruby-2.1.1

Install Haskell Platform 2014.2.0.0 for Mac OS X 10.9

Comes with GHC 7.8.3 .

Download https://www.haskell.org/platform/download/2014.2.0.0/Haskell%20Platform%202014.2.0.0%2064bit.signed.pkg

SHA-256 sum: 62f39246ad95dd2aed6ece5138f6297f945d2b450f215d074820294310e0c48a

Double click the package and follow the instructions.

Setup

NOTE: This should be done before you build / deploy anything. Please ensure that you fulfil the system requirements before this step. Otherwise, please install them manually.

Run the setup_cabal.sh script. It will try to install the version of Cabal in the CABAL_VERSION_WANT variable in setup_cabal.sh. This is required for Cabal sandbox.

Run the setup.sh script. It will setup a Cabal Sandbox for the Haskell programs in this repository and install the necessary Haskell dependencies.

Setup config.py

cp config.py.sample config.py

And edit the value of the BIN_DIR global.

Setup virtualenv:

virtualenv venv

Install requirements

. venv/bin/activate
pip install -r requirements.txt

Setup sbt

. venv/bin/activate
./setup.py

Deployment

The deploy script is ./deploy.sh. You will have to specify a target to deploy. Targets are inside the deploy.sh file.

To deploy everything, simply run

./deploy.sh all

The default deployment directory is '$HOME/bin'. Feel free to modify the deploy.sh script to change it.

Building

The build script is build.sh. You must specify a build target. Build targets are available inside the build.sh file.