Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| LOGGING = { | |
| 'version': 1, | |
| 'disable_existing_loggers': False, | |
| 'handlers': { | |
| 'mail_admins': { | |
| 'level': 'ERROR', | |
| 'class': 'django.utils.log.AdminEmailHandler' | |
| }, | |
| 'null': { | |
| 'level':'DEBUG', |
| ## within current branch, squashes all commits that are ahead of master down into one | |
| ## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case) | |
| ## commit any working changes on branch "mybranchname", then... | |
| git checkout master | |
| git checkout -b mybranchname_temp | |
| git merge --squash mybranchname | |
| git commit -am "Message describing all squashed commits" | |
| git branch -m mybranchname mybranchname_unsquashed | |
| git branch -m mybranchname |
| How to Fix it: | |
| 1. Remove wkhtmltopdf and related package | |
| $ sudo apt-get remove libqt4-dev qt4-dev-tools wkhtmltopdf | |
| $ sudo apt-get autoremove | |
| 2. Install requirement package for compiling | |
| $ sudo apt-get install openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig -y |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| from django.db import models | |
| class Member(models.Model): | |
| # RE: null vs blank | |
| # | |
| # NULL https://docs.djangoproject.com/en/1.10/ref/models/fields/#null | |
| # Avoid using null on string-based fields such as CharField and TextField because | |
| # empty string values will always be stored as empty strings, not as NULL. | |
| # |
Simplest intro to git by github and codeschool - Try Git
[Intro to github]
Here are some resources for learning javascript and node
Psql is a fully-fledged CLI client for Postgres, but most people are unaware of its many advanced features.
~/.psqlrc can be edited to persist any behavior or configuration settings you want between psql sessions. It behaves just like ~/.bashrc or ~/.vimrc, sourced at psql launch. See More out of psql for some interesting configurations.
If you have a long query to write and rewrite, you can use \e to edit your query in an editor.
Use \watch at the end of a query in order to automatically re-run the query every few seconds - great for monitoring while making changes elsewhere in your application architecture.
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |