Skip to content

Instantly share code, notes, and snippets.

@GamerKingFaiz
GamerKingFaiz / plex-cgnat-vpn-guide.md
Last active February 22, 2026 21:12
Bypass CGNAT for Plex via your own Wireguard VPN on a VPS

Bypass CGNAT for Plex via your own Wireguard VPN on a VPS

Intro

I just recently switched to an ISP that uses CGNAT. I needed a way to access my Plex server remotely now that I didn't have a public IPv4 address. Thankfully for most of my other web hosted projects, I was able to use Cloudflare tunnels. But it's ambigous if Cloudflare is okay with you using Tunnels for Plex traffic.

Instead people suggested buying a VPS and hosting a VPN (like Wireguard) to route your traffic through. I couldn't find a complete guide to do this. I struggled for a couple days with trial and error until I finally found a configuration that worked. I wanted to document this for anyone else in the same situation (and future me).

Prerequisites

@mdutt247
mdutt247 / Laravel File Permission
Last active March 11, 2026 05:59
Correct way to set up file and directory permissions in Laravel
# Author: M. Dutt (hello@mditech.net)
# Date: 20/11/2023
# Purpose: Correct file and directory permissions of Laravel project.
#
Change the owner and group of your Laravel project.
sudo chown -R developer:www-data /var/www/project
OR
sudo chown -R developer:apache /var/www/project

Github to Discord Webhook Tutorial

In this tutorial I'll show you how to create a Github webhook that will post updates from your Github account to a channel in Discord. The steps are simple so follow along!

Create a Webhook in a Discord Channel

First you need to create a webhook in a text channel. We're assuming you have both Manage Channel and Manage Webhooks permissions!

  • Go in a channel properties (Alternatively, Server Settings, Webhooks works too)
@uchagani
uchagani / proxmox_usb_passthrough.md
Last active October 9, 2025 10:47
Proxmox USB Passthrough
@Ian-FR
Ian-FR / Fix WSL DNS
Last active December 20, 2024 10:17
WSL as Web Server
# /etc/wsl.conf
[network]
generateResolvConf = false
# /etc/resolv.conf
nameserver 8.8.8.8
nameserver 1.1.1.1
@etiennetremel
etiennetremel / README.md
Last active October 26, 2025 14:09
Simple Wireguard setup as VPN server and multiple clients

Simple WireGuard configuration

1 server, 2 clients

Getting started

Install Wireguard on all machines.

Generate all keys

@Regis011
Regis011 / gist:80b464113be66ae4c643dc9a0cc2ebbc
Created November 15, 2018 15:47
Laravel - search controller function for multiple keywords and long text in form query. Eloquent search query filters.
public function search(Request $request)
{
$res = (new BestCategory)->newQuery();
$q = $request->q;
$q = explode(' ', $q);
$res->where('title', 'like', '%'.$q[0].'%')->orWhere('description', 'like', '%'.$q[0].'%');
@evantoli
evantoli / GitConfigHttpProxy.md
Last active March 12, 2026 09:22
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@ozh
ozh / composer-proxy.md
Created March 24, 2014 23:30
Using Composer behind a proxy

Define the proxy in the CLI :

$ export https_proxy='87.248.188.202:8080'
$ export http_proxy='87.248.188.202:8080'

Check proxy :