[フレーム]
Joined February 2013
·

Hatem Nassrat

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

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

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.

Achievements
1,089 Karma
176,392 Total ProTip Views
Narwhal
Have at least one original repo where Clojure is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Velociraptor
Have at least one original repo where Perl is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Epidexipteryx
Have at least one original repo where C++ is the dominant language
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python 3
Have at least three original repos where Python is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Honey Badger
Have at least one original Node.js-specific repo

AltStyle によって変換されたページ (->オリジナル) /