Skip to content

Instantly share code, notes, and snippets.

View go2tom42's full-sized avatar

tom42 go2tom42

  • Earth
View GitHub Profile
@theprojectsomething
theprojectsomething / An Ubuntu WiFi Secure Captive Portal.md
Last active July 29, 2024 05:22
Guide: An Ubuntu WiFi Secure Captive Portal: Network Manager / DNSMasq / HA Proxy / Let's Encrypt

An Ubuntu WiFi Secure Captive Portal

Improvements, suggestions & fixes are welcome!

Captive portals can be a pain. Here's an opinionated and no-doubt entirely imperfect guide to setting one up for a WiFi access point on Ubuntu (tested on 20+), utilising Network Manager, DNSMasq, HA Proxy and (optionally) Let's Encrypt for a secure, locally hosted landing page.

_Note: This setup was originally designed for an offline WLAN, providing access to a small number of locally hosted domains ... think the WiFi media portal on a flight or boat. If you are looking to provide internet access behind a captive portal then this guide won't get you all the way there. That said, many routers have this capability built in, as do any number of open source router firmware solutions. So you probably don't need to roll your own. If you'd like to try anyway, Ha Proxy Stick Tables would probably come in handy. Very happy to update the guide with any p

@pascaldulieu
pascaldulieu / LetsEncrypt reverse proxy with docker.md
Last active December 3, 2019 00:33
a derps guide to setting up a reverse proxy with certs in docker for derps

This guide is designed for people like myself who seem to find all guides on LetsEncrypt reverse proxies to be like this or any of this

This will cover portainer setup and eventually standarderd CLI only setup

With Portainer

  1. Get onto Linux system
  2. Install docker-ce
  3. Install Portainer
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active July 29, 2024 05:16
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@nohamelin
nohamelin / xseei.export-all.js
Last active October 28, 2022 10:45
Export your search engines in only-WebExtensions Mozilla Firefox builds
// -sp-context: browser
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*
* xseei.export-all.js
* ===================
* code-revision 3
* https://gist.github.com/nohamelin/6af8907ca2dd90a9c870629c396c9521
@rahilwazir
rahilwazir / vmdk_vhdx.md
Last active July 22, 2024 19:25
Convert VMWare to Hyper-V (vmdk to vhdx)
@centminmod
centminmod / rclone.bat
Created October 29, 2016 02:55
Install rclone in Windows
REM 1. Create C:\Program Files\rclone
REM 2. Download rclone http://rclone.org/downloads/ and unzip it to C:\Program Files\rclone
REM 3. Save this file as C:\Program Files\rclone\rclone.bat
REM 3. Set the blank variables seen below.
REM 3.1 Set RCLONE_ROOT_FOLDER_NAME to the name of the folder in ACD where you want all backups to go. "Backup".
REM 3.2 Set RCLONE_FOLDER_NAME to the name of this machine's backup.
REM 4. Create C:\Program Files\rclone\sources.txt file with a line for each source. C:\Users\admin\Desktop;Desktop
REM 4.1 Before the ";" is the source path. After the ";" is the destination in ACD.
REM 5. Create C:\Program Files\rclone\excludes.txt file with a line for each globally excluded pattern.
REM 5.1 "Photo Booth Library"
@brianonn
brianonn / convertWebVTT.ps1
Last active November 7, 2021 01:58
Windows PowerShell script to Convert WebVTT to SRT
# convertWebVTT
#
# This is a very basic and incomplete WebVTT to SRT converter.
# It does not parse or understand the WebVTT elements NOTE, STYLE, REGION or any C-style comments in the WebVTT file.
#
# Save this file to your desktop as ConvertWebVTT.ps1
#
# Then create a shortcut for powershell to execute this file (change your username)
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -noexit -ExecutionPolicy ByPass -file C:\Users\brian\Desktop\ConvertWebVTT.ps1