Skip to content

Instantly share code, notes, and snippets.

View juliandunn's full-sized avatar

Julian C. Dunn juliandunn

View GitHub Profile
@juliandunn
juliandunn / rhel-6.5-yum-repos-list.txt
Created November 27, 2013 17:09
What's in yum.repos.d on a RHEL box?
[vagrant@db2-berkshelf yum.repos.d]$ ls /etc/yum.repos.d
rhel-source.repo
[vagrant@db2-berkshelf yum.repos.d]$ cat rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
@juliandunn
juliandunn / windows-knife-editor-settings.md
Last active August 10, 2016 06:55
knife[:editor] settings on windows

Notepad++

knife[:editor] = '"C:\Program Files (x86)\Notepad++\notepad++.exe" -nosession -multiInst'

Sublime Text

knife[:editor] = '"C:\Program Files\Sublime Text 2\sublime_text.exe" --wait'
@juliandunn
juliandunn / windows-vagrant-chef-run.txt
Created September 23, 2013 19:23
first run of IIS cookbook under Vagrant 1.3.x with vagrant-windows
$ vagrant destroy -f && vagrant up
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
[Berkshelf] Cleaning Vagrant's berkshelf
[default] Running cleanup tasks for 'chef_solo' provisioner...
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'windows-2012-standard'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
export AWS_ACCESS_KEY=AKIAXXXXXXXXXXXXXXXXXX
export AWS_SECRET_KEY=XXXX
export AWS_SSH_KEY_ID=xxxx
# Of course, the new Python Amazon tools need to use completely
# different environment variables. Really, guys?
export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY
export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_KEY
export AWS_DEFAULT_REGION=us-east-1
@juliandunn
juliandunn / certificate.svg.erb
Created August 26, 2013 04:11
Opscode Training Certificate template
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="792px"
height="612px" viewBox="0 0 792 612" enable-background="new 0 0 792 612" xml:space="preserve">
<g id="Certificate_Layout">
<g>
<g>
<g>
<g>
@juliandunn
juliandunn / chef-11.6.0-rc0-output-windows
Created June 29, 2013 02:25
Chef 11.6.0rc0 output on Windows
Recipe: chef-client::config
* directory[C:/chef/run] action create[2013-06-29T02:17:13+00:00] INFO: Processing directory[C:/chef/run] action creat
e (chef-client::config line 77)
================================================================================
Error executing action `create` on resource 'directory[C:/chef/run]'
================================================================================
Chef::Exceptions::Win32APIError
-------------------------------
@juliandunn
juliandunn / cla.rb
Last active December 16, 2015 20:19 — forked from jtimberman/cla.rb
#!/usr/bin/env ruby
# Author: Joshua Timberman <[email protected]>
# License: Apache Software License version 2
#
# gem install roo
#
# Usage:
# cla name []
#
# Where name is a string to search, and [] is an optional string to tell the script
Complete!
Copy iso file /Users/juliandunn/Dropbox/devel/github/juliandunn/bento/iso/VBoxGuestAdditions_4.2.10.iso into the box /tmp/VBoxGuestAdditions.iso
Installing Virtualbox Guest Additions 4.2.10 - guest version is 4.1.22
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.10 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.1.22 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules[ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[ OK ]
@juliandunn
juliandunn / gist:5000718
Created February 20, 2013 23:35
tar manpage excerpt
BUGS
The GNU folks, in general, abhor man pages, and create info documents instead. The
maintainer of tar falls into this category. Thus this man page may not be complete,
nor current.
@juliandunn
juliandunn / gist:4950591
Created February 14, 2013 04:22
minitest-meme.txt
=== Unit tests
require 'minitest/autorun'
class TestMeme < MiniTest::Unit::TestCase
def setup
@meme = Meme.new
end
def test_that_kitty_can_eat