Skip to content

Instantly share code, notes, and snippets.

View weissjeffm's full-sized avatar

Jeff Weiss weissjeffm

View GitHub Profile
@weissjeffm
weissjeffm / gist:6369293
Created August 28, 2013 18:11
borken build
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/katello-1.4.3-1.git.362.397ba2c.el6.x86_64
RPM build errors:
error: Installed (but unpackaged) file(s) found:
/usr/share/katello/db/.rubocop.yml
File listed twice: /var/lib/katello/openid-store/associations
File listed twice: /var/lib/katello/openid-store/nonces
File listed twice: /var/lib/katello/openid-store/temp
Installed (but unpackaged) file(s) found:
/usr/share/katello/db/.rubocop.yml
Child return code was: 1
@weissjeffm
weissjeffm / gist:6356497
Last active December 21, 2015 19:48
foo
10:53 <jweiss> mmccune_mtg: looking
10:54 <jweiss> mmccune_mtg: i'm guessing error: File not found:
/builddir/build/BUILDROOT/katello-1.4.3-1.git.290.2eb5bcd.el6.x86_64/usr/share/katello/engines/bastion/README
10:54 <jweiss> from http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/katello-build/900/artifact/rpms/rhel-latest/x86_64/build.log
@weissjeffm
weissjeffm / remove-failed.groovy
Last active December 20, 2015 20:59
jenkins script to remove failed runs of a particular job
job = hudson.model.Hudson.instance.items.findAll{job -> job.name == "my-job-name"}.first()
failedRuns = job.builds.findAll {run -> run.result == hudson.model.Result.FAILURE ||
run.result == hudson.model.Result.ABORTED}
failedRuns.each { fr -> fr.delete() }
@weissjeffm
weissjeffm / shell-at-host.el
Created July 29, 2013 12:33
shell-at-host.el
(defun shell-at-host (target)
(interactive (list (read-directory-name "Target Location: " "/")))
(message target)
(let ((default-directory target))
(shell (file-remote-p target 'host))))
@weissjeffm
weissjeffm / wrapper.clj
Last active December 19, 2015 18:59
wrapper.clj
(defgroup katello-tests
:test-wrapper (fn [t] (let [session (taxi/new-session)]
(katello.tests.login/navigate-toplevel)
(t)
(.close session)))
katello.tests.login/login-tests
katello.tests.navigation/nav-tests
katello.tests.organizations/org-tests
katello.tests.search/search-tests
@weissjeffm
weissjeffm / gist:5986786
Created July 12, 2013 18:48
emacs - editing many files
;; processing many files
;; depends on dired+
(defun on-dired-marked-files (f)
(interactive "aFunction to call on each file: ")
(dolist (file (diredp-get-files nil nil t t))
(when (not (file-directory-p file))
(find-file file)
(funcall f))))
@weissjeffm
weissjeffm / gist:5918152
Created July 3, 2013 14:07
katello install error
>> Exiting!
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in `strict_error': Gem loading error: cannot load such file -- justified/standard_error (RuntimeError)
from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:56:in `rescue in block in system_require'
from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in `block in system_require'
from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in `each'
from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in `system_require'
from /usr/share/katello/config/application.rb:24:in `<top (required)>'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /usr/share/katello/config/environment.rb:2:in `<top (required)>'
@weissjeffm
weissjeffm / gist:5867790
Created June 26, 2013 14:27
tcms uploader output
[jweiss@blinky katello.auto]$ java -jar ~/Downloads/tcms-upload-0.1.7-standalone.jar --username jweiss --password '@)7!XisPiz' --plan 9797 --xml-result ~/Downloads/testng-report.xml -M jweiss -S 'Latest master run' -B 1.4.2-1.git.738.ee8619d.el6
Jun 26, 2013 10:25:04 AM clojure.tools.logging$eval1$fn__7 invoke
INFO: Calling: :TestPlan.get with [9797]
Jun 26, 2013 10:25:05 AM clojure.tools.logging$eval1$fn__7 invoke
INFO: Resolved params: {:product 313, :product_version 1271}
Jun 26, 2013 10:25:05 AM clojure.tools.logging$eval1$fn__7 invoke
INFO: Calling: :Build.check_build with [1.4.2-1.git.738.ee8619d.el6 313]
Jun 26, 2013 10:25:06 AM clojure.tools.logging$eval1$fn__7 invoke
INFO: Calling: :Build.create with [{:name 1.4.2-1.git.738.ee8619d.el6, :product 313}]
Jun 26, 2013 10:25:06 AM clojure.tools.logging$eval1$fn__7 invoke
@weissjeffm
weissjeffm / my-eshell.el
Created June 12, 2013 18:46
eshell mode conveniences
;; eshell
(defun eshell-shell-at-pwd ()
(interactive)
(shell (eshell/pwd)))
(add-hook 'eshell-mode-hook
(lambda () (define-key eshell-mode-map
(kbd "C-c s") 'eshell-shell-at-pwd)))
(global-set-key (kbd "<f10>") (lambda () (interactive) (switch-to-buffer "*eshell*")))
@weissjeffm
weissjeffm / gist:5714801
Created June 5, 2013 15:33
create repo via api traceback
[ERROR 2013-06-04 23:13:17 app 1206f853a9f52b8e7379e815c9a76b82 #5977] ArgumentError: wrong number of arguments (1 for 2)
| /usr/share/katello/app/models/product.rb:61:in `find_by_cp_id'
| /usr/share/katello/app/controllers/api/v1/repositories_controller.rb:190:in `find_product'
| /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:474:in `block in _run__3618471543643559062__process_action__3238069263663887584__callbacks'
| /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_3574'
| /usr/share/katello/app/lib/util/thread_session.rb:102:in `thread_locals'
| /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_3574'
| /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:447:in `_run__3618471543643559062__process_action__3238069263663887584__callbacks'
| /opt/rh/r