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
<VirtualHost> | |
# .... | |
<IfModule mod_expires.c> | |
<FilesMatch "\.(css|ico|pdf|flv|jpg|jpeg|png|gif|js|swf)$"> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 year" | |
</FilesMatch> | |
</IfModule> |
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
{ | |
"validate_imports": true, | |
"pep8_max_line_length": 120, | |
"anaconda_linter_mark_style": "none", | |
"anaconda_gutter_theme": "retina", | |
} |
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/sh | |
# this step is made only once by a single developer | |
# changes made by this script must be committed and pushed | |
if [[ `git status --porcelain` ]]; then | |
# working copy is not clean | |
echo "please commit or stash your changes" | |
exit | |
fi |
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 multiprocessing | |
from django.core.management import BaseCommand | |
def multiprocess_func(view_func): | |
""" Decoratior which closes database connection before running wrapped function. | |
Also unpacks args for multiprocessing module. """ | |
def _decorator(args): | |
connection.close() |
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/sh | |
# | |
# Usage: bash pypi_to_anaconda.sh <pypi_package> <user_or_organisation> | |
# Eg: bash pypi_to_anaconda.sh cchardet simion | |
# | |
NAME=$1 | |
ORG=$2 | |
rm -rf ./$NAME | |
conda skeleton pypi $NAME |
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 | |
set -eu | |
# place the content of this file in .git/hooks/post-merge and make it executable | |
# change the following variable acording to your needs. | |
# You can set either a file path, or a folder path (in this case, all files in that folder are being watched) | |
watch_path=pydpf/settings | |
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
[global_config] | |
title_transmit_bg_color = "#4c4c4c" | |
title_inactive_fg_color = "#afafaf" | |
title_inactive_bg_color = "#2d2d2d" | |
[profiles] | |
[[default]] | |
palette = "#000000:#f92672:#6cc72c:#fe9720:#5f91ef:#9358fe:#36af90:#8c8c8c:#4c4c4c:#ff80f4:#a7e22e:#ffee99:#5fd9ef:#ae82fe:#66efd5:#c7cece" | |
use_system_font = False | |
foreground_color = "#ffffff" | |
font = DejaVu Sans Mono 10 |