Skip to content

Instantly share code, notes, and snippets.

View alex-alex2006hw's full-sized avatar

alex-alex2006hw

View GitHub Profile
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU
#
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
#
ssh -i <your private key.pem> ec2-user@<your public ip address>
#
# On the Mac
@alex-alex2006hw
alex-alex2006hw / log.go
Created November 4, 2018 22:10 — forked from border/log.go
Log Example For Go
package utils
import (
"log"
"os"
)
var (
Log *log.Logger
)
@alex-alex2006hw
alex-alex2006hw / .gitignore
Created August 22, 2018 20:12 — forked from maaku/.gitignore
BIP specifying fast merkle trees, as used in the Merkle branch verification opcodes
*~
#!/bin/bash
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
# Make sure you have all dependencies:
# yum -y install libguestfs-tools virt-install
@alex-alex2006hw
alex-alex2006hw / docker-ovs.md
Created July 24, 2018 06:57 — forked from noteed/docker-ovs.md
Docker - Open vSwitch setup
@alex-alex2006hw
alex-alex2006hw / docker-tinc.md
Created July 24, 2018 06:57 — forked from noteed/docker-tinc.md
Docker - Tinc setup
@alex-alex2006hw
alex-alex2006hw / ai.json
Created July 19, 2018 00:43 — forked from mdamien/ai.json
Google publi
{"A Discriminative Latent Variable Model for Online Clustering":["Rajhans Samdani"],"Affinity Weighted Embedding":["Ron Weiss","Hector Yee"],"Applications of Maximum Entropy Rankers to Problems in Spoken Language Processing":["Richard Sproat","Keith Hall"],"Asynchronous Stochastic Optimization for Sequence Training of Deep Neural\n Networks":["Georg Heigold","Erik McDermott","Vincent Vanhoucke","Andrew Senior","Michiel Bacchiani"],"Autoregressive Product of Multi-frame Predictions Can Improve the Accuracy of\n Hybrid Models":["Vincent Vanhoucke"],"Bayesian Sampling Using Stochastic Gradient Thermostats":[],"Bridging Text and Knowledge with Frames":["Srini Narayanan"],"Cicada: Predictive Guarantees for Cloud Network Bandwidth":[],"Corporate learning at scale: Lessons from a large online course at Google":["Mehryar Mohri","Afshin Rostamizadeh","Umar Syed"],"DaMN – Discriminative and Mutually Nearest: Exploiting Pairwise Category\n Proximity for Video Action Recognition":["Rahul\n Sukthankar"],"Deep Convolutiona
@alex-alex2006hw
alex-alex2006hw / README.md
Created July 4, 2018 05:48 — forked from pcan/README.md
Node.js plain TLS Client & Server, 2-way Cert Auth

Node.js TLS plain TLS sockets

This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.

Prepare certificates

Generate a Certificate Authority:

openssl req -new -x509 -days 9999 -keyout ca-key.pem -out ca-crt.pem
@alex-alex2006hw
alex-alex2006hw / server.js
Created June 30, 2018 07:53 — forked from mrded/server.js
CORS Proxy on node.js + express
var express = require('express'),
request = require('request');
var app = express();
// Forward all requests from /api to http://foo.com/api
app.use('/api', function(req, res) {
req.pipe(request("http://foo.com/api" + req.url)).pipe(res);
});
@alex-alex2006hw
alex-alex2006hw / relay-client.js
Created June 9, 2018 23:02 — forked from joshperry/relay-client.js
TCP Relay System using node.js from http://delog.wordpress.com/2011/07/19/a-tcp-relay-mechanism-with-node-js/ I would like to modify the design to have a control port to request a new socket from the server instead of having it just spin one up preemptively.
var argv = require("optimist").argv;
console.log(argv);
var net = require("net");
function connect() {
var relaySocket = new net.Socket();
var onceOnly = true;
relaySocket.connect(argv.rp, argv.rh, function() {