TroyGrosfield.com TroyGrosfield.com

Archive for February, 2012

Headline

Unix Command Line Cheat Sheet

Author
by Troy Grosfield
Date
February 24th, 2012
Category
Developer
Story

Here are some unix commands I find useful. Display All Running Processes $ ps aux Limit to only look at celeryd processes: $ ps aux | grep celeryd List Contents of a Directory including Hidden Files/Folders: $ ls -l -a Searching Find all files with some text in the file: find . -exec grep -l … read more

Tags
Comments
1 Comment »
Headline

Ubuntu Bus Error

Author
by Troy Grosfield
Date
February 23rd, 2012
Category
Developer
Story

The Problem Ran into an issue where we couldn’t restart celeryd on our production servers.  When we’d try to restart celery using our init.d script we would see the following: $ /etc/init.d/celeryd restart Bus error We then tried to go to our Django project and go into the shell and came across the same error: … read more

Tags
Comments
No Comments »
Headline

MongoDB Cheat Sheet

Author
by Troy Grosfield
Date
February 22nd, 2012
Category
Developer
Story

A few commands that help with querying and troubleshooting mongodb. This document assumes we have a database called “test” and we have a collection called “comments”. Commands Number of documents in a collection: $ db.comments.count() 42232 Show the size of the Index: $ db.comments.totalIndexSize(); 73696 Show details of a specific query: $ db.comments.find({ tags : … read more

Tags
Comments
1 Comment »