Skip to content

Instantly share code, notes, and snippets.

View Govinda-Fichtner's full-sized avatar

Govinda Fichtner Govinda-Fichtner

View GitHub Profile
Govinda-Fichtners-MacBook-Pro:palabea-ng-test govindafichtner$ guard
Guard is now watching at '/Users/govindafichtner/workspace/palabea-ng-test'
Bundle already up-to-date
Starting Spork for RSpec
Using RSpec
Loading Spork.prefork block...
Supported locales: en ca es nl ru cz de fr
ERROR: Could not start Spork server for RSpec. Make sure you can use it manually first.
Guard::RSpec is running, with RSpec 2!
Running all specs
# orginally from the I18n_backend_database plugin
# http://github.com/dylanz/i18n_backend_database/
# slimed down to allow only import of yaml files for importing locale information
# gets called from a rake task in Rails.root/lib/comuungo.rake
class I18nUtil
# Create tanslation records from the YAML file. Will create the required locales if they do not exist.
def self.load_from_yml(file_name)
data = YAML::load(IO.read(file_name))
data.each do |code, translations|
@Govinda-Fichtner
Govinda-Fichtner / sphinx.rb
Created August 30, 2011 10:10
Brew formula for installing Sphinx Search 2.0.1 Beta
require 'formula'
class Sphinx <Formula
url 'http://sphinxsearch.com/files/sphinx-2.0.1-beta.tar.gz'
homepage 'http://www.sphinxsearch.com'
md5 '95c217d81d0b7a4ff73d5297318c3481'
head 'http://sphinxsearch.googlecode.com/svn/trunk/'
def install
fails_with_llvm "fails with: ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)"
@Govinda-Fichtner
Govinda-Fichtner / error_message
Created March 30, 2012 10:05
Sphinx/Flying Sphinx Error
Generating Configuration to /app/config/production.sphinx.conf
PGError: ERROR: language "plpgsql" does not exist
HINT: Use CREATE LANGUAGE to load the language into the database.
: CREATE OR REPLACE FUNCTION crc32(word text)
RETURNS bigint AS $$
DECLARE tmp bigint;
DECLARE i int;
DECLARE j int;
DECLARE byte_length int;
DECLARE word_array bytea;
@Govinda-Fichtner
Govinda-Fichtner / image_controller_spec.rb
Created July 20, 2012 14:31
Strange behaviour with response.body in rspec controller tests
# encoding: UTF-8
require "spec_helper"
describe Api::V1::ImagesController do
context "on GET to :index" do
before do
FactoryGirl.create_list(Image, 2)
end
it "should find the strange rabl behaviour" do
@Govinda-Fichtner
Govinda-Fichtner / gist:3736141
Created September 17, 2012 08:17
Zeus and Cucumber Error
zeus cucumber features/clients/image_types_settings.feature
/Users/govindafichtner/.rvm/gems/ruby-1.9.3-p194/gems/zeus-0.11.0/lib/zeus/rails.rb:166:in `cucumber': undefined local variable or method `cucumber_runtime' for #<Zeus::Rails:0x007f8f549b98b8> (NameError)
from /Users/govindafichtner/.rvm/gems/ruby-1.9.3-p194/gems/zeus-0.11.0/lib/zeus.rb:75:in `block in command'
from /Users/govindafichtner/.rvm/gems/ruby-1.9.3-p194/gems/zeus-0.11.0/lib/zeus.rb:64:in `fork'
from /Users/govindafichtner/.rvm/gems/ruby-1.9.3-p194/gems/zeus-0.11.0/lib/zeus.rb:64:in `command'
from /Users/govindafichtner/.rvm/gems/ruby-1.9.3-p194/gems/zeus-0.11.0/lib/zeus.rb:44:in `block (3 levels) in go'
from /Users/govindafichtner/.rvm/gems/ruby-1.9.3-p194/gems/zeus-0.11.0/lib/zeus.rb:44:in `fork'
from /Users/govindafichtner/.rvm/gems/ruby-1.9.3-p194/gems/zeus-0.11.0/lib/zeus.rb:44:in `block (2 levels) in go'
from /Users/govindafichtner/.rvm/gems/ruby-1.9.3-p194/gems/zeus-0.11.0/lib/zeus.rb:38:in `each'
from /Users/govindafichtner/
~/workspace/thinking-sphinx master ✗ ➤ rspec ./spec/acceptance/ [1s]
Run options: include {}
All examples were filtered out; ignoring {}
.............................................................F...F....*...............Error with statement: REPLACE INTO product_core (id, sphinx_internal_class_name, name, sphinx_internal_id, sphinx_internal_class, sphinx_deleted) VALUES (15, 'Product', 'Widget', 1, 'Product', 0)
.....................*............F....F....
Pending:
Searching with filters limits results with MVAs that don't contain all the given values
# SphinxQL doesn't yet support OR in its WHERE clause
Stderr: 'RTNETLINK answers: Network is unreachable\n' execute /opt/stack/quantum/quantum/agent/linux/utils.py:59
2013-07-05 13:17:39.317 25993 ERROR quantum.agent.dhcp_agent [-] Unable to enable dhcp.
2013-07-05 13:17:39.317 25993 TRACE quantum.agent.dhcp_agent Traceback (most recent call last):
2013-07-05 13:17:39.317 25993 TRACE quantum.agent.dhcp_agent File "/opt/stack/quantum/quantum/agent/dhcp_agent.py", line 131, in call_driver
2013-07-05 13:17:39.317 25993 TRACE quantum.agent.dhcp_agent getattr(driver, action)()
2013-07-05 13:17:39.317 25993 TRACE quantum.agent.dhcp_agent File "/opt/stack/quantum/quantum/agent/linux/dhcp.py", line 121, in enable
2013-07-05 13:17:39.317 25993 TRACE quantum.agent.dhcp_agent reuse_existing=True)
2013-07-05 13:17:39.317 25993 TRACE quantum.agent.dhcp_agent File "/opt/stack/quantum/quantum/agent/dhcp_agent.py", line 637, in setup
2013-07-05 13:17:39.317 25993 TRACE quantum.agent.dhcp_agent self._set_default_route(network)
2013-07-05 13:17:39.317 25993 TRAC
@Govinda-Fichtner
Govinda-Fichtner / Berksfile.lock
Last active December 26, 2015 18:29
Failing "vagrant up" with VMWare Fusion 6.0.1 and Ubuntu 13.04 Guest on a Mac OS X 10.8.5 Host...
{
"sources": {
"apt": {
"locked_version": "1.8.0"
},
"git": {
"locked_version": "2.1.2"
},
"dmg": {
"locked_version": "1.1.0"
@Govinda-Fichtner
Govinda-Fichtner / example.yml playbook
Created February 24, 2014 14:54
behaviour of tags
---
- name: Setup common tasks on all servers
hosts: development
user: root
gather_facts: true
roles:
- { role: 'common', tags: 'common' }