Skip to content

Instantly share code, notes, and snippets.

@IzumiGoshi
IzumiGoshi / serve.go
Created December 5, 2022 23:08 — forked from paulmach/serve.go
Simple Static File Server in Go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main
@IzumiGoshi
IzumiGoshi / old-reddit.js
Created December 29, 2021 03:42
Redirect to old.reddit.com for tampermonkey/greasemonkey
// ==UserScript==
// @name old reddit
// @namespace http://tampermonkey.net/
// @version 0.1
// @description redirect to old.reddit.com
// @author You
// @match https://www.reddit.com/*
// @icon https://www.google.com/s2/favicons?domain=reddit.com
// @grant none
// ==/UserScript==