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
@moe93
moe93 / unHideReddit.js
Created March 30, 2023 05:29
Remove reddit hidden posts in bulk
// A script to remove reddit hidden posts in bulk
//
// _______ INSTRUCTIONS _______
// ____________________________
// Go to old reddit and navigate to "hidden" tab. Make sure that the greasemonkey script is enabled.
//
// AUTHOR : Mohammad Odeh
// DATE : Mar. 30, 2023
//
@moe93
moe93 / unUpvoteReddit.js
Created March 30, 2023 04:54
Remove reddit upvotes in bulk
// A script to remove reddit upvotes in bulk
//
// _______ INSTRUCTIONS _______
// ____________________________
// Go to old reddit and navigate to "upvoted" tab then run this script in the command panel.
// Once the page refreshes, re-run script.
//
// If you feel like automating this script, have at it, I am too lazy to do it.
//
// AUTHOR : Mohammad Odeh