Joined February 2013

Hatem Nassrat

Chief Technology Officer at LeadSift Inc.
Chief Technology Officer
LeadSift Inc.
Halifax, NS

You could also
class { 'apt': always_apt_update => true, }

from django.contrib.messages import constants as messages

Thanks for telling me about this, in return I signed up after clicking on your referral link :)

You will have to clear them once thought (once and for all :P)

Posted to vim :w!! over 1 year ago

I prefer cmap w!! w !sudo tee %

Posted to Installing ReviewBoard on Debian over 1 year ago

@kimiamania Thanks for spotting that :)

With ZSH (and maybe with Bash) you can have $? printed right in your PS prompt. That way you can't accidentally lose the data if you forget to echo.

Small typo ... you said DJANGOSETTINGSMODEL in the first mention of the env var. Another way that you did not mention is to pass in --settings=myproject.settings.production etc at the end of management commands that you would want to run in a different env. e.g. ./manage,py syncdb --settings=myproject.settings.production

Posted to jQuery ain't jQuery no more... over 1 year ago

IE appearances on the inter-webs is dwindling ... soon enough there will be no IE, except to browse folders inside windows :)

You are probably better off with the following function

pretty() { pygmentize -f terminal $* | less -R }

Gives you more freedom to pass options like

pretty -l sh .zshrc   
Posted to Pretty Print a CSV file over 1 year ago

Some users live in emacs ... I prefer to live in a shell :)

@barnettjw Works too, I used to use lsof, but found fuser to be much faster.

1,089 Karma
113,703 Total ProTip Views