hugo next version
1
2
3
4
# init a go project for hugo
hugo mod init github.com/azusachino/hugo-project
# find your favorite theme, add as a go project dependency
hugo mod get github.com/CaiJimmy/hugo-theme-stack/v3
add import to your config.yaml
1
2
3
4
5
6
module :
imports :
- path : github.com/CaiJimmy/hugo-theme-stack/v3
hugoVersion :
extended : true
min : "0.87.0"
there you go, don’t have to bother to update theme by yourself, it’s all on [[Go]].
syncthing
how to install on debian
1
2
3
4
5
6
7
8
# Add the release PGP keys:
sudo mkdir -p /etc/apt/keyrings
sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
# Add the "stable" channel to your APT sources:
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
apt-get install syncthing
syncthing as a service
1
2
3
4
5
6
7
# new service file
nvim /etc/systemd/system/syncthing.service
# reload & restart
systemctl daemon-reload
systemctl start syncthing
systemctl enable syncthing
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Syncthing - Open Source Continuous File Synchronization
After=network.target
[Service]
User=root
ExecStart=/usr/bin/syncthing -no-browser
Restart=on-failure
RestartSec=10
Environment=STNORESTART=yes
[Install]
WantedBy=multi-user.target
install in debain
1
2
3
4
5
6
7
8
# add repo to apt sources
echo "deb https://apt.syncthing.net/ syncthing stable" | tee /etc/apt/sources.list.d/syncthing.list
# pgp check
curl -s https://syncthing.net/release-key.txt | apt-key add -
# update
apt update
apt install syncthing
linux instructions
1
2
3
4
#!/bin/sh
# kill zombie processes
ZOMBIE_PROCESSES = $( ps -ef | awk '$8=="Z" && $3=="1"' )
echo $ZOMBIE_PROCESSES
lazy-nvim
recommend cli tools
lazygit - go install github.com/jesseduffield/lazygit@latest
fd - cargo install fd-find
ripgrep - cargo install ripgrep
fzf - brew/apt install fzf
layynvim
Licensed under CC BY-NC-SA 4.0