Skip to content

Instantly share code, notes, and snippets.

View scotthain's full-sized avatar

Scott Hain scotthain

View GitHub Profile
@scotthain
scotthain / wget-list
Last active June 24, 2024 03:27
LFS systemd file list as of 6/23/2024
https://download.savannah.gnu.org/releases/acl/acl-2.3.2.tar.xz
https://download.savannah.gnu.org/releases/attr/attr-2.5.2.tar.gz
https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.xz
https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz
https://ftp.gnu.org/gnu/bash/bash-5.2.21.tar.gz
https://github.com/gavinhoward/bc/releases/download/6.7.5/bc-6.7.5.tar.xz
https://sourceware.org/pub/binutils/releases/binutils-2.42.tar.xz
https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.xz
https://www.sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
https://github.com/libcheck/check/releases/download/0.15.2/check-0.15.2.tar.gz
@scotthain
scotthain / ubuntu.ps
Last active June 14, 2024 19:32
an example preseed
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
#d-i mirror/country string us
#d-i mirror/http/proxy string
root@servername:~# df -Pka
Filesystem 1024-blocks Used Available Capacity Mounted on
rpool/ROOT/solaris-0 730451045 2172071 727373448 1% /
rpool/ROOT/solaris-0/var
730451045 850302 727373448 1% /var
/dev 0 0 0 0% /dev
proc 0 0 0 0% /proc
ctfs 0 0 0 0% /system/contract
mnttab 0 0 0 0% /etc/mnttab
objfs 0 0 0 0% /system/object
/opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:402:in `visit_Psych_Nodes_Alias': Unknown alias: default (Psych::BadAlias)
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/visitor.rb:16:in `visit'
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/visitor.rb:6:in `accept'
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:32:in `accept'
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:338:in `block in revive_hash'
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `each'
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `each_slice'
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:336:in `revive_hash'
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/to_ruby.rb:162:in `visit_Psych_Nodes_Mapping'
from /opt/chefdk/embedded/lib/ruby/2.4.0/psych/visitors/visitor.rb:16:in `visit'
@scotthain
scotthain / config.xml
Created January 25, 2018 23:44
config
<?xml version="1.0" standalone="yes"?>
<Ec2ConfigurationSettings>
<Plugins>
<Plugin>
<Name>Ec2SetPassword</Name>
<State>Disabled</State>
</Plugin>
<Plugin>
<Name>Ec2SetComputerName</Name>
<State>Disabled</State>
[0FC4:0FC8][2017-11-21T20:13:19]: Burn v3.6.2723.1, path: C:\Users\ADMINI~1\AppData\Local\Temp\kitchen\cache\package\sdksetup-8.100.26936.exe, cmdline: '/norestart /quiet /ceip off /features OptionId.MSIInstallTools -burn.unelevated BurnPipe.{AA6B4BA1-BA21-4ECF-B665-75797427967B} {191D7CCE-965C-454A-A08D-56CD4A53A8B8} 4024'
[0FC4:0FC8][2017-11-21T20:13:19]: Setting string variable 'WixBundleLog' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\standalonesdk\Windows Software Development Kit for Windows 8.1_20171121201319.log'
[0FC4:0FC8][2017-11-21T20:13:19]: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\kitchen\cache\package\sdksetup-8.100.26936.exe'
[0FC4:0FC8][2017-11-21T20:13:19]: Setting string variable 'WixBundleName' to value 'Windows Software Development Kit for Windows 8.1'
[0FC4:0FC8][2017-11-21T20:13:19]: Loading managed bootstrapper application.
[0FC4:0FC8][2017-11-21T20:13:19]: Creating BA thread to run synchronously.
[0FC4:0FC8][2017-11-21T20:13:19
Waited 115/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 120/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 125/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 130/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 135/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 140/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 145/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 150/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 155/300s for instance <i-0f1c407c3c79876f3> to become ready.
Waited 160/300s for instance <i-0f1c407c3c79876f3> to become ready.
Feb 22 17:02:25 chef-rhel72-1 sshd[27392]: pam_unix(sshd:session): session opened for user root by (uid=0)
Feb 22 17:02:25 chef-rhel72-1 sshd[27392]: Received disconnect from 148.100.42.6: 11: disconnected by user
Feb 22 17:02:25 chef-rhel72-1 sshd[27392]: pam_unix(sshd:session): session closed for user root
Feb 22 17:02:25 chef-rhel72-1 sshd[27407]: Accepted publickey for root from 148.100.42.6 port 57455 ssh2: RSA 6d:94:00:7a:32:1d:15:68:4e:1e:45:cd:9d:d0:5d:fb
Feb 22 17:02:27 chef-rhel72-1 sshd[27407]: pam_unix(sshd:session): session opened for user root by (uid=0)
Feb 22 17:02:28 chef-rhel72-1 sshd[27407]: Received disconnect from 148.100.42.6: 11: disconnected by user
Feb 22 17:02:28 chef-rhel72-1 sshd[27407]: pam_unix(sshd:session): session closed for user root
Feb 22 17:29:32 chef-rhel72-1 sshd[27476]: Accepted publickey for root from 148.100.42.6 port 55665 ssh2: RSA 6d:94:00:7a:32:1d:15:68:4e:1e:45:cd:9d:d0:5d:fb
Feb 22 17:29:35 chef-rhel72-1 sshd[27476]: pam_unix(sshd:session): session opened for us
PING 148.100.110.249 (148.100.110.249): 56 data bytes
64 bytes from 148.100.110.249: icmp_seq=0 ttl=48 time=94.533 ms
64 bytes from 148.100.110.249: icmp_seq=1 ttl=48 time=97.914 ms
64 bytes from 148.100.110.249: icmp_seq=2 ttl=48 time=112.979 ms
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
Request timeout for icmp_seq 8
3) omnibus::_packaging on rhel installs the correct development packages
Failure/Error:
ChefSpec::SoloRunner.new(platform: 'redhat', version: '6.5')
.converge(described_recipe)
NoMethodError:
undefined method `split' for nil:NilClass
# /Users/shain/.chefdk/gem/ruby/2.3.0/bundler/gems/chef-bb93a536de78/lib/chef/mixin/which.rb:24:in `which'
# /Users/shain/.chefdk/gem/ruby/2.3.0/bundler/gems/chef-bb93a536de78/lib/chef/resource/dnf_package.rb:30:in `block in <class:DnfPackage>'
# /Users/shain/.chefdk/gem/ruby/2.3.0/bundler/gems/chef-bb93a536de78/lib/chef/node_map.rb:162:in `block_matches?'