Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
ryanflorence / static_server.js
Last active June 10, 2024 02:37
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
@dvtate
dvtate / HotCorner.ahk
Last active December 8, 2023 16:01
Add a hot-corner to access task view in windows 10
;The Problem:
; I love the hotcorner(s) in GNOME & KDE, and kept finding myself
; trying to use them since I've been forced to use windows 10 (winshit).
;My solution:
; download & install: https://autohotkey.com/
; save this script with the extension ".ahk"
; click on the script to start it and/or set it to launch automatically.
#Persistent