Skip to content

Instantly share code, notes, and snippets.

View fidiego's full-sized avatar
💭
🤔

Dat Boi Diego fidiego

💭
🤔
View GitHub Profile
@fidiego
fidiego / s3-config.static_site.json
Last active October 24, 2015 15:49
S3 bucket policy for static site hosting
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::${www.bucketname.com}/*"
}

Keybase proof

I hereby claim:

  • I am fidiego on github.
  • I am cognitivereflex (https://keybase.io/cognitivereflex) on keybase.
  • I have a public key whose fingerprint is 06E4 06E3 AFCF 0B33 3786 F1BB 30BD 0F08 A5C9 6BDD

To claim this, I am signing this object:

from collections import OrderedDict
from rest_framework import serializers
class SkipField(Exception):
pass
class ExtensibleModelSerializer(serializers.ModelSerializer):
'''
@fidiego
fidiego / photos
Last active October 12, 2015 15:28
Command for opening photo directories on OSX since Photos gives you a hard time if you try to find the path to an image.
#!/usr/bin/python
import os, sys
from datetime import datetime
def main():
docstring = """
Super Simple Script that opens Mac's Photo Library source directory so you
can get to your pictures etc.
-h prints this page