Skip to content

Instantly share code, notes, and snippets.

View damm's full-sized avatar

Scott M. Likens damm

  • Seattle, Washington USA
View GitHub Profile
<console type='pty' tty='/dev/pts/3'>
<source path='/dev/pts/3'/>
<target port='0'/>
</console>
mayo:~ sudo virsh dumpxml chefserver
Connecting to uri: qemu:///system
<domain type='kvm' id='20'>
<name>chefserver</name>
<uuid>e13f3fac-1a96-253c-2e46-4597ce2c9e44</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
{ "run_list": {
[
"recipe[sudo]",
"recipe[ntp]",
"recipe[host]",
"recipe[sshkeys]",
"recipe[zsh]",
"role[Staging]"
]
}
users({
:bob => {
:gecos => "Brash Deploy User",
:shell => "/bin/bash",
:home => "/home/deploy"
}
}
)
LogFormat "%V\t%{X-Forwarded-For}i\t%h\t%{%s}t\t%>s\t%b\t%D\t%X\t\"%r\"\t\"%{Referer}i\"\t\"%{User-Agent}i\"" common
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is C:\mysql\data) or
keys = []
search(:node, "*") do |server|
server['keys_ssh_host_rsa_public'].each do |x|
Chef::Log.debug("SSH RSA Key #{x}")
my_host_rsa_public << x
end
server['ipaddress'].each do |y|
Chef::Log.debug("IP Address #{y}")
my_host_ip << y
end
@damm
damm / blah
Created August 30, 2009 05:26
{
"default_interface": "en0",
"interfaces": {
"stf0": {
"number": "0",
"flags": [
],
"addresses": {
{
"default_interface": "br0",
"interfaces": {
"br0": {
"flags": [
"UP",
"BROADCAST",
"RUNNING",
"MULTICAST"
],
execve("/bin/df", ["df", "/boot"], [/* 23 vars */]) = 0
brk(0) = 0x9f76000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=57458, ...}) = 0
mmap2(NULL, 57458, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fd0000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320_1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1606808, ...}) = 0