diff --git a/iptables.sh b/iptables.sh new file mode 100644 index 0000000..43e8246 --- /dev/null +++ b/iptables.sh @@ -0,0 +1,7 @@ +iptables -P INPUT ACCEPT +iptables -P FORWARD ACCEPT +iptables -P OUTPUT ACCEPT +iptables -t nat -F +iptables -t mangle -F +iptables -F +iptables -X diff --git a/manjaro.sh b/manjaro.sh index 3a9ffcf..e8b5efb 100755 --- a/manjaro.sh +++ b/manjaro.sh @@ -29,13 +29,13 @@ yay -S python-black python-blackdoc python-pyment python-isort \ eslint_d eslint jq yamlfmt shfmt prettierd # file sync -yay -S syncthings rclone glusterfs +yay -S syncthings rclone sudo systemctl edit syncthing@hjalmarlucius.service # uncomment AmbientCapabilities sudo setcap CAP_CHOWN,CAP_FOWNER=pe /usr/bin/syncthing sudo systemctl enable --now syncthing@hjalmarlucius.service systemctl --user daemon-reload +rclone config # follow instructions and paste creds from https://console.cloud.google.com/apis/credentials systemctl --user enable --now rclone-gdrive.service -sudo systemctl enable --now glusterd # docker incl non-root daemon yay -S docker docker-compose dry-bin nvidia-docker docker-buildx diff --git a/nfs_setup.sh b/nfs_setup.sh new file mode 100644 index 0000000..a07175e --- /dev/null +++ b/nfs_setup.sh @@ -0,0 +1,11 @@ +#!/bin/bash +LOC=$1 +echo "/srv/nfs/state *.hjarl.com(rw,async,no_subtree_check,no_root_squash) 10.0.0.0/16(rw,async,no_subtree_check,no_root_squash)" | sudo bash -c "cat >> /etc/exports" +sudo hostnamectl set-hostname ${LOC} +sudo apt install nfs-kernel-server +sudo systemctl enable --now nfs-kernel-server +sudo mkdir -p /srv/nfs/state +sudo chown -R 1000:1000 /srv/nfs/state +sudo ln -s /srv/nfs/state/ /mnt/${LOC} +sudo chown -R 1000:1000 /mnt/${LOC} +sudo exportfs -a diff --git a/nvim/init.lua b/nvim/init.lua index 68161be..8de1c68 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -811,8 +811,8 @@ vim.g.BASH_Ctrl_l = "off" -- colors vim.cmd("colorscheme minicyan") -- undo -vim.o.undolevels = 1000 -vim.o.undoreload = 10000 +vim.o.undolevels = 100000 +vim.o.undoreload = 100000 -- buffer vim.o.hidden = true -- Enable background buffers diff --git a/zsh/.zshrc b/zsh/.zshrc index 2a6258c..e467afb 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -71,7 +71,7 @@ ZSH_THEME="robbyrussell" # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(zsh-autosuggestions history-substring-search zsh-syntax-highlighting git) +plugins=(zsh-autosuggestions kubectl-autocomplete history-substring-search zsh-syntax-highlighting git) source $ZSH/oh-my-zsh.sh @@ -101,3 +101,5 @@ source $ZSH/oh-my-zsh.sh # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=white' +bindkey "^[[1;3C" forward-word +bindkey "^[[1;3D" backward-word