From: Nicolas Boisselier Date: Tue, 20 Dec 2016 12:42:00 +0000 (+0000) Subject: dbq X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=3148d5c10d37d71763fd26d3ca2e7f7f188a0378;p=nb.git dbq --- diff --git a/etc/dbq/izi.yaml b/etc/dbq/izi.yaml index f07bda6f..730780ef 100644 --- a/etc/dbq/izi.yaml +++ b/etc/dbq/izi.yaml @@ -15,13 +15,12 @@ izi: 'izi-sql': title: Mysql Izi Slave - host: sql.izideal.vpn + host: ns400587.ip-37-187-134.eu _import: - izi 'izi-dev': - host: big.cascais.loc + host: big.nbdom.net title: Mysql Izi on Big - #user: nico _import: - izi diff --git a/etc/dbq/puppetdb.php b/etc/dbq/puppetdb.php index 452bee0b..61479cf4 100644 --- a/etc/dbq/puppetdb.php +++ b/etc/dbq/puppetdb.php @@ -1,7 +1,6 @@ 'Puppetdb', - #'host' => 'big.cascais.loc', 'host' => 'puppet.nbdom.net', 'type' => 'pgsql', 'user' => 'puppetdb', diff --git a/etc/profile.d/functions b/etc/profile.d/functions index efa1856b..6928bd69 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -752,7 +752,7 @@ myip() { 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 @@ -779,7 +779,7 @@ http_head() { 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 $* diff --git a/www/dbq/html/default.css b/www/dbq/html/default.css index aefa7d09..43190226 100644 --- a/www/dbq/html/default.css +++ b/www/dbq/html/default.css @@ -105,8 +105,13 @@ table.rows tr:last-child td { border-bottom: none; } box-sizing: border-box; margin: 0; padding: 0 0.2em; + /* border: solid 1px #aaa; background-color: #ccc; + */ + color: #eee; + border: solid 1px #000; + background-color: #444; } a:hover,