Skip to content

Instantly share code, notes, and snippets.

View noflcl's full-sized avatar

Stephen McNamara noflcl

View GitHub Profile
@noflcl
noflcl / tmux-launch.sh
Created November 3, 2024 14:47
tmux launch new windows under "trunk" session starting at branch0
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:
@noflcl
noflcl / mkdocs-runner.yaml
Last active November 3, 2024 14:45
Builds and pushes signed commits - base iamge is Ubuntu 22.04 for build env
name: Forgejo local runner building mkdocs and deploying to pages
on:
push:
branches:
- 'main'
paths:
- 'mkdocs.yaml'
- 'docs/*'
- 'README.md'
@noflcl
noflcl / systemdBusEnv
Created October 14, 2024 14:44
Rocky no desktop install is missing user environment variable for local systemd control
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$UID/bus"
@noflcl
noflcl / devuan.sources.list
Created October 12, 2024 15:37
devuan apt sources list
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
@noflcl
noflcl / tailscaleRocky.sh
Last active October 11, 2024 12:49
tailscale install for Rocky Linux
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
@noflcl
noflcl / networking.nix
Created September 20, 2024 10:59
nixos router
```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;