Skip to content

Instantly share code, notes, and snippets.

View ndelitski's full-sized avatar

Nick Delitski ndelitski

  • Lisbon, Portugal
  • 10:53 (UTC -12:00)
View GitHub Profile
@ndelitski
ndelitski / streamtest_client.js
Created July 23, 2017 23:38 — forked from mwagstaff/streamtest_client.js
Streaming data performance test client harness (Node.js, Socket.io)
var URI = process.argv[2],
TEST_ID = new Date().getTime(),
SOCKET_INTERVAL = 0,
MAX_SOCKETS = 5000,
WARM_UP_SOCKETS = 10,
MESSAGE_PADDING_SIZE = 2000,
MESSAGE_SIZE_BASE = 41,
ADD_RESULT_DOMAIN = "lonlx10557.nomura.com",
ADD_RESULT_PORT = 80,
ADD_RESULT_PATH = "/streamtest/add_result.php",
@ndelitski
ndelitski / generate_docker_cert.sh
Created November 13, 2015 00:27 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@ndelitski
ndelitski / request.sh
Created October 9, 2015 11:01 — forked from nuxlli/unix_socket_request.sh
Examples of http request (in unix domain socket) with bash and [nc|socat]
#!/bin/bash
# References
# http://www.computerhope.com/unix/nc.htm#03
# https://github.com/daniloegea/netcat
# http://unix.stackexchange.com/questions/26715/how-can-i-communicate-with-a-unix-domain-socket-via-the-shell-on-debian-squeeze
# http://unix.stackexchange.com/questions/33924/write-inside-a-socket-open-by-another-process-in-linux/33982#33982
# http://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip
# http://www.dest-unreach.org/socat/
# http://stuff.mit.edu/afs/sipb/machine/penguin-lust/src/socat-1.7.1.2/EXAMPLES