Month: March 2013

Proxmox Change Node IP

Whether you need to change a proxmox node’s ip or change the hostname, the steps are the same. In my particular case, I have two networks, a fast network and a faster network, so I wanted to switch all my proxmox hosts to use the ip address associated with the faster network interface … to…

continue reading
No Comments

Set phantomjs user-agent string

Set the user agent for phantomjs driver from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities dcap = dict(DesiredCapabilities.PHANTOMJS) dcap[“phantomjs.page.settings.userAgent”] = ( “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/53 ” “(KHTML, like Gecko) Chrome/15.0.87” ) driver = webdriver.PhantomJS(desired_capabilities=dcap)

continue reading
No Comments

Pretty Print a CSV file

Have you ever had a csv (comma separated file) file that you wanted to see nicely and did not want to open up a spreadsheet editor just to be able to see it in a readable way. Well the following command works with most csv files and will do just that: column -s, -t

continue reading
No Comments