]> git.nbdom.net Git - nb.git/commitdiff
dbq
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 20 Dec 2016 12:42:00 +0000 (12:42 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 20 Dec 2016 12:42:00 +0000 (12:42 +0000)
etc/dbq/izi.yaml
etc/dbq/puppetdb.php
etc/profile.d/functions
www/dbq/html/default.css

index f07bda6f43f7a33916560b9290c6edd8c8d11f2f..730780ef40b04214535745bcc9cccd40ad59a3b7 100644 (file)
@@ -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
index 452bee0b5eaec8e8b4f41ca5cd585900a1555835..61479cf42e73dc27558b01a21ff249a6016c118c 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 $DBQ['puppetdb'] = array (
   'title' => 'Puppetdb',
-  #'host' => 'big.cascais.loc',
   'host' => 'puppet.nbdom.net',
   'type' => 'pgsql',
   'user' => 'puppetdb',
index efa1856b0a336c7b352e9533bea19ff258694590..6928bd69a497a8cb04ba8e260e47e39a763aa0e6 100644 (file)
@@ -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 $*
index aefa7d09c3ac4dc42db6e1e53b819efe7015dbda..43190226e0e9ecff18fb664ad896c3a0dd2629f9 100644 (file)
@@ -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,