Skip to content

Instantly share code, notes, and snippets.

View illera88's full-sized avatar

Alberto Garcia Illera illera88

View GitHub Profile
@illera88
illera88 / test
Last active May 6, 2021 17:58
test
ssh -N -R 1234:localhost:22 anonymous@34.94.248.188
@illera88
illera88 / bridge.cpp
Last active May 11, 2020 13:57
bridge between regular TCP/IP socket and websocketpp connection
/* This is just to get a context on how the bridge.h is used*/
void ws_proxy::on_open(websocketpp::connection_hdl hdl) {
server::connection_ptr con = ws_server.get_con_from_hdl(hdl);
// Pause reading from the websocket until we are ready
auto ec = con->pause_reading();
if (ec) {
throw websocketpp::exception(ec.message());
}
//
// tcpproxy_server.cpp
// ~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2007 Arash Partow (http://www.partow.net)
// URL: http://www.partow.net/programming/tcpproxy/index.html
//
// Distributed under the Boost Software License, Version 1.0.
//
//
@illera88
illera88 / keybase.md
Created September 9, 2019 19:57
keybase.md

Keybase proof

I hereby claim:

  • I am illera88 on github.
  • I am illera88 (https://keybase.io/illera88) on keybase.
  • I have a public key ASADN3M05U4zhU9iyelPSE8aEM633H5Cu8jqymaBsTZDRQo

To claim this, I am signing this object: