Skip to content

Instantly share code, notes, and snippets.

View ferm10n's full-sized avatar

John Sanders ferm10n

View GitHub Profile
@thedevsaddam
thedevsaddam / ReadFile.go
Created January 16, 2017 05:20 — forked from pagoenka/ReadFile.go
Reading file, line by line in Go lang using scanner
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
@kfox
kfox / tcpproxy.js
Created April 5, 2012 20:03
A basic TCP proxy written in node.js
var net = require("net");
process.on("uncaughtException", function(error) {
console.error(error);
});
if (process.argv.length != 5) {
console.log("usage: %s <localport> <remotehost> <remoteport>", process.argv[1]);
process.exit();
}