This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from neo4django.graph_auth.models import User as GraphUser | |
class User(GraphUser): | |
objects = UserManager() | |
slug = models.StringProperty() | |
birthday = models.DateProperty() | |
gender = models.StringProperty() | |
middle_name = models.StringProperty() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From within resources.py | |
@wraps(func) | |
def wrapper(self, request, *args, **kwargs): | |
if allowed is not None: | |
self.method_check(request, allowed) | |
if login_required and not self.Meta.authentication.is_authenticated(request): # This is the only change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read p; do | |
echo -n "$p: " | |
curl https://api.hackertarget.com/reversedns/?q=$p | |
echo "" | |
done <$1 |