Skip to content

Instantly share code, notes, and snippets.

View m7salam's full-sized avatar

Mohamed Hussein m7salam

View GitHub Profile
@m7salam
m7salam / Makefile
Created July 26, 2021 07:13 — forked from aprxi/Makefile
Makefile_docker_20190214
# --------------------------------------------------------------------
# Copyright (c) 2019 LINKIT, The Netherlands. All Rights Reserved.
# Author(s): Anthony Potappel
#
# This software may be modified and distributed under the terms of the
# MIT license. See the LICENSE file for details.
# --------------------------------------------------------------------
# If you see pwd_unknown showing up, this is why. Re-calibrate your system.
PWD ?= pwd_unknown
@m7salam
m7salam / login_mixins
Created October 30, 2019 04:24 — forked from erickgnavar/login_mixins
Django login required mixins
import json
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.utils.decorators import method_decorator
class LoginRequiredMixin(object):
@method_decorator(login_required)
def dispatch(self, request, *args, **kwargs):
# go A go
# go A go
# go B go
# go A go
# go C go
# go A go
# go B go
# go D go
# go A go