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
| alias ll='ls -lah --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| alias upgrade='sudo apt-get update && sudo apt-get dist-upgrade -V && sudo pip install --upgrade pip virtualenv virtualenvwrapper fabric && sudo npm update -g' | |
| alias h='history | grep $1' | |
| alias psg='ps -ef | grep $1' | |
| alias ..='cd ..' | |
| function my_ip() # get IP adresses | |
| { |
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
| DEBUG=True | |
| SOUTH_TESTS_MIGRATE = True | |
| DATABASES = { | |
| 'default': { | |
| 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. | |
| 'NAME': 'geo', # Or path to database file if using sqlite3. | |
| 'USER': 'postgres', # Not used with sqlite3. | |
| 'PASSWORD': 'postgres', # Not used with sqlite3. | |
| 'HOST': '127.0.0.1', # Set to empty string for localhost. Not used with sqlite3. |
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 time, random | |
| PROCESS = True | |
| JOB_POOL_SIZE = 10 | |
| DATABASE_POOL_SIZE = 5 | |
| def apply_job(arg): | |
| r = random.random() *10 | |
| time.sleep(r) | |
| return (arg, r) |
NewerOlder