Skip to content

Instantly share code, notes, and snippets.

View GabeBenjamin's full-sized avatar

Gabe Benjamin GabeBenjamin

View GitHub Profile
@GabeBenjamin
GabeBenjamin / server.py
Last active September 24, 2023 20:54
Simple python server to run HTML5 Godot 4.0+ games locally
#!/usr/bin/env python3
"""
If you run into the errors for "Cross Origin Isolation" and
"SharedArrayBuffer" when trying to run your exported HTML Godot
game, use this simple server to fix the problem!
Create this file in the same folder as your exported HTML files
and run with `python ./server.py`. Then open a web browser
and go to localhost:8000
"""
@GabeBenjamin
GabeBenjamin / gmailAutoArchive.js
Created May 6, 2017 01:00
Google script to automatically archive emails after x number of days.
// Original author fwed (contact@fwed.fr)
// Modified from
// https://gist.github.com/anonymous/2cca33d376f7f924fdaa67891ad098cc
// https://medium.com/@fw3d/auto-archive-emails-in-gmail-after-2-days-1ebf0e076b1c
function gmailAutoArchive() {
gmailAutoarchiveHelper(1);
gmailAutoarchiveHelper(2);
gmailAutoarchiveHelper(3);
gmailAutoarchiveHelper(7);