Skip to content

Instantly share code, notes, and snippets.

@ericychoi
ericychoi / tcp-proxy.sh
Last active November 26, 2021 13:15
A quick tcp proxy bash script using nc (not my original)
#!/bin/sh -e
# usage: ./tcp-proxy.sh 8080 tweakers.net 80
# script written by
# https://notes.tweakblogs.net/blog/7955/using-netcat-to-build-a-simple-tcp-proxy-in-linux.html
if [ $# != 3 ]
then
echo "usage: $0 <src-port> <dst-host> <dst-port>"
exit 0
@thenoseman
thenoseman / openssl pkcs8 -topk8 -nocrypt -in privkey.pem -out privkey2.pem 76
Created October 1, 2015 09:07
generate a valid pem file for chrome extension packing
openssl genrsa -out privkey.pem 768
openssl pkcs8 -topk8 -nocrypt -in privkey.pem -out privkey2.pem
# METEOR CORE:
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release