Skip to content

Instantly share code, notes, and snippets.

View marcosdalte's full-sized avatar

Marcos Dalte marcosdalte

View GitHub Profile
@marcosdalte
marcosdalte / flask_memcache.py
Created September 5, 2018 01:10 — forked from methane/flask_memcache.py
Sample using python-memcached in threaded Flask application.
"""Flask extension utility."""
from flask.sessions import SessionInterface, SessionMixin
from werkzeug.contrib.cache import MemcachedCache
import memcache # Use https://code.launchpad.net/~songofacandy/python-memcached/mixin-threading
def setup_cache(app):
"""
Setup ``app.cache``.
@marcosdalte
marcosdalte / gitflow.md
Last active July 1, 2021 21:05 — forked from sheremetat/gitflow.md
Git rebase workflow

Step 1: Checkout a new working branch from updated master

 git checkout -b <branchname>

Step 2: Make Changes

 git add
 git commit -m "description of changes"

Step 3: Sync with remote