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 / curl.sh
Last active January 27, 2021 17:17
JSND
# https://devhints.io/cur
curl -i -H "Accept: application/xml" -H "Content-Type: application/json" -X GET url
## POST
curl -d "param1=value1&param2=value2" http://hostname/resource
curl --form "fileupload=@filename.txt" http://hostname/resource
curl -X POST -d @filename http://hostname/resource
@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');
@itproto
itproto / CodeEditors.md
Last active September 13, 2019 11:15
web-design

1. CodeSandbox

Let's start with http://CodeSandbox.io

  1. Register GitHub account
  2. Goto CodeSandbox Login with your GitHub account File - New Sandbox - React
  3. check files, change text, Ctrl+S to save. Check result.
@itproto
itproto / __index.md
Last active September 8, 2019 18:48
FrontEndDev

FDV Universe

Main Topics

  • HTML

  • CSS

    • css3
    • postcss/less/saas
    • Bootstrap, Material
  • JS

@itproto
itproto / db.json
Last active May 1, 2018 23:56
the description for this gist
{
"labels": [
{"id": "123", "name": "Bank"}
],
"notesMap": {
"file1.md": {"name": "file1.md", "parent": null, "labels": [123]}
}
}
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
@itproto
itproto / [1]automation.md
Last active March 25, 2018 13:16
AUTOMAT

Keywords: Use cases: - page automation - screen capture - net monitoring

1. Headless web-stack

  • [PhantomJS]
    • WebKit(JsCore) (@ariyahidayat)