Skip to content

Instantly share code, notes, and snippets.

@rubencabrera
rubencabrera / .gitconfig
Created May 4, 2017 10:24
Git config for network on cli
[core]
editor = vim
[alias]
lg = !"git lg1"
lg1 = !"git lg1-specific --all"
lg2 = !"git lg2-specific --all"
lg3 = !"git lg3-specific --all"
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
@rubencabrera
rubencabrera / mezzanine.patch
Created March 26, 2017 11:35 — forked from melvyn-sopacua/mezzanine.patch
Fix Mezzanine 4.2.2 on Django 1.10+ with modeltranslation
--- ./pages/models.py.orig 2016-09-08 03:02:33.000000000 +0200
+++ ./pages/models.py 2017-01-26 23:26:16.672548649 +0100
@@ -18,6 +18,7 @@
from mezzanine.pages.fields import MenusField
from mezzanine.pages.managers import PageManager
from mezzanine.utils.urls import path_to_slug
+from mezzanine.core.models import wrapped_manager
class BasePage(Orderable, Displayable):