bartko.hashnode.devScanning for open portslsof list of open files lsof -i -P -n | grep LISTEN netstat Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships netstat -tulpn | grep LISTEN ss utility to investigate sockets ss -tulpn...Jan 4, 2023·1 min read
bartko.hashnode.devHow to setup private network and gatewayThis chapter will focus on the preparation work. I will wire all computers together and I configure one of my laptops to serve as an access point to the cluster and also from the cluster to the outside world. I already gathered about 5 old computers ...Dec 22, 2022·7 min read
bartko.hashnode.devEfficiently Finding and Replacing Text in Multiple Files Using ripgrep and sedcommand rg "some string" | xargs -d "\n" sed -i "s/some string/another string/g" The command searches for the specified string using ripgrep and pipes the results to xargs, which executes the sed command on each line returned by ripgrep. The sed com...Dec 13, 2022·2 min read
bartko.hashnode.devHow to manage versions using update-alternativesBackground Recently I needed to run the end to end tests in the older chrome browser as the tool the chrome driver available to me was only working with the older version of chrome. The solution instead of downgrading my chrome installation was to in...Nov 24, 2022·5 min read
bartko.hashnode.devWhere and how to get hands on older versions of google-chrome?Issue Recently I needed to run some functional tests against the older version of chrome browser as the chrome-driver available to me (part of the 3rd party test tools) was working only with slightly older version of google-chrome than my current sys...Nov 24, 2022·3 min read