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
# -*- coding: utf-8 -*- | |
from fabric.state import env | |
from fabric.api import cd, local, run, abort, task | |
from fabric.context_managers import prefix | |
def worktree(cmd): | |
with prefix('source /usr/bin/virtualenvwrapper.sh'): | |
with cd(env.repo_path): | |
with prefix('cd `git config --get core.worktree`'): |
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
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import subprocess | |
from copy import copy | |
from difflib import unified_diff | |
from sqlalchemy import create_engine |
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
create extension if not exists "unaccent"; | |
create or replace function slugify(name text) | |
returns text as $$ | |
begin | |
return trim( | |
regexp_replace( | |
unaccent(lower(name)), | |
'[^0-9a-z]+', |
OlderNewer