Code Monkey home page Code Monkey logo

smeagol's Introduction

smeagol

smeagol is this ugly dude who led some hobbits around, this is kinda the same thing. Except, like, instead of hiking mordor you're trying to write some open source code on a mac.

FWIW it was easier to just write bash for this at first. Over time I've enjoyed maintaining this with chef more than I think I would've enjoyed straight up shell.

What it does

  • Sets you up with homebrew
  • Installs git from homebrew, sets up ~/.gitconfig
  • Installs postgresql, mysql, redis, memcached and mongodb. They're all configured to run when you login.
  • Installs rvm and sets up 1.8.7 to be the default, self manages on 1.9.2 as well
  • Installs common ruby gems: rails 3, sinatra, fog, sqlite3, imagemagick, and all that bullshit
  • Installs a pretty sane ~/.irbrc
  • Installs a node.js development environment with npm
  • Installs a modern python environment with pip
  • Installs an erlang environment
  • Installs MacVim and sets up janus

This is what I run on my system, cinderella is a subset of that.

Running

% EDITOR="vim" \
  GITHUB_USER="fightclub" \
  GITHUB_TOKEN="..." \
  EMAIL="[email protected]" \
  FULLNAME="Tyler Durden" \
  rake smeagol:install

Disabling Services

Smeagol installs a gem called lunchy which makes it trivial to enable/disable the services that are installed by default.

% ps auwwx | grep mongo
me      202   0.2  0.0  2462220   4120   ??  S    Sat03PM  14:08.53 /Users/me/Developer/Cellar/mongodb/1.8.0-x86_64/bin/mongod run --config /Users/me/Developer/Cellar/mongodb/1.8.0-x86_64/mongod.conf
% lunchy stop mongo
% ps auwwx | grep mongo
% lunchy start mongo
% ps auwwx | grep mongo
me    21060   0.2  0.0  2462220   3988   ??  R     1:12PM   0:00.34 /Users/me/Developer/Cellar/mongodb/1.8.0-x86_64/bin/mongod run --config /Users/me/Developer/Cellar/mongodb/1.8.0-x86_64/mongod.conf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.