Skip to content

Instantly share code, notes, and snippets.

View agoldis's full-sized avatar
🎯
Focused

Andrew Goldis agoldis

🎯
Focused
View GitHub Profile
@agoldis
agoldis / README.md
Created February 13, 2017 22:06 — forked from gdamjan/README.md
Setup for an easy to use, simple reverse http tunnels with nginx and ssh. It's that simple there's no authentication at all. The end result, a single ssh command invocation gives you a public url for your web app hosted on your laptop.

What

A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.

Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).

Requirements

@agoldis
agoldis / createSSH.sh
Created February 13, 2017 22:03
nginx proxy for ssh tunnelling
#!/bin/bash
port=ARGV[1]
ssh -R $port:localhost:$port sshproxy
@agoldis
agoldis / ReqRes.js
Created November 28, 2016 21:30
Request/response in Nodejs with postal and promises
import postal from 'postal'
import { v1 } from 'uuid'
export default class ReqRes {
static channel = 'reqres'
static request (topic, payload) {
var replyTo = {
channel: ReqRes.channel,
topic: topic + v1()
}
@agoldis
agoldis / gist:f873cc4962092a4bf808
Created March 29, 2016 10:48
get canonical user id for S3 access via Cloudront
aws cloudfront get-cloud-front-origin-access-identity --id EYH8HMULNGLMQ
@agoldis
agoldis / Install latest GNUstep on Ubuntu 14.04
Last active November 11, 2015 14:31
Install latest GNUstep on Ubuntu 14.04 for compiling ObjC
# Install pre-requesties
```
apt-get install cmake clang gobjc build-essential libblocksruntime-dev libkqueue-dev libpthread-workqueue-dev libxml2-dev libjpeg-dev libtiff-dev libpng12-dev libcups2-dev libfreetype6-dev libcairo2-dev libxt-dev libgl1-mesa-dev
```
# Install `libobjc2`
```bash
curl -O http://download.gna.org/gnustep/libobjc2-1.7.tar.bz2
tar -xvf libobjc2-1.7.tar.bz2