- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
| # one or the other, NOT both | |
| [url "https://github"] | |
| insteadOf = git://github | |
| # or | |
| [url "[email protected]:"] | |
| insteadOf = git://github |
| # -*- coding: utf-8 -*- | |
| """ | |
| ################################################################################ | |
| Dump ElasticSearch index for inserting BULK | |
| ################################################################################ | |
| requires `rawes`. | |
| for more details, run `-h` to show help message. |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
| #!/bin/bash | |
| NAME="hello_app" # Name of the application | |
| DJANGODIR=/webapps/hello_django/hello # Django project directory | |
| SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket | |
| USER=hello # the user to run as | |
| GROUP=webapps # the group to run as | |
| NUM_WORKERS=3 # how many worker processes should Gunicorn spawn | |
| DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use | |
| DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name |
| <?php | |
| date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php | |
| /** | |
| * The root directory where the repos live. | |
| * | |
| * @var string | |
| */ | |
| $root_dir = '/your/root/dir/'; |
| #/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # _______ _______ _ _________ _ _______ | |
| # |\ /|( ___ )( ____ )( ( /|\__ __/( ( /|( ____ \ | |
| # | ) ( || ( ) || ( )|| \ ( | ) ( | \ ( || ( \/ | |
| # | | _ | || (___) || (____)|| \ | | | | | \ | || | | |
| # | |( )| || ___ || __)| (\ \) | | | | (\ \) || | ____ | |
| # | || || || ( ) || (\ ( | | \ | | | | | \ || | \_ ) | |
| # | () () || ) ( || ) \ \__| ) \ |___) (___| ) \ || (___) | |
| {% load crispy_forms_field %} | |
| {% if field.is_hidden %} | |
| {{ field }} | |
| {% else %} | |
| {% crispy_field field %} | |
| {% endif %} |
| [...] | |
| # Fake DNS entries for testing the subdomain middleware | |
| 127.0.0.1 test1.django.local | |
| 127.0.0.1 test2.django.local | |
| 127.0.0.1 djangotest.christopher-williams.net | |
| 127.0.0.1 django.local |
| """ | |
| This fabric script automates the creation of a virtual environment and a Django | |
| project. The result will be virtual environtment with the name of the project. | |
| The folder namer where the project code will be placed is specified in | |
| SOURCE_DIRECTORY_NAME, a static root folder will be created and settings.py | |
| will be updated. | |
| """ | |
| try: | |
| from fabric.api import env, run, local | |
| from fabric.context_managers import lcd, prefix |
| import redis | |
| r = redis.StrictRedis(host='localhost', port=6379, db=0) | |
| # Create the completion sorted set | |
| if r.exists('compl') == False: | |
| print "Loading entries in the Redis DB\n" | |
| f = open('female-names.txt',"r") | |
| for line in f: | |
| n = line.strip() |