Archive for November 2018

Git show remote url

git remote show origin git ls-remote –heads | grep 1234

Xpath search example

$ecbRates = simplexml_load_file("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml"); $namespaces = $ecbRates->getDocNamespaces(); $ecbRates->registerXPathNamespace("ecb", $namespaces[”]); $array = $ecbRates->xpath("//ecb:Cube[@currency=’GBP’]/@rate"); echo (string) $array[0][’rate’];