A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| /* | |
| Grep.js | |
| Author : Nic da Costa ( @nic_daCosta ) | |
| Created : 2012/11/14 | |
| Version : 0.2 | |
| (c) Nic da Costa | |
| License : MIT, GPL licenses | |
| Overview: | |
| Basic function that searches / filters any object or function and returns matched properties. |
| import datetime | |
| import re | |
| class TimeDeltaType(object): | |
| """ | |
| Interprets a string as a timedelta for argument parsing. | |
| With no default unit: | |
| >>> tdtype = TimeDeltaType() |
| import hashlib | |
| from redis import Redis | |
| # | |
| # automatically cache file access to a redis instance | |
| # check if file changed via md5 | |
| # | |
| class RedisFileManager(object): | |
| """ cache file access to a redis instance """ |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| This playbook has been removed as it is now very outdated. |
| # The author disclaims copyright to this source code. In place of a legal | |
| # notice, here is a blessing: | |
| # | |
| # May you do good and not evil. | |
| # May you find forgiveness for yourself and forgive others. | |
| # May you share freely, never taking more than you give. | |
| import hashlib, cPickle as pickle, logging | |
| from django.db.models import signals as db_signals | |
| from django.core.cache import cache |