Skip to content

Instantly share code, notes, and snippets.

@deepakprakash
deepakprakash / reserved_usernames.rb
Created June 9, 2012 22:51 — forked from caseyohara/reserved_usernames.rb
A list of reserved usernames to avoid vanity URL collision with resource paths
# A list of possible usernames to reserve to avoid
# vanity URL collision with resource paths
# It is a merged list of the recommendations from this Quora discussion:
# http://www.quora.com/How-do-sites-prevent-vanity-URLs-from-colliding-with-future-features
# Country TLDs found here:
# http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
# Languages found here:
@deepakprakash
deepakprakash / clear_cookies_bookmarklet.js
Created November 14, 2012 09:09
Bookmarklet to clear all cookies for the current domain
javascript:new function(){var c=document.cookie.split(";");for(var i=0;i<c.length;i++){var e=c[i].indexOf("=");var n=e>-1?c[i].substr(0,e):c[i];document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT";}}()
@deepakprakash
deepakprakash / chrome_extensions.md
Created October 17, 2014 11:33
Chrome Extensions

Actively Used

  • Adguard AdBlocker
  • Boomerang for Gmail
  • Buffer
  • Cookies
  • Evernote Web Clipper
  • Mitro Login Manager
  • Point
  • Postman
  • Ultimate User Agent Switcher
@deepakprakash
deepakprakash / middleware.py
Created December 11, 2015 11:49 — forked from gijzelaerr/Django MultiDB selection from URL
Django MultiDB selection from URL
"""
Select database based on URL variable
Inspired by this Django snipped:
https://djangosnippets.org/snippets/2037/
It's assumed that any view in the system with a cfg keyword argument passed to
it from the urlconf may be routed to a separate database. for example: