One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# best practice: linux | |
nano ~/.pgpass | |
*:5432:*:username:password | |
chmod 0600 ~/.pgpass | |
# best practice: windows | |
edit %APPDATA%\postgresql\pgpass.conf | |
*:5432:*:username:password | |
# linux |
cue_file = 'file.cue' | |
d = open(cue_file).read().splitlines() | |
general = {} | |
tracks = [] | |
current_file = None |
To remove a submodule you need to: | |
Delete the relevant line from the .gitmodules file. | |
Delete the relevant section from .git/config. | |
Run git rm --cached path_to_submodule (no trailing slash). | |
Commit and delete the now untracked submodule files. |
from UserDict import IterableUserDict | |
import collections | |
__author__ = 'github.com/hangtwenty' | |
def tupperware(mapping): | |
""" Convert mappings to 'tupperwares' recursively. |
[gui] | |
encoding = utf-8 | |
[alias] | |
#visual = gitk | |
last = log -1 HEAD | |
st = status | |
shorty = status --short --branch | |
# git unstage - убрать всё из индекса (чтобы например добавить/закоммитить сначала что-то другое) | |
unstage = reset HEAD -- | |
up = !(git add . && git stash && git pull --rebase >&2) | grep -v \"No local changes to save\" && git stash pop |
@@ -28,7 +28,7 @@ | |
### Set diff-cmd to the absolute path of your 'diff' program. | |
### This will override the compile-time default, which is to use | |
### Subversion's internal diff implementation. | |
-# diff-cmd = diff_program (diff, gdiff, etc.) | |
+diff-cmd = colordiff | |
### Set diff3-cmd to the absolute path of your 'diff3' program. | |
### This will override the compile-time default, which is to use | |
### Subversion's internal diff3 implementation. |
# -*- coding: utf-8 -*- | |
""" | |
Extremely fast Django test runner, based on the idea that your database schema | |
and fixtures are changed much more seldom that your code and tests. All you | |
need is to make sure that your "quickstart.sqlite" database file is always up | |
to date. | |
BEWARE: Don't run this test runner on production server. It assumes that you | |
use only one database configured as "default", and its db engine is SQLite. | |
Otherwise your tests can eat your data! |
#!/usr/bin/awk -f | |
# Convert the "svn log" output into a one liner format, which is easier to grep | |
# or use in scripts. Pipe "svn log" into this script | |
# When we get a line that starts with a revision number, put the data in variables | |
/^r[0-9]+/ { | |
rev=$1 | |
user=$3 | |
date=$5 |
# -*- coding: utf-8 -*- | |
import re | |
from django.shortcuts import redirect | |
PREF_VAR = 'ADMIN_PER_USER_PREF' | |
ORDER_VAR = 'o' | |
FILTER_TAIL = '__exact' | |
PATH = '/admin/storage/' |