aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-12-02 10:50:38 +0000
committerterminaldweller <thabogre@gmail.com>2021-12-02 10:50:38 +0000
commit5b044db592cebbe2bdb827daad081d6cba1673c8 (patch)
treea8adb838015f92007c69a16dcb35cdacd8d4759e
parentmore updates (diff)
downloadscripts-5b044db592cebbe2bdb827daad081d6cba1673c8.tar.gz
scripts-5b044db592cebbe2bdb827daad081d6cba1673c8.zip
updates
-rw-r--r--.gdbinit19
-rw-r--r--.vimrc1
-rw-r--r--devi.zsh-theme6
-rw-r--r--terminaldweller.com/haproxy/haproxy.cfg22
-rwxr-xr-xtmux/vcs_info.sh2
-rw-r--r--vagrant/ff/Vagrantfile6
6 files changed, 43 insertions, 13 deletions
diff --git a/.gdbinit b/.gdbinit
index 50bee92..c76d101 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -11,14 +11,14 @@ source /usr/local/lib/python3.8/dist-packages/voltron/entry.py
# load custom scripts
python
import glob
-python_dir = "/home/devi/scripts/gdb/auto-load"
+python_dir = "/home/devi/scripts/gdb"
py_files = glob.glob(f"{python_dir}/*.py")
for py_file in py_files:
gdb.execute(f'source {py_file}')
end
# configs
-set listsize 20
+set listsize 13
set follow-fork-mode child
set detach-on-fork on
# set backtrace-past-main on
@@ -58,3 +58,18 @@ end
define btall
thread apply all backtrace
end
+
+# custom signals
+handle SIGUSR1 nopass
+handle SIGUSR2 nopass
+handle SIGUSR3 nopass
+handle SIGUSR4 nopass
+handle SIGUSR5 nopass
+
+# kill all inferiors before exit
+python
+ import subprocess
+ inferiors = gdb.inferiors()
+ for inferior in inferiors:
+ subprocess.run(["kill","-9",repr(intferior.pid)])
+end
diff --git a/.vimrc b/.vimrc
index dacd951..1f1f624 100644
--- a/.vimrc
+++ b/.vimrc
@@ -201,6 +201,7 @@ Plug 'uiiaoo/java-syntax.vim'
Plug 'tpope/vim-dispatch'
Plug 'kh3phr3n/python-syntax'
Plug 'zaid/vim-rec'
+Plug 'calincru/flex-bison-syntax'
" Plug 'kana/vim-operator-user'
" Plug 'haya14busa/vim-operator-flashy'
" Plug 'terryma/vim-expand-region'
diff --git a/devi.zsh-theme b/devi.zsh-theme
index 38f167f..2616759 100644
--- a/devi.zsh-theme
+++ b/devi.zsh-theme
@@ -86,7 +86,7 @@ zstyle ':vcs_info:*:prompt:*' check-for-changes true
# %R - repository path
# %S - path in the repository
PR_RST="%{${reset_color}%}"
-FMT_BRANCH=" on %{$turquoise%}%s-➜%r-➜%b%u%c%a${PR_RST} "
+FMT_BRANCH=" on %{$turquoise%}%s>%r>%b%u%c%a${PR_RST} "
FMT_ACTION=" performing a %{$limegreen%}%a${PR_RST}"
FMT_UNSTAGED="%{$orange%} ●"
FMT_STAGED="%{$limegreen%} ●"
@@ -131,9 +131,9 @@ steeef_precmd() {
if [[ -n "$PR_GIT_UPDATE" ]] ; then
if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
PR_GIT_UPDATE=1
- FMT_BRANCH="${PM_RST} on %{$turquoise%}%s-➜%r-➜%b%u%c%a%{$hotpink%} ●${PR_RST}"
+ FMT_BRANCH="${PM_RST} on %{$turquoise%}%s>%r>%b%u%c%a%{$hotpink%} ●${PR_RST}"
else
- FMT_BRANCH="${PM_RST} on %{$turquoise%}%s-➜%r-➜%b%u%c%a${PR_RST} "
+ FMT_BRANCH="${PM_RST} on %{$turquoise%}%s>%r>%b%u%c%a${PR_RST} "
fi
zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH}"
diff --git a/terminaldweller.com/haproxy/haproxy.cfg b/terminaldweller.com/haproxy/haproxy.cfg
index 7a11df9..809456d 100644
--- a/terminaldweller.com/haproxy/haproxy.cfg
+++ b/terminaldweller.com/haproxy/haproxy.cfg
@@ -28,7 +28,8 @@ frontend http
#Conditions
#use_backend chat-cert-backend if letsencrypt-acl chat-host
use_backend blog-backend-cert if letsencrypt-acl blog-host
- use_backend api-backend-cert if letsencrypt-acl api-host
+ use_backend api-crypto-backend-cert if letsencrypt-acl api-host crypto-api-acl
+ use_backend api-mila-backend-cert if letsencrypt-acl api-host mila-api-acl
use_backend certbot-backend if letsencrypt-acl !chat-host !blog-host !api-host
use_backend blog-backend if blog-host
use_backend mail-backend if mail-host
@@ -48,11 +49,14 @@ frontend https
#acl chat-host-s req.ssl_sni -i chat.terminaldweller.com
acl blog-host-s req.ssl_sni -i blog.terminaldweller.com
acl api-host-s req.ssl_sni -i api.terminaldweller.com
+ acl mila-api-host-s req.ssl_sni -i mila.terminaldweller.com
#Conditions
use_backend mail-backend-s if mail-host-s
#use_backend chat-backend-s if chat-host-s
use_backend blog-backend-s if blog-host-s
- use_backend api-backend-s if api-host-s
+ #use_backend api-crypto-backend-s if api-host-s crypto-api-acl
+ use_backend api-crypto-backend-s if api-host-s
+ use_backend api-mila-backend-s if mila-api-host-s
frontend jabber5222
bind *:5222
@@ -207,16 +211,26 @@ backend api-backend
mode http
option forwardfor
server api-host 192.99.102.52:8008 check
-backend api-backend-s
+backend api-crypto-backend-s
timeout server 60s
timeout client 60s
mode tcp
option ssl-hello-chk
server api-host 192.99.102.52:8008
-backend api-backend-cert
+backend api-crypto-backend-cert
mode http
option forwardfor
server api-host 192.99.102.52:80
+backend api-mila-backend-s
+ timeout server 60s
+ timeout client 60s
+ mode tcp
+ option ssl-hello-chk
+ server api-mila-host 130.185.121.80:19019
+backend api-mila-backend-cert
+ mode http
+ option forwardfor
+ server api-mila-host 130.185.121.80
backend chat-backend-admin
mode http
diff --git a/tmux/vcs_info.sh b/tmux/vcs_info.sh
index f964104..eb8da75 100755
--- a/tmux/vcs_info.sh
+++ b/tmux/vcs_info.sh
@@ -69,7 +69,7 @@ function repo_info {
}
tmux_session_info=" #S:#I.#P"
-branch_info="#[fg=colour16]$(repo_info)#[fg=colour255 bg=colour39]"$(git_branch_info)
+branch_info="#[fg=colour16]$(repo_info)#[fg=colour0 bg=colour39]"$(git_branch_info)
untracked_info="#[fg=colour255 bg=colour244]"$(git_untracked_info)
deletions_info="#[fg=colour255 bg=colour1]"$(gitdeletions)
additions__info="#[fg=colour255 bg=colour22]"$(gitadditions)
diff --git a/vagrant/ff/Vagrantfile b/vagrant/ff/Vagrantfile
index fe3a560..f9edef6 100644
--- a/vagrant/ff/Vagrantfile
+++ b/vagrant/ff/Vagrantfile
@@ -8,7 +8,7 @@ MEMORY = 6144
Vagrant.require_version '>= 2.2.6'
Vagrant.configure('2') do |config|
- config.vm.box = 'generic/debian10'
+ config.vm.box = 'generic/debian11'
config.vm.box_version = '3.4.2'
config.vm.box_check_update = false
config.vm.synced_folder './', MOUNT_POINT, type: 'nfs'
@@ -26,7 +26,7 @@ Vagrant.configure('2') do |config|
vb.memory = MEMORY.to_s
end
config.vm.provider 'libvirt' do |libvirt|
- libvirt.default_prefix = 'farzad-deb10-pam-'
+ libvirt.default_prefix = 'deb11-ff-'
libvirt.driver = 'kvm'
libvirt.nested = true
libvirt.machine_type = 'pc-q35-3.1'
@@ -49,7 +49,7 @@ Vagrant.configure('2') do |config|
config.vm.provision 'provision', type: 'shell', name: 'provision', privileged: false, reboot: false, inline: <<-SHELL
set -ex
sudo apt update && sudo apt upgrade -y
- sudo apt install -y vim tmux python3 python3-pip curl
+ sudo apt install -y vim tmux python3 python3-pip curl tor torsocks
pip3 install ranger-fm
SHELL
end