This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [committemplate] | |
| changeset = {desc}\n\n | |
| HG: {extramsg} | |
| HG: user: {author}\n{ifeq(p2rev, "-1", "", | |
| "HG: branch merge\n") | |
| }HG: branch '{branch}'\n{if(currentbookmark, | |
| "HG: bookmark '{currentbookmark}'\n") }{subrepos % | |
| "HG: subrepo {subrepo}\n" } | |
| {splitlines(diff()) % 'HG: {line}\n'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo rm /var/lib/mongodb/mongod.lock | |
| sudo mongod --repair --dbpath=/var/lib/mongodb | |
| sudo chown -R mongodb:mongodb /var/lib/mongodb | |
| sudo service mongod restart | |
| sudo service mongod status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source ~/.zshrc | |
| export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
| ORIGINAL_PATH=$PATH | |
| function dev_env_setup() { | |
| # see http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html | |
| emulate -L zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try: | |
| from django.apps import apps | |
| get_model = apps.get_model | |
| except ImportError: | |
| from django.db.models.loading import get_model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import itertools | |
| item_list = [ | |
| {'counter1': 1, 'label': '20150408154801', 'counter2': 0, 'counter3': 0}, | |
| {'counter1': 1, 'label': '20150408154801', 'counter2': 0, 'counter3': 0}, | |
| {'counter1': 1, 'label': '20150408154801', 'counter2': 0, 'counter3': 0}, | |
| {'counter1': 1, 'label': '20150408154819', 'counter2': 0, 'counter3': 0}, | |
| {'counter1': 1, 'label': '20150408154819', 'counter2': 0, 'counter3': 0}, | |
| {'counter1': 1, 'label': '20150408154819', 'counter2': 0, 'counter3': 0}, | |
| {'counter1': 1, 'label': '20150408154819', 'counter2': 0, 'counter3': 0}, |
NewerOlder