Skip to content

Instantly share code, notes, and snippets.

View suribes's full-sized avatar

Sergio Uribe suribes

  • Uriberg Invest AS
View GitHub Profile
@suribes
suribes / example.css
Last active August 29, 2015 14:22 — forked from dk8996/example.css
html,body,#wrapper {
width: 100%;
height: 100%;
margin: 0px;
}
.chart {
font-family: Arial, sans-serif;
font-size: 12px;
}
@suribes
suribes / lsa_hack.r
Created May 4, 2016 21:52 — forked from swayson/lsa_hack.r
Analyze Text Similarity with R: Latent Semantic Analysis and Multidimentional Scaling
# script stolen from http://goo.gl/YbQyAQ
# install.packages("tm")
# install.packages("ggplot2")
# install.packages("lsa")
# install.packages("scatterplot3d")
#install.packages("SnowballC")
#if !(require('SnowballC')) then install.packages("SnowballC")
library(tm)
library(ggplot2)
@suribes
suribes / synology_nodejs_install.md
Created December 10, 2017 13:46 — forked from dalekunce/synology_nodejs_install.md
Install nodejs on synology box
@suribes
suribes / chatServer.js
Created January 27, 2018 21:51 — forked from creationix/chatServer.js
A simple TCP based chat server written in node.js
// Load the TCP Library
net = require('net');
// Keep track of the chat clients
var clients = [];
// Start a TCP Server
net.createServer(function (socket) {
// Identify this client
@suribes
suribes / nodejs-tcp-example.js
Created February 21, 2018 09:04 — forked from FullStackForger/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@suribes
suribes / nodejs-tcp-example.js
Created February 21, 2018 09:04 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@suribes
suribes / WireGuard-site-to-site.md
Created October 21, 2022 15:47
Accessing a subnet that is behind a WireGuard client using a site-to-site setup

WireGuard Site-to-Site

Accessing a subnet that is behind a WireGuard client using a site-to-site setup

Problem Summary

We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.

Solution Summary