Skip to content

Instantly share code, notes, and snippets.

@dnordberg
dnordberg / trypy
Created February 21, 2014 20:30 — forked from naftaliharris/trypy
#!/bin/bash
# An enhancement to the "python" executable that automatically launches you into the python debugger on error.
#
# Use it like you would the "python" executable, for example:
# $ trypy somefile.py
# or
# $ trypy somefile.py arg1 arg2
#
# EXAMPLE:
@dnordberg
dnordberg / meteor-account-verify.js
Created August 2, 2016 21:13 — forked from olizilla/meteor-account-verify.js
Only allow users on a given email domain to log in to your meteor app.
/*
Only allow users with a verified email address on a pre-verified domain to log in.
We're getting people to authenticate and only authorising those that have an email we recognise.
Assumes a Meteor.settings like:
{ adminDomains: ['tableflip.io', 'meteor.com'] }
...and meteor-developer accounts, but other login mechanisms (email, twitter) would work too.
*/
@dnordberg
dnordberg / yandex_email_for_domain_settings.py
Created April 13, 2020 11:36 — forked from nskeip/yandex_email_for_domain_settings.py
Django SMTP settings for yandex_for_domain mail (pdd.yandex.ru)
EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 465
EMAIL_USE_TLS = True