This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! [ "$(tmux ls | cut -d: -f1)" = "trunk" ]; then | |
tmux new-session -d -s trunk -n branch0 | |
tmux attach-session -t trunk:branch0 | |
elif [[ -z "${TMUX}" ]]; then | |
branch_id="$(tmux ls | cut -d ' ' -f2)" | |
tmux new-window -d -n branch$branch_id -t trunk: | |
tmux attach-session -t trunk:$branch_id | |
else | |
branch_id="$(tmux ls | cut -d ' ' -f2)" | |
tmux new-window -n branch$branch_id -t trunk: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Forgejo local runner building mkdocs and deploying to pages | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'mkdocs.yaml' | |
- 'docs/*' | |
- 'README.md' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$UID/bus" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://deb.devuan.org/merged daedalus main | |
deb http://deb.devuan.org/merged daedalus-updates main | |
deb http://deb.devuan.org/merged daedalus-security main | |
deb-src http://deb.devuan.org/merged daedalus-security main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dnf config-manager --add-repo https://pkgs.tailscale.com/stable/rhel/9/tailscale.repo | |
sudo dnf update | |
sudo dnf install tailscale | |
sudo systemctl enable --now tailscaled | |
sudo tailscale up --ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```nix | |
{ config, pkgs, ... }: | |
{ | |
boot.kernel = { | |
sysctl = { | |
"net.ipv4.conf.all.forwarding" = 1; | |
"net.ipv4.conf.default.rp_filter" = 1; | |
"net.ipv4.conf.WAN.rp_filter" = 1; | |
"net.ipv4.conf.br0.rp_filter" = 0; |