Monthly Archives: June 2013

Setting up dev environment in Ubuntu

sudo apt-get install -y git-core

 

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

 

heroku login
ssh-keygen -t rsa
heroku keys:add

Create your dev environment: git init, git clone
cd into directory

heroku create
git push heroku master

http://damp-escarpment-1583.herokuapp.com/

Configure node and npm:

sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs

Find groups in a list that a user is a member of

Excel can be useful for creating quick and dirty “loops” where you’ve already got a data set list. For example, to find groups from a list that a given user is a member of stick the groups in column A and this formula in column B and drag down:

=CONCATENATE("@dsquery group -name ", A1, " | dsget group -members |
  findstr /i /p /c:<username>")

Does the job.