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
import boto3 | |
""" | |
very slow | |
docker run -d -p 8000:8000 deangiberson/aws-dynamodb-local | |
very fast | |
docker run -d -p 8000:8000 dwmkerr/dynamodb -inMemory | |
""" |
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
section .text | |
global _start ;must be declared for linker (ld) | |
_start: ;tell linker entry point | |
mov rdi, filename | |
mov rsi, 0102o ;O_CREAT, man open | |
mov rdx, 0666o ;umode_t | |
mov rax, 2 | |
syscall |
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
1) (Backward compatible) Django 1.8 get_current_site RequestSite support | |
https://github.com/pennersr/django-allauth/commit/1a25ea96efcb969945df53be220bb65d75ef50db | |
2) simplejson compatibility | |
try: | |
from django.utils import simplejson | |
except ImportError: | |
import json as simplejson | |
3) try: | |
from django.contrib.sites.requests import RequestSite | |
except ImportError: |