Skip to content

Instantly share code, notes, and snippets.

View tgmgroup's full-sized avatar

TGM Group tgmgroup

View GitHub Profile
@tgmgroup
tgmgroup / DisplayRSSFeedonPubliiSite.html
Last active February 22, 2026 15:27
Display RSS Feed on Publii Site
<!-- This code will let you show a Recent Posts feed anywhere in your Publii site. Put it in a footer or after each page/post. -->
<br><br>
<hr>
<h2>Recent Posts</h2>
<div id="recent-posts-container" style="display: block !important;">
<p>Loading entries...</p>
</div>
<script>
window.addEventListener('load', function() {
@tgmgroup
tgmgroup / appsScript_ListFilesFolders_ver.2.js
Last active June 15, 2023 03:06 — forked from mesgarpour/appsScript_ListFilesFolders_ver.2.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/*
* Copyright 2017 Mohsen Mesgarpour
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@tgmgroup
tgmgroup / omv-rpi3-wireless-fix-feb-2017
Last active March 22, 2017 02:01
OMV Raspberry Pi 3 Wireless Fix
wget https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.bin
wget https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.txt
sudo mv brcmfmac43430-sdio* /lib/firmware/brcm/
sudo reboot
@tgmgroup
tgmgroup / config
Last active February 21, 2026 13:39
NGINX HTTP to HTTPS and Non-WWW to WWW Redirect Configuration
# NGINX Server Block for:
# Redirect non-www base domain (domain.com) to www (www.domain.com)
# Redirect HTTP to HTTPS SSL (HTTP2)
# Supports multiple domains and subdomains
# STEP 1 - Base HTTPS Block
server {
#Listen only on HTTPS, use STEP 3 to redirect from HTTP
listen 443 ssl http2;