Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Temp/ | |
Library/ | |
obj/ | |
*.svd | |
!Library/*.asset | |
!Library/AssetImportState | |
!Library/AssetVersioning.db | |
!Library/BuildPlayer.prefs | |
!Library/ScriptMapper |
First, you have to enable profiling
> db.setProfilingLevel(1)
Now let it run for a while. It collects the slow queries ( > 100ms) into a capped collections, so queries go in and if it's full, old queries go out, so don't be surprised that it's a moving target...
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ( | |
'yourapp.middleware.ProfileMiddleware', | |
'yourapp.middleware.CProfileMiddleware' | |
) |
from django.contrib.auth import get_user_model | |
User = get_user_model() | |
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm["%s.%s" % (User._meta.app_label, User._meta.object_name)])), | |
"%s.%s" % (User._meta.app_label, User._meta.module_name): { | |
'Meta': {'object_name': User.__name__}, | |
}, |
Carta impressa: escrita por Maddog
Querida Presidenta Rousseff,
Eu entendo que a senhora esteja irritada com meu país, os Estados Unidos da América, porque uma de
#!/bin/bash | |
# | |
# Open the specified file on GitHub. It will use the master branch by default: | |
# | |
# repo -f app/controllers/application_controller.rb | |
# | |
# Specify a different branch: | |
# | |
# repo -b another-branch -f app/controllers/application_controller.rb |
/* | |
* Copyright (c) 2014, Jay Oster | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright notice, |