aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.vimrc65
-rw-r--r--db/mongo/build_db.js35
-rw-r--r--db/postgres/create_db.pgsql2
-rw-r--r--stylus/rfc_bigger.css10
-rw-r--r--terminaldweller.com/haproxy/haproxy.cfg14
5 files changed, 105 insertions, 21 deletions
diff --git a/.vimrc b/.vimrc
index 11ccd68..ec3cac0 100644
--- a/.vimrc
+++ b/.vimrc
@@ -206,6 +206,7 @@ Plug 'hrother/offlineimaprc.vim'
Plug 'lifepillar/pgsql.vim', {'for': ['sql','pqsl', 'pgsql']}
Plug 'HiPhish/info.vim'
Plug 'kmonad/kmonad-vim'
+Plug 'MattesGroeger/vim-bookmarks'
" Plug 'kana/vim-operator-user'
" Plug 'terryma/vim-multiple-cursors'
" Plug 'Konfekt/vim-office'
@@ -235,7 +236,6 @@ Plug 'kmonad/kmonad-vim'
" Plug 'xolox/vim-misc'
" Plug 'metakirby5/codi.vim'
" Plug 'vim-scripts/tagexplorer.vim'
-" Plug 'MattesGroeger/vim-bookmarks'
" Plug 'severin-lemaignan/vim-minimap'
" Plug 'ervandew/supertab'
" Plug 'Valloric/ListToggle'
@@ -825,16 +825,16 @@ let g:pdf_convert_on_read = 1
let g:session_autoload="no"
"highlight groups
-hi def InterestingWord1 ctermfg=16 ctermbg=214
-hi def InterestingWord2 ctermfg=16 ctermbg=154
-hi def InterestingWord3 ctermfg=16 ctermbg=121
-hi def InterestingWord4 ctermfg=16 ctermbg=137
-hi def InterestingWord5 ctermfg=16 ctermbg=211
-hi def InterestingWord6 ctermfg=16 ctermbg=195
-hi def InterestingWord7 ctermfg=16 ctermbg=99
-hi def InterestingWord8 ctermfg=16 ctermbg=35
-hi def InterestingWord9 ctermfg=16 ctermbg=209
-hi def InterestingWord0 ctermfg=16 ctermbg=39
+hi def InterestingWord1 ctermfg=16 ctermbg=214 guifg=#000000 guibg=#ffaf00
+hi def InterestingWord2 ctermfg=16 ctermbg=154 guifg=#000000 guibg=#afff00
+hi def InterestingWord3 ctermfg=16 ctermbg=121 guifg=#000000 guibg=#87ffaf
+hi def InterestingWord4 ctermfg=16 ctermbg=137 guifg=#000000 guibg=#af875f
+hi def InterestingWord5 ctermfg=16 ctermbg=211 guifg=#000000 guibg=#ff87af
+hi def InterestingWord6 ctermfg=16 ctermbg=195 guifg=#000000 guibg=#d7ffff
+hi def InterestingWord7 ctermfg=16 ctermbg=99 guifg=#000000 guibg=#875fff
+hi def InterestingWord8 ctermfg=16 ctermbg=35 guifg=#000000 guibg=#00af5f
+hi def InterestingWord9 ctermfg=16 ctermbg=209 guifg=#000000 guibg=#ff875f
+hi def InterestingWord0 ctermfg=16 ctermbg=39 guifg=#000000 guibg=#00afff
"Steve Losh's highlight function
function HighInterestingWord(n)
@@ -1446,14 +1446,16 @@ augroup ALEMARKDOWN
autocmd!
autocmd FileType markdown let b:ale_linters = {'markdown': ['markdownlint']}
augroup END
+let b:ale_c_flawfinder_executable= "/home/devi/devi/flawfinder/flawfinder-2.0.19/flawfinder.py"
augroup ALEC
autocmd!
- autocmd FileType c let b:ale_linters = {'c': ['clang-tidy']}
+ autocmd FileType c let b:ale_linters = {'c': ['clang-tidy', 'flawfinder']}
autocmd FileType c let b:ale_fixers = {'c': ['clang-format']}
augroup END
+let b:ale_cpp_flawfinder_executable= "/home/devi/devi/flawfinder/flawfinder-2.0.19/flawfinder.py"
augroup ALECPP
autocmd!
- autocmd FileType cpp let b:ale_linters = {'cpp': ['clang-tidy']}
+ autocmd FileType cpp let b:ale_linters = {'cpp': ['clang-tidy', 'flawfinder']}
autocmd FileType cpp let b:ale_fixers = {'cpp': ['clang-format']}
augroup END
augroup ALEHTML
@@ -1657,6 +1659,43 @@ let g:Infofallback = function("s:vvman")
" fugitive
autocmd BufReadPost fugitive://* set bufhidden=delete
+" vim-bookmarks
+let g:bookmark_no_default_key_mappings=1
+nmap <Leader>mm <Plug>BookmarkToggle
+nmap <Leader>mi <Plug>BookmarkAnnotate
+nmap <Leader>ma <Plug>BookmarkShowAll
+nmap <Leader>mj <Plug>BookmarkNext
+nmap <Leader>mk <Plug>BookmarkPrev
+nmap <Leader>mc <Plug>BookmarkClear
+nmap <Leader>mx <Plug>BookmarkClearAll
+nmap <Leader>mkk <Plug>BookmarkMoveUp
+nmap <Leader>mjj <Plug>BookmarkMoveDown
+nmap <Leader>mg <Plug>BookmarkMoveToLine
+" let g:bookmark_save_per_working_dir=1
+let g:bookmark_auto_save=1
+let g:bookmark_location_list=1
+let g:bookmark_manage_per_buffer=1
+highlight BookmarkLine ctermbg=23 ctermfg=0 cterm=bold
+highlight BookmarkAnnotationLine ctermbg=23 ctermfg=0 cterm=bold
+let g:bookmark_highlight_lines=1
+" Finds the Git super-project directory based on the file passed as an argument.
+function! g:BMBufferFileLocation(file)
+ let filename = 'vim-bookmarks'
+ let location = ''
+ if isdirectory(fnamemodify(a:file, ":p:h").'/.git')
+ " Current work dir is git's work tree
+ let location = fnamemodify(a:file, ":p:h").'/.git'
+ else
+ " Look upwards (at parents) for a directory named '.git'
+ let location = finddir('.git', fnamemodify(a:file, ":p:h").'/.;')
+ endif
+ if len(location) > 0
+ return simplify(location.'/.'.filename)
+ else
+ return simplify(fnamemodify(a:file, ":p:h").'/.'.filename)
+ endif
+endfunction
+
"this should be here at the end so nothing else could override it
hi SpecialKey ctermbg=16
hi Pmenu ctermbg=233
diff --git a/db/mongo/build_db.js b/db/mongo/build_db.js
index efabe5a..9711c31 100644
--- a/db/mongo/build_db.js
+++ b/db/mongo/build_db.js
@@ -42,13 +42,36 @@ const mangas = {
"baki-dou": "https://readmanganato.com/manga-cc980259",
"everyone's loose screw'": "https://manganato.com/manga-ga983883",
"kumo desu": "https://readmanganato.com/manga-zd976712",
+ "dungeon sherpa": "https://manganato.com/manga-kt987428",
+ gachiakuta: "https://manganato.com/manga-na990935",
};
db = connect("192.168.1.109:27117/devi");
-// cursor = db.collection.find();
-// while (cursor.hasNext()) {
-// printjson(cursor.next());
-// }
-db.mangas.insertOne(mangas);
-db.animes.insertOne(animes);
+var mangas_entry = db.mangas.find({});
+Object.keys(mangas_entry).forEach((prop) => {
+ console.log(prop);
+});
+while (mangas_entry.hasNext()) {
+ var mangas_id = mangas_entry.next()._id;
+ console.log(mangas_id);
+}
+db.mangas.updateOne(
+ { _id: mangas_id },
+ {
+ $set: {
+ "dungeon sherpa": "https://manganato.com/manga-kt987428",
+ gachiakuta: "https://manganato.com/manga-na990935",
+ },
+ }
+);
+
+var animes_entry = db.animes.find({});
+Object.keys(animes_entry).forEach((prop) => {
+ console.log(prop);
+});
+while (animes_entry.hasNext()) {
+ var animes_id = animes_entry.next()._id;
+ console.log(animes_id);
+}
+db.animes.updateOne({ _id: animes_id }, { $set: {} });
diff --git a/db/postgres/create_db.pgsql b/db/postgres/create_db.pgsql
new file mode 100644
index 0000000..3c52221
--- /dev/null
+++ b/db/postgres/create_db.pgsql
@@ -0,0 +1,2 @@
+SELECT 'CREATE DATABASE irc'
+WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'irc')\gexec
diff --git a/stylus/rfc_bigger.css b/stylus/rfc_bigger.css
new file mode 100644
index 0000000..1e0308e
--- /dev/null
+++ b/stylus/rfc_bigger.css
@@ -0,0 +1,10 @@
+@-moz-document domain("datatracker.ietf.org"), domain("rfc-editor.org") {
+ body {
+ font-size: 15px;
+ }
+
+ #content {
+ width: 100%;
+ max-width: 100%;
+ }
+}
diff --git a/terminaldweller.com/haproxy/haproxy.cfg b/terminaldweller.com/haproxy/haproxy.cfg
index 2063483..5df5050 100644
--- a/terminaldweller.com/haproxy/haproxy.cfg
+++ b/terminaldweller.com/haproxy/haproxy.cfg
@@ -26,7 +26,7 @@ resolvers docker_resolver
resolve_retries 3
timeout retry 1000ms
timeout resolve 1000ms
-
+
#Frontends
frontend http
bind *:80
@@ -39,6 +39,7 @@ frontend http
acl chat-host hdr_sub(host) -i chat.terminaldweller.com
acl searx-host hdr_sub(host) -i searx.terminaldweller.com
acl editor-host hdr_sub(host) -i editor.terminaldweller.com
+ acl editorsave-host hdr_sub(host) -i editorsave.terminaldweller.com
acl mila-api-acl url_beg /mila
acl crypto-api-acl url_beg /crypto
acl http ssl_fc,not
@@ -47,6 +48,8 @@ frontend http
http-request redirect scheme https if http
#use_backend chat-cert-backend if letsencrypt-acl chat-host
use_backend blog-backend-cert if letsencrypt-acl blog-host
+ use_backend blog-backend-cert if letsencrypt-acl editor-host
+ use_backend blog-backend-cert if letsencrypt-acl editorsave-host
use_backend api-crypto-backend-cert if letsencrypt-acl api-host
use_backend api-mila-backend-cert if letsencrypt-acl api-host
use_backend searx-backend-cert if letsencrypt-acl searx-host
@@ -75,6 +78,7 @@ frontend https
acl searx-host-s req.ssl_sni -i searx.terminaldweller.com
acl cargo-host-s req.ssl_sni -i cargo.terminaldweller.com
acl editor-host-s req.ssl_sni -i editor.terminaldweller.com
+ acl editorsave-host-s req.ssl_sni -i editorsave.terminaldweller.com
#Conditions
use_backend mail-backend-s if mail-host-s
#use_backend chat-backend-s if chat-host-s
@@ -85,6 +89,7 @@ frontend https
#use_backend searx-backend-s if searx-host-s
use_backend cargo-backend-s if cargo-host-s
use_backend editor-backend-s if editor-host-s
+ use_backend editorsave-backend-s if editorsave-host-s
frontend jabber5222
bind *:5222
@@ -278,4 +283,9 @@ backend cargo-backend-s
backend editor-backend-s
mode tcp
option ssl-hello-chk
- server cargo-host-s 130.185.121.80:7080
+ server cargo-host-s 192.99.102.52:7080
+
+backend editorsave-backend-s
+ mode tcp
+ option ssl-hello-chk
+ server cargo-host-s 192.99.102.52:9080