Skip to content

Instantly share code, notes, and snippets.

View jwadolowski's full-sized avatar

Jakub Wądołowski jwadolowski

View GitHub Profile
@jwadolowski
jwadolowski / author_spec.rb
Last active August 29, 2015 14:24
Specinfra issue with file content matching (affects any v2.36.17+, works fine for v2.36.16). Based on attached diff it seems that not the whole file is loaded, hence no match. To be even worse it occurs totally randomly (sometimes all green, sometimes 1-3 failuers). Test environment: CentOS 6.6 (http://opscode-vm-bento.s3.amazonaws.com/vagrant/v…
require 'serverspec'
set :backend, :exec
describe 'CQ author home directory' do
it 'exists' do
expect(file('/opt/cq/author')).to be_directory
end
it 'is owned by cq' do
@jwadolowski
jwadolowski / xen_server_vcpu_sum.sh
Last active October 7, 2015 15:09
Number of allocated vCPUs on XenServer
xe vm-list params=VCPUs-number --minimal | tr ',' '\n' | paste -sd+ | bc
@jwadolowski
jwadolowski / delete_vbox_vms.sh
Created November 12, 2015 18:00
Delete all VirtualBox machines
for vm in $(VBoxManage list vms | sed -r 's/.*\{(.*)\}/\1/'); do VBoxManage unregistervm $vm --delete; done
@jwadolowski
jwadolowski / chef.log
Created May 28, 2016 11:33
chef-zero.log
[2016-05-28T12:34:08+02:00] DEBUG: Sleeping for 0 seconds
[2016-05-28T12:34:08+02:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /tmp/vagrant-chef/1c314d9dbafcfb313f57c7c0ebb1daa0
One version per cookbook
nodes at /tmp/vagrant-chef/9a29f1bf43fbc28c28a61610e72eea13/nodes
[2016-05-28T12:34:08+02:00] INFO: Forking chef instance to converge...
[2016-05-28T12:34:08+02:00] DEBUG: Fork successful. Waiting for new chef pid: 13211
[2016-05-28T12:34:08+02:00] DEBUG: Forked instance now converging
Starting Chef Client, version 12.5.1
[2016-05-28T12:34:08+02:00] INFO: *** Chef 12.5.1 ***
@jwadolowski
jwadolowski / opscode-erchef_crash.log
Created June 8, 2016 17:37
Chef server 12.6.0 errors
2016-06-08 18:36:39 =ERROR REPORT====
** Generic server <0.1716.0> terminating
** Last message in was connect
** When Server state == {state,<0.1714.0>,{amqp_params,<<"actions">>,<<"dae42ef11f3a054990c2bed02e6266648d1cdc280d873a8282798e83c0e19a61d7be1835b98dd092b9154f56c66cb8f94983">>,<<"/analytics">>,{127,0,0,1},5672,0,0,0,none,[]},undefined,undefined,undefined,undefined,undefined,undefined,<0.1715.0>,false,undefined,{{0,nil},{dict,0,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}}},undefined,#Fun<amqp_connection_sup.0.94524864>}
** Reason for termination ==
** {socket_closed_unexpectedly,[{amqp_network_connection,handshake_recv,0,[{file,"/var/cache/omnibus/src/oc_erchef/_build/default/lib/amqp_client/src/amqp_network_connection.erl"},{line,462}]},{amqp_network_connection,network_handshake,1,[{file,"/var/cache/omnibus/src/oc_erchef/_build/default/lib/amqp_client/src/amqp_network_connection.erl"},{line,379}]},{amqp_network_connection,handsh
@jwadolowski
jwadolowski / brew-upgrade.sh
Last active March 16, 2020 11:02
brew-upgrade.sh
#!/usr/bin/env bash
(set -x; brew update;)
(set -x; brew upgrade;)
(set -x; brew cleanup;)
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
@jwadolowski
jwadolowski / doc.md
Last active April 6, 2022 10:05
DEV4 deployments
ID Date Commit ID AEM release Reused build artifacts CM_DISABLE_BUILD_REUSE Pipeline link Dispatcher deployed?
0 2022-03-25 6:16 PM ed3c93eb 2022.3.6582 No Not set link NO [^0]
1 2022-03-28 3:31 PM 2a9727f3 2022.3.6582 No Not set link NO [^1]
2 2022-03-28 4:28 PM 2a9727f3 2022.3.6582 Yes Not set link NO [^2]
3 2022-03-31 12:33 PM 3a553139 2022.3.6698 No Not set [link](https://expe