Skip to content

Instantly share code, notes, and snippets.

@Pajk
Pajk / main.log
Created September 20, 2012 07:37
katello-configure error
[ppokorny@katello src]$ sudo katello-configure --reset-data=YES
Starting Katello configuration
The top-level log file is [/var/log/katello/katello-configure-20120920-093158/main.log]
err: /Stage[main]/Foreman::Config/Exec[foreman_migrate_db]/returns: change from notrun to 0 failed: /usr/bin/env rake db:migrate --trace --verbose > /var/log/katello/katello-configure/foreman-db-migrate.log 2>&1 && touch /var/lib/katello/foreman_db_migrate_done returned 1 instead of one of [0] at /usr/share/katello/install/puppet/modules/foreman/manifests/config.pp:81
Creating Katello database
############################################################ ... OK
err: /Stage[main]/Katello::Config/Exec[katello_bundler_check]/returns: change from notrun to 0 failed: bundle install --local > /var/log/katello/katello-configure/bundler.log 2>&1 returned 6 instead of one of [0] at /usr/share/katello/install/puppet/modules/katello/manifests/config.pp:157
Populating Katello database schema
Failed, please check [/var/log/katello/katello-c
cat /var/log/katello/katello-configure/db_migrate.log
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:495:in `raw_load_rakefile'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
@Pajk
Pajk / gist:4037499
Created November 8, 2012 08:15
naturalscrolling -d
* PyUDev
Input devices:
==============
event2 Power Button
event4 Video Bus
event1 Power Button
event0 Lid Switch
event5 USB 2.0 Camera
@import url(http://fonts.googleapis.com/css?family=Droid+Sans+Mono);
#delivery-date-calendar {
display: none;
}
.clearfix:after {
content: ".";
display: block;
clear: both;
@Pajk
Pajk / gist:9957318
Created April 3, 2014 16:04
Cities popularity
City, State, Country, Popularity
"New York City","NY","1","81"
"Los Angeles","CA","1","39"
"Chicago","IL","1","28"
"Houston","TX","1","20"
"Philadelphia","MS","1","15"
"Phoenix","AZ","1","14"
"San Diego","CA","1","13"
"San Antonio","TX","1","13"
"Dallas","TX","1","12"
@Pajk
Pajk / server.js
Created August 17, 2015 16:41
learnyounode solutions
// solutions to learnyounode tutorial from http://nodeschool.io/#workshopper-list
// READING ARGS
// var args = process.argv.slice(2),
// sum = args.reduce(function(sum, arg) { return sum + Number(arg); }, 0)
//
// console.log(sum)
// READING FILE SYNC
// var fs = require('fs'),
@Pajk
Pajk / js_factory.js
Last active October 29, 2015 13:29
"use strict"
var contexts = new WeakMap()
var private_for = function(key) {
var ctx = contexts.get(key)
if (!ctx) {
ctx = {}
contexts.set(key, ctx)
}
return ctx

Keybase proof

I hereby claim:

To claim this, I am signing this object: