Skip to content

Instantly share code, notes, and snippets.

View m-wild's full-sized avatar
👻
Boo

Michael Wildman m-wild

👻
Boo
View GitHub Profile
@bszwej
bszwej / echo.js
Last active October 20, 2025 12:56
Pure Node.js echo server, that logs all incoming http requests (method, path, headers, body).
const http = require('http');
const server = http.createServer();
server.on('request', (request, response) => {
let body = [];
request.on('data', (chunk) => {
body.push(chunk);
}).on('end', () => {
body = Buffer.concat(body).toString();
@connorjan
connorjan / rsub.md
Last active January 26, 2026 09:05
Editing Files Remotely via SSH on SublimeText 3

Editing Files Remotely via SSH on SublimeText 3

Sometimes you need to edit a file on a remote server, but using vim/emacs is not very practical, due to lag and speed of screen refresh.

TextMate users have the classic rmate, but it was implemented in Ruby, which may not be available on the remote server.

A better option is to use this version of rmate, implemented in pure Bash. It's a single file, self-contained, and with no external dependencies.

Step by step: