Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Erik Evenson ErikEvenson

Block or report user

Report or block ErikEvenson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ErikEvenson
ErikEvenson / contracts.py
Created Feb 7, 2014
Tastypie queryset on child resource not working
View contracts.py
"""
API resources
"""
# Django imports
from django import forms
from django.db.models import Count
from django.utils.datastructures import SortedDict
from django.contrib.contenttypes.models import ContentType
# 3rd party imports
View gist:ac3832e4063eb10248d7
(VBEZ)vagrant@web:/vagrant$ aws s3 sync "static/" "s3://vbenergyzone_staging/" --acl public-read --exclude "media/*" --delete --debug
2014-06-24 02:08:34,235 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.3.18 Python/2.7.7 Linux/3.2.0-23-generic, botocore version: 0.52.0
2014-06-24 02:08:34,246 - MainThread - botocore.service - DEBUG - Creating service object for: s3
2014-06-24 02:08:34,463 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.s3: calling handler <function signature_overrides at 0x7f10d6022050>
2014-06-24 02:08:34,466 - MainThread - botocore.hooks - DEBUG - Event service-created: calling handler <function register_retries_for_service at 0x7f10d601c6e0>
2014-06-24 02:08:34,467 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: Service(s3)
2014-06-24 02:08:34,495 - MainThread - botocore.hooks - DEBUG - Event creating-endpoint.s3: calling handler <function maybe_switch_to_s3sigv4 at 0x7f10d6021ed8>
2014-06-24 02:08:34,497 - MainThread
View gist:80f3433705c8320cec1b
"""
API resources
"""
# Python imports
import logging
# Django imports
from django import forms
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
View frontend_technology_stack.md
  • backbone 1.1.2 - "Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface."
  • backbone.paginator 2.0.2 - "A pageable, drop-in replacement for Backbone.Collection called Backbone.PageableCollection."
  • backbone.picky 0.2.0 - "Selectable entities as mixins for Backbone.Model and Backbone.Collection!"
  • backbone.syphon 0.4.1 - "Serialize a Backbone.View in to a JavaScript object."
  • backgrid 0.3.5 - "Backgrid.js is a set of components for building semantic and easily stylable data grid widgets."
  • backgrid-filter 0.3.5 - "Server-side, client-s
View KSP Mods Installed.md
@ErikEvenson
ErikEvenson / memcached.conf
Created Aug 28, 2014
stock ubuntu 12.04 memcached.conf
View memcached.conf
# memcached default config file
# 2003 - Jay Bonci <jaybonci@debian.org>
# This configuration file is read by the start-memcached script provided as
# part of the Debian GNU/Linux distribution.
# Run memcached as a daemon. This command is implied, and is not needed for the
# daemon to run. See the README.Debian that comes with this package for more
# information.
-d
View gist:7628e2630c90299847da
Debug: Augeas[listen_on_ip](provider=augeas): Opening augeas with root /, lens path , flags 32
Debug: Augeas[listen_on_ip](provider=augeas): Augeas version 0.10.0 is installed
Debug: Augeas[listen_on_ip](provider=augeas): Unable to optimize files loaded by context path, no glob matches
Debug: Augeas[listen_on_ip](provider=augeas): Loading failed for one or more files, output from /augeas//error:
Debug: Augeas[listen_on_ip](provider=augeas): /augeas/files/etc/mke2fs.conf/error = parse_failed
Debug: Augeas[listen_on_ip](provider=augeas): /augeas/files/etc/mke2fs.conf/error/pos = 82
Debug: Augeas[listen_on_ip](provider=augeas): /augeas/files/etc/mke2fs.conf/error/line = 3
Debug: Augeas[listen_on_ip](provider=augeas): /augeas/files/etc/mke2fs.conf/error/char = 0
Debug: Augeas[listen_on_ip](provider=augeas): /augeas/files/etc/mke2fs.conf/error/lens = /usr/share/augeas/lenses/dist/mke2fs.aug:132.10-.49:
Debug: Augeas[listen_on_ip](provider=augeas): /augeas/files/etc/mke2fs.conf/error/message = Get did not match ent
View gist:b347ad6fd42a4e44bc53
$ dpkg --list|grep aug
ii augeas-lenses 0.10.0-0ubuntu4 Set of lenses needed by libaugeas0 to parse config files
ii libaugeas-ruby 0.3.0-1.1ubuntu4 Augeas bindings for the Ruby language
ii libaugeas-ruby1.8 0.3.0-1.1ubuntu4 Augeas bindings for the Ruby language
ii libaugeas0 0.10.0-0ubuntu4 Augeas configuration editing library and API
View gist:64363bf9b83652619cb2
$ yo webapp --coffee
_-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
| ~ |
__'.___.'__
@ErikEvenson
ErikEvenson / Gruntfile.js
Created Sep 4, 2014
Gruntfile.js with generator-webapp and assemble
View Gruntfile.js
// Generated on 2014-09-03 using
// generator-webapp 0.5.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
You can’t perform that action at this time.