# Install brew install mysql
This file contains 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
# -*- mode: shell-script -*- | |
# | |
# Made by Nabuco (http://www.nomadblue.com/). | |
# This script destroys and re-creates the postgresql project database | |
# with a new backup generated and downloaded from Heroku project app. | |
# | |
# WARNING: You need to be collaborator of the Heroku app. Also please | |
# note that this script downloads a backup file which is not removed | |
# afterwards, so be careful not to commit it into your repo by mistake. |
Made by Nabuco (http://nomadblue.com/).
Note: Substitute [params] with the proper values.
Start server installed from Homebrew:
Made by Nabuco (http://nomadblue.com/).
Note: Substitute [params] with the proper values.
Start server installed from Homebrew:
This file contains 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
#!/bin/bash | |
# Source: http://blog.nonuby.com/blog/2012/07/05/copying-env-vars-from-one-heroku-app-to-another/ | |
set -e | |
sourceApp="$1" | |
targetApp="$2" | |
while read key value; do |
This file contains 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 json | |
with open ("/Users/nabuco/Library/Application Support/Google/Chrome/Default/Bookmarks") as f: | |
caca = json.load(f) | |
bookmarks = caca['roots']['other']['children'][0]['children'][1]['children'] | |
for obj in dookmarks: | |
print obj['url'] |
Create new organization, team and project in https://getsentry.com/
Install raven, do not forget to add to requirements.txt:
pip install raven
Add raven to the list of installed apps:
INSTALLED_APPS = INSTALLED_APPS + (
# ...
This file contains 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 re | |
from django import forms | |
from django.core.exceptions import ValidationError | |
class CLABEField(forms.Field): | |
""" | |
Django form field for the mexican CLABE (Clave Bancaria Estandarizada, | |
Spanish for "standardized banking cipher"), a banking standard for the |
OlderNewer