Skip to content

Instantly share code, notes, and snippets.

View usman-maqbool's full-sized avatar
:octocat:
Always Pythonic

Usman usman-maqbool

:octocat:
Always Pythonic
View GitHub Profile
"""
Django ORM Optimization Tips
Caveats:
* Only use optimizations that obfuscate the code if you need to.
* Not all of these tips are hard and fast rules.
* Use your judgement to determine what improvements are appropriate for your code.
"""
# ---------------------------------------------------------------------------

GitHub OAuth Busy Developer's Guide

This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.

OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.

Web Application Flow

  • Redirect to this link to request GitHub access:
@usman-maqbool
usman-maqbool / django_deploy.md
Created December 21, 2020 07:14 — forked from bradtraversy/django_deploy.md
Django Deployment - Digital Ocean

Django Deployment to Ubuntu 18.04

In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc

Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server

Create A Digital Ocean Droplet

Use this link and get $10 free. Just select the $5 plan unless this a production app.

@usman-maqbool
usman-maqbool / vscode_shortcuts.md
Created November 2, 2019 05:35 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

Official List of all commands

Open/View

@usman-maqbool
usman-maqbool / sample.md
Created October 27, 2019 16:51 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@usman-maqbool
usman-maqbool / webdev_online_resources.md
Created May 1, 2019 12:12 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)