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
---
- 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)"
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
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']
@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 = [email protected]: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:

@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>
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,