Skip to content

Instantly share code, notes, and snippets.

View zjhuntin's full-sized avatar

Zachary Huntington-Meath zjhuntin

  • Red Hat
  • United States
View GitHub Profile
def test_create
binding.pry
product = mock
product.responds_like(Product)
product.expects(:add_repo).with(
'Fedora_Repository',
'Fedora Repository',
'http://www.google.com',
'yum',
true,
@zjhuntin
zjhuntin / gen_virt_hosts.rb
Created April 6, 2016 14:56 — forked from jlsherrill/gen_virt_hosts.rb
Gen virt host proxies
base=8000 #port
range="192.168.121."
contents = <<-EOS
Listen %{port} https
<VirtualHost *:%{port}>
ProxyPass / https://%{ip_address}/
<Location />
ProxyPassReverse https://%{ip_address}/
</Location>
@zjhuntin
zjhuntin / pr.md
Created April 7, 2016 20:54 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

require File.join(File.dirname(__FILE__), '../test_helper')
describe 'listing activation keys' do
before do
@cmd = %w(activation-key list)
end
it "lists an organizations activation keys" do
params = ['--organization-id=1']
equire File.join(File.dirname(__FILE__), '../test_helper')
require File.join(File.dirname(__FILE__), '../lifecycle_environment/lifecycle_environment_helpers')
describe 'listing activation keys' do
include LifecycleEnvironmentHelpers
before do
@cmd = %w(activation-key list)
end
---
- name: install zsh
yum: name=zsh state=latest
- name: install oh-my-zsh
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@@ -11,7 +11,7 @@ Name: python-%{srcname}
# The Fedora package is using epoch 1, so we need to also do that to make sure ours gets installed
Epoch: 1
Version: 3.0.33
-Release: 5.pulp%{?dist}
+Release: 6.pulp%{?dist}
Summary: AMQP Messaging Framework for Python
Group: Development/Languages
@@ -24,6 +24,7 @@ Patch1: 1212200.patch
Apr 4 22:06:21 localhost yum[27683]: Erased: katello-agent
Apr 4 22:06:33 localhost goferd: [INFO][Thread-1] gofer.rmi.store:114 - Using: /var/lib/gofer/messaging/pending/demo
Apr 4 22:06:33 localhost goferd: [WARNING][MainThread] gofer.agent.plugin:639 - plugin:demo, DISABLED
Apr 4 22:06:33 localhost goferd: [INFO][Thread-2] gofer.rmi.store:114 - Using: /var/lib/gofer/messaging/pending/katelloplugin
Apr 4 22:06:33 localhost goferd: [INFO][Thread-3] gofer.rmi.store:114 - Using: /var/lib/gofer/messaging/pending/katelloplugin
Apr 4 22:06:33 localhost yum[27686]: Installed: katello-agent-2.9.0-7.el6sat.noarch
Apr 4 22:06:33 localhost goferd: [INFO][MainThread] gofer.agent.plugin:682 - plugin:katelloplugin loaded using: /usr/lib/gofer/plugins/katelloplugin.py
Apr 4 22:06:33 localhost goferd: [INFO][MainThread] gofer.agent.main:87 - agent started.
Apr 4 22:06:33 localhost goferd: [INFO][worker-0] katelloplugin:263 - Restarting goferd.
Apr 4 22:06:35 localhost abrt: detected unhandled Python exception in
Apr 4 22:06:33 localhost goferd: [INFO][Thread-1] gofer.rmi.store:114 - Using: /var/lib/gofer/messaging/pending/demo
Apr 4 22:06:33 localhost goferd: [WARNING][MainThread] gofer.agent.plugin:639 - plugin:demo, DISABLED
Apr 4 22:06:33 localhost goferd: [INFO][Thread-2] gofer.rmi.store:114 - Using: /var/lib/gofer/messaging/pending/katelloplugin
Apr 4 22:06:33 localhost goferd: [INFO][Thread-3] gofer.rmi.store:114 - Using: /var/lib/gofer/messaging/pending/katelloplugin
Apr 4 22:06:33 localhost yum[27686]: Installed: katello-agent-2.9.0-7.el6sat.noarch
Apr 4 22:06:33 localhost goferd: [INFO][MainThread] gofer.agent.plugin:682 - plugin:katelloplugin loaded using: /usr/lib/gofer/plugins/katelloplugin.py
Apr 4 22:06:33 localhost goferd: [INFO][MainThread] gofer.agent.main:87 - agent started.
Apr 4 22:06:33 localhost goferd: [INFO][worker-0] katelloplugin:263 - Restarting goferd.
Apr 4 22:06:35 localhost abrt: detected unhandled Python exception in '/usr/bin/goferd'
Apr 4 22:06:35 localhost abrt-server[2775
Initial Backup:
-rw-r--r--. 1 root root 6439278354 May 4 16:24 config_files.tar.gz
-rw-r--r--. 1 root root 346 May 4 17:48 metadata
-rw-r--r--. 1 root root 9704732243 May 4 17:13 mongo_data.tar.gz
-rw-r--r--. 1 root root 11786215370 May 4 16:46 pgsql_data.tar.gz
-rw-r--r--. 1 root root 40960 May 4 17:13 pulp_data.tar
Incremental Backup: