updates
This commit is contained in:
@@ -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
|
||||||
+2
-2
@@ -29,13 +29,13 @@ yay -S python-black python-blackdoc python-pyment python-isort \
|
|||||||
eslint_d eslint jq yamlfmt shfmt prettierd
|
eslint_d eslint jq yamlfmt shfmt prettierd
|
||||||
|
|
||||||
# file sync
|
# file sync
|
||||||
yay -S syncthings rclone glusterfs
|
yay -S syncthings rclone
|
||||||
sudo systemctl edit syncthing@hjalmarlucius.service # uncomment AmbientCapabilities
|
sudo systemctl edit syncthing@hjalmarlucius.service # uncomment AmbientCapabilities
|
||||||
sudo setcap CAP_CHOWN,CAP_FOWNER=pe /usr/bin/syncthing
|
sudo setcap CAP_CHOWN,CAP_FOWNER=pe /usr/bin/syncthing
|
||||||
sudo systemctl enable --now syncthing@hjalmarlucius.service
|
sudo systemctl enable --now syncthing@hjalmarlucius.service
|
||||||
systemctl --user daemon-reload
|
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
|
systemctl --user enable --now rclone-gdrive.service
|
||||||
sudo systemctl enable --now glusterd
|
|
||||||
|
|
||||||
# docker incl non-root daemon
|
# docker incl non-root daemon
|
||||||
yay -S docker docker-compose dry-bin nvidia-docker docker-buildx
|
yay -S docker docker-compose dry-bin nvidia-docker docker-buildx
|
||||||
|
|||||||
@@ -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
|
||||||
+2
-2
@@ -811,8 +811,8 @@ vim.g.BASH_Ctrl_l = "off"
|
|||||||
-- colors
|
-- colors
|
||||||
vim.cmd("colorscheme minicyan")
|
vim.cmd("colorscheme minicyan")
|
||||||
-- undo
|
-- undo
|
||||||
vim.o.undolevels = 1000
|
vim.o.undolevels = 100000
|
||||||
vim.o.undoreload = 10000
|
vim.o.undoreload = 100000
|
||||||
|
|
||||||
-- buffer
|
-- buffer
|
||||||
vim.o.hidden = true -- Enable background buffers
|
vim.o.hidden = true -- Enable background buffers
|
||||||
|
|||||||
+3
-1
@@ -71,7 +71,7 @@ ZSH_THEME="robbyrussell"
|
|||||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# 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
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
@@ -101,3 +101,5 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# alias zshconfig="mate ~/.zshrc"
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=white'
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=white'
|
||||||
|
bindkey "^[[1;3C" forward-word
|
||||||
|
bindkey "^[[1;3D" backward-word
|
||||||
|
|||||||
Reference in New Issue
Block a user