Skip to content

Instantly share code, notes, and snippets.

View itproto's full-sized avatar

OK@itproto itproto

  • itproto
  • United Kingdom
View GitHub Profile
@itproto
itproto / http-benchmark.md
Created January 25, 2021 22:03 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@itproto
itproto / curl.md
Created January 22, 2021 15:42 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@itproto
itproto / nodejs-cheatsheet.js
Created January 17, 2021 09:04 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@itproto
itproto / nodejs-tcp-example.js
Created January 16, 2021 17:59 — 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');
class NameTag extends HTMLElement {
// Assign a private variable to store the name property
constructor() {
super();
this._name = '';
this._rendered = false;
}
// Static method that returns an array with the name of