Skip to content

Instantly share code, notes, and snippets.

View ErikEvenson's full-sized avatar
🎯
Focusing

Erik Evenson ErikEvenson

🎯
Focusing
View GitHub Profile
$ yo webapp --coffee
_-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
| ~ |
__'.___.'__
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
@ErikEvenson
ErikEvenson / gist:b347ad6fd42a4e44bc53
Created August 29, 2014 05:01
dpkg --list|grep aug
$ 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
@ErikEvenson
ErikEvenson / memcached.conf
Created August 28, 2014 23:50
stock ubuntu 12.04 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
@ErikEvenson
ErikEvenson / KSP Mods Installed.md
Created August 18, 2014 04:59
KSP Mods Installed
@ErikEvenson
ErikEvenson / frontend_technology_stack.md
Created August 7, 2014 06:51
Frontend technology stack
  • 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
"""
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
(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
@ErikEvenson
ErikEvenson / contracts.py
Created February 7, 2014 21:47
Tastypie queryset on child resource not working
"""
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