| Service | SSL | status | Response Type | Allowed methods | Allowed headers |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const path = require('path'); | |
| const nodeFetch = require('node-fetch'); | |
| const Request = nodeFetch.Request; | |
| const Request = nodeFetch.Response; | |
| fetch = function (url, options) { | |
| const request = new Request(url, options); | |
| if (request.url.substring(0, 5) === 'file:') { | |
| return new Promise((resolve, reject) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Copyright (c) 2007-2013, Kaazing Corporation. All rights reserved. | |
| */ | |
| // The Definitive Guide to HTML5 WebSocket | |
| // Example WebSocket server | |
| // See The WebSocket Protocol for the official specification | |
| // http://tools.ietf.org/html/rfc6455 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>Window Size</title> | |
| <style> | |
| html { font-size: 12px; } | |
| div.fixed { position: fixed; left: calc(100% - 100px); top: 20px; } | |
| div.fixed > a { font-size: 14px; } | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| pacat \ | |
| --device=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor \ | |
| --rate=48000 \ | |
| --record | \ | |
| opusenc \ | |
| --expect-loss=25 \ | |
| --max-delay=0 \ | |
| --framesize=2.5 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Multipart = { | |
| parse: (function() { | |
| function Parser(arraybuf, boundary) { | |
| this.array = arraybuf; | |
| this.token = null; | |
| this.current = null; | |
| this.i = 0; | |
| this.boundary = boundary; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| const worker = new Worker("worker.js"); | |
| self.onfetch = e => { | |
| const transform = new TransformStream(); // creates an identity transform | |
| e.respondWith(new Response(transform.readable)); | |
| // Give the worker the writable end. An identity transform stream will just shuffle | |
| // bytes written there into transform.readable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const crypto = require('crypto') | |
| , EventEmitter = require('events') | |
| const badRequest = 'HTTP/1.1 400 Bad Request\r\nConnection: close\r\nContent-Length: 0' | |
| , goodResponse = 'HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade' + | |
| '\r\nSec-WebSocket-Accept: ' | |
| , magic = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" | |
| , two32 = Math.pow(2, 32) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var str = '0x41FC6733'; | |
| function parseFloat(str) { | |
| var float = 0, sign, order, mantiss,exp, | |
| int = 0, multi = 1; | |
| if (/^0x/.exec(str)) { | |
| int = parseInt(str,16); | |
| }else{ | |
| for (var i = str.length -1; i >=0; i -= 1) { | |
| if (str.charCodeAt(i)>255) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| B A S H C H E A T S H E E T | |
| to page output forward (only): command filename | more | |
| to page output forward & back: command filename | less | |
| to print a dataset: lp datasetname (-d printerid) (-o landscape) | |
| USE OF QUOTATION MARKS | |
| echo "$varname" = echo The value of \$varname is \"$varname\" | |
| = echo "The value of \$varname is \"$varname\"." | |
| $fred='Four spaces between these words.' |