Skip to content

Instantly share code, notes, and snippets.

View medlefsen's full-sized avatar

Matt Edlefsen medlefsen

View GitHub Profile
@medlefsen
medlefsen / group_by.patch
Created February 6, 2014 00:48
Ansible patch
diff --git a/lib/ansible/runner/action_plugins/group_by.py b/lib/ansible/runner/action_plugins/group_by.py
index f8b4f31..4d6205c 100644
--- a/lib/ansible/runner/action_plugins/group_by.py
+++ b/lib/ansible/runner/action_plugins/group_by.py
@@ -83,7 +83,8 @@ class ActionModule(object):
inv_group = ansible.inventory.Group(name=group)
inventory.add_group(inv_group)
for host in hosts:
- del self.runner.inventory._vars_per_host[host]
+ if host in self.runner.inventory._vars_per_host:
@medlefsen
medlefsen / Gemfile
Created April 26, 2012 18:34
capistran-drush config example
source "http://rubygems.org"
gem 'capistrano-drush', :git => 'git://github.com/xforty/capistrano-drush.git'
@medlefsen
medlefsen / testenv.log
Created October 20, 2011 16:03
user service exception
Processing UsersController#create to xml (for 10.214.105.124 at 2011-10-20 10:36:12) [POST]
INFO 10:36:12 testenv.mobicious.com rails[30574]: Exception: undefined method `[]' for nil:NilClass
/mnt/user-testenv/releases/20111019210855/app/controllers/users_controller.rb:12:in `create'
/mnt/user-testenv/shared/bundle/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in `send'
/mnt/user-testenv/shared/bundle/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
/mnt/user-testenv/shared/bundle/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:617:in `call_filters'
/mnt/user-testenv/shared/bundle/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/mnt/user-testenv/shared/bundle/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/mnt/user-testenv/shared/bundle/ruby/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchma
@medlefsen
medlefsen / PKGBUILD
Created May 2, 2011 01:04
mt-daapd fix-libs.patch
# Maintainer : Gary Wright <wriggary at g mail dot com> $
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
pkgname=mt-daapd
pkgver=0.2.4.2
pkgrel=6
pkgdesc="A multi-threaded DAAP server compatible with iTunes music sharing"
url="http://www.mt-daapd.org/"
license=("LGPL")
@medlefsen
medlefsen / test.rb
Created October 27, 2010 21:33
rdoc test
#!/usr/bin/env ruby
##
# Test class
class Test {
##
# :method: test
# this is documentation!
##
# methdo 2
Apr 27 08:35:05 roadrunner postfix/smtpd[711]: 4CC90285C7: client=blu0-omc2-s35.blu0.hotmail.com[65.55.111.110]
Apr 27 08:35:05 roadrunner postfix/cleanup[1627]: 4CC90285C7: message-id=<BLU139-W17338F5F8E0530E428E2D19C030@phx.gbl>
Apr 27 08:35:05 roadrunner postfix/qmgr[1497]: 4CC90285C7: from=<lc_fisher@hotmail.com>, size=3314, nrcpt=1 (queue active)
Apr 27 08:35:05 roadrunner amavis[1666]: (01666-19) SMTP> 220 [127.0.0.1] ESMTP amavisd-new service ready
Apr 27 08:35:05 roadrunner amavis[1666]: (01666-19) switch_to_client_time 480 s, smtp response sent
Apr 27 08:35:05 roadrunner amavis[1666]: (01666-19) idle_proc, 4: was busy, 282.8 ms, total idle 290.370 s, busy 23.941 s
Apr 27 08:35:06 roadrunner amavis[1666]: (01666-19) idle_proc, 5: was idle, 92.3 ms, total idle 290.462 s, busy 23.941 s
Apr 27 08:35:06 roadrunner amavis[1666]: (01666-19) SMTP< EHLO roadrunner.southeast-pa.com\r\n
Apr 27 08:35:06 roadrunner amavis[1666]: (01666-19) switch_to_my_time 480 s, SMTP EHLO received
Apr 27 08:35:06 roadrunner
RuntimeError in CategoriesController#show
Constant ImageRevolver is already autoloaded but is not defined as a constant
RAILS_ROOT: /srv/www/encore-editions
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.8/gems/desert-0.5.3/lib/desert/rails/dependencies.rb:81:in `define_constant_from_directory'
/usr/lib/ruby/gems/1.8/gems/desert-0.5.3/lib/desert/rails/dependencies.rb:46:in `define_constant_with_desert_loading'
/usr/lib/ruby/gems/1.8/gems/desert-0.5.3/lib/desert/rails/dependencies.rb:8:in `load_missing_constant'