Skip to content

Instantly share code, notes, and snippets.

View galenemery's full-sized avatar

Galen E. galenemery

View GitHub Profile
@galenemery
galenemery / install_cert.rb
Created October 29, 2015 19:41
Install Certificate to a certificate store.
%W{ Root CA }.each do |cert_store|
powershell_script "import_cert_to_#{cert_store}" do
code <<-EOH
$certpath = "#{Chef::Config[:file_cache_path]}\\self_cert.cer"
$certstore = "cert:\\LocalMachine\\#{cert_store}"
Import-Certificate -FilePath $certpath -CertStoreLocation $certstore
EOH
end
end
Verifying that +galenemery is my blockchain ID. https://onename.com/galenemery
@galenemery
galenemery / ~\.berkshelf\config.json
Created June 24, 2015 17:46
Berkshelf config.json
{"ssl": {"verify": false}}
@galenemery
galenemery / Winrm_setup.ps1
Last active February 9, 2020 05:24
WinRM config
# On the remote node/server:
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
# When NOT USING a domain-based authentication (i.e., from Linux/Unix to Windows node):
winrm set winrm/config/service/auth '@{Basic="true"}'
knife azure server create --azure-dns-name galen-1235 --azure-vm-size Medium -I a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-R2-201412.01-en.us-127GB.vhd --azure-service-location 'North Central US' --winrm-user galen --winrm-password '@@@@@@@@' --bootstrap-protocol winrm --bootstrap-protocol cloud-api -r 'recipe[chef-client]'