Skip to content

Instantly share code, notes, and snippets.

View harshvladha's full-sized avatar
🎯
Focusing

Harsh Vardhan Ladha harshvladha

🎯
Focusing
View GitHub Profile
import requests
import datetime
import pytz
import smtplib, ssl
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import time
smtp_server = "smtp.gmail.com"
port = 587
@harshvladha
harshvladha / login_flow.py
Last active April 20, 2016 16:34
Simple "Facebook-Login" flow for django - without using any extra app (look last - settings.py file for details)
from django.http import HttpResponse
from django.views.generic import View
from django.views.generic.base import TemplateView, RedirectView
from {$APP_NAME}.models import UserProfile, OAuthProvider
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User
import requests
BASE_URL = "http://straightmart.com/"

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: