<?php
$DBQ['puppetdb'] = array (
'title' => 'Puppetdb',
- #'host' => 'big.cascais.loc',
'host' => 'puppet.nbdom.net',
'type' => 'pgsql',
'user' => 'puppetdb',
local url='';
for url in http://ipinfo.io/ip http://www.ipchicken.com http://icanhazip.com http://ident.me http://nicolas.boisselier.free.f/myip/;
do
- Get "$url" | perl -ne 'print "$1\n" and exit 64 if /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/';
+ http_get "$url" | perl -ne 'print "$1\n" and exit 64 if /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/';
[ "$?" == "64" ] && return 0;
done;
return 1
curl -sk --head $*
elif which wget 1>/dev/null; then
- zGet --save-headers - $* | perl -ne '/^\s*$/ and last;print'
+ http_get --save-headers - $* | perl -ne '/^\s*$/ and last;print'
elif which lynx 1>/dev/null; then
lynx --head -dump $*