]> git.nbdom.net Git - nb.git/commitdiff
etc/vim/source/vars.vim
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 2 Dec 2017 03:06:14 +0000 (03:06 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 2 Dec 2017 03:06:14 +0000 (03:06 +0000)
etc/vim/source/vars.vim
lib/php/http.php
lib/php/mime.php

index 6987864a374ad4b9edbbe1a37f4db481beef1879..ecfb0c12bd34e6175786f86889d5efe472e5438c 100644 (file)
@@ -3,7 +3,7 @@
 "
 " Command to check files per file types
 "
-">SHELL_REPLACE echo "let mimeCheck = {"; dbq t=mime -cut 1,3 | sort -k 1 | sed -E -e "s/'/''/g" -e "s/^(.*?)\t(.*)$/  \\\,'\1' : '\2'/" -e "0,/,/s/,//" ; echo "\}"
+">SHELL_REPLACE echo "let mimeCheck = {"; dbq db=nb-sys t=mime -cut 1,3 | sort -k 1 | sed -E -e "s/'/''/g" -e "s/^(.*?)\t(.*)$/  \\\,'\1' : '\2'/" -e "0,/,/s/,//" ; echo "\}"
 let mimeCheck = {
   \'bash' : 'bash -c'
   \,'erb' : 'sh -c \"cat | erb -x - | ruby -c\" <'
index 20e6f2f788e5cee3f0c4470f3bfd0620c2a0ace6..03aa1c41c8cdb9329c27e0daa26f32f7d8d6d604 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 class Http {
   const Status = [
-#>SHELL_REPLACE dbq t=http_status -cut 1,2 | perl -pe "s/'/\\\\'/; s/^(.*?)\t(.*?)$/    '\$1' => '\$2',/"
+#>SHELL_REPLACE dbq db=nb-sys t=http_status -cut 1,2 | perl -pe "s/'/\\\\'/; s/^(.*?)\t(.*?)$/    '\$1' => '\$2',/"
     '100' => 'Continue',
     '101' => 'Switching Protocols',
     '102' => 'Processing',
index 933abcd86298677d4b537e6ce33593b2ccdc82ca..0cc80ac9edf627979d258edc7f89b9405a6b89c5 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 class Mime {
   const Types = [
-#>SHELL_REPLACE dbq t=mime_type -cut 2,3 | perl -pe "s/'/\\\\'/; s/^(.*?)\t(.*?)$/    '\$1' => '\$2',/"
+#>SHELL_REPLACE dbq db=nb-sys t=mime_type -cut 2,3 | perl -pe "s/'/\\\\'/; s/^(.*?)\t(.*?)$/    '\$1' => '\$2',/"
     'application/applixware' => 'aw',
     'application/atom+xml' => 'atom xml',
     'application/atomcat+xml' => 'atomcat',