Skip to content

Instantly share code, notes, and snippets.

@wb
wb / ServerAliveInterval.md
Last active December 24, 2015 15:09
Keep SSH Connections Alive

If you are on a Mac, create the file ~/.ssh/config and add the following:

ServerAliveInterval 60

This will not apply to existing SSH connections, but should take effect once a new connection is opened.

@wb
wb / loopy.c
Created July 30, 2012 22:03
Loopy C
#include <stdio.h>
#include <stdlib.h>
void main(int j) {
printf("%d\n", j);
(main + (exit - main)*(j/1000))((j+1) % 1001);
}