Skip to content

Instantly share code, notes, and snippets.

View moe93's full-sized avatar

Mohammad Odeh moe93

View GitHub Profile
@moe93
moe93 / Smart HTTP Git and CGIT on Nginx server with Auth on push
Created November 1, 2025 11:30 — forked from rtkay123/Smart HTTP Git and CGIT on Nginx server with Auth on push
Installing Git and Cgit to Debian NGINX server (with smart http and authentication on push)
# Just some notes on enabling smart http with nginx as well as authentication on push for repos
# install git, cgit and apache2-utils (for authentication)
apt install git cgit apache2-utils fcgiwrap
# create a git user
useradd -m -d /srv/git git
su git
cd
mkdir .ssh && chmod 700 .ssh
touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys
@moe93
moe93 / disable-ipv6-openwrt.md
Created December 19, 2023 05:20 — forked from nabakdev/disable-ipv6-openwrt.md
disable IPV6 openwrt
uci set 'network.lan.ipv6=0'
uci set 'network.wan.ipv6=0'
uci set 'dhcp.lan.dhcpv6=disabled'

# Disable RA and DHCPv6 so no IPv6 IPs are handed out
uci -q delete dhcp.lan.dhcpv6
uci -q delete dhcp.lan.ra

# Disable the LAN delegation