Skip to content

Instantly share code, notes, and snippets.

View mgara's full-sized avatar
🎯
Focusing

Meher mgara

🎯
Focusing
  • Meher Gara Consulting
  • Montreal
  • 23:30 (UTC -04:00)
View GitHub Profile
@mgara
mgara / decorators.py
Created June 9, 2016 15:04 — forked from codeinthehole/decorators.py
Basic auth for Django snippet
import base64
from django.http import HttpResponse
from django.contrib.auth import authenticate
from django.conf import settings
def view_or_basicauth(view, request, *args, **kwargs):
# Check for valid basic auth header
if 'HTTP_AUTHORIZATION' in request.META:
@clyfish
clyfish / solarized-dark.xcs
Created December 21, 2011 07:06
xshell solarized dark color theme
[Solarized Dark]
text(bold)=839496
magenta(bold)=6c71c4
text=839496
white(bold)=fdf6e3
green=859900
red(bold)=cb4b16
green(bold)=586e75
black(bold)=073642
red=dc322f