This file contains 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
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaVersion": 11, |
This file contains 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
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . | |
RANDFILE = $ENV::HOME/.rnd |
This file contains 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
problem - Windows: | |
Cert does not work unless both the root and signed certs are added to the Windows trust store. | |
--- | |
certificate create steps: | |
openssl genpkey -algorithm RSA -out share-file-ca.key | |
openssl req -x509 -key share-file-ca.key -days 16384 -out share-file-ca.crt -subj "/CN=share-file-ca/O=share-file" | |
openssl genpkey -algorithm RSA -out share-file.key | |
openssl req -new -key share-file.key -out share-file.csr -subj "/CN=share-file/O=share-file" |
This file contains 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
problem - Ubuntu: | |
Cert does not work at all. When connecting to localhost the browser throws the Privacy Error screen with Chrome error NET::ERR_CERT_AUTHORITY_INVALID | |
--- | |
certificate create steps: | |
openssl genpkey -algorithm RSA -out share-file-ca.key | |
openssl req -x509 -key share-file-ca.key -days 16384 -out share-file-ca.crt -subj "/CN=share-file-ca/O=share-file" | |
openssl genpkey -algorithm RSA -out share-file.key | |
openssl req -new -key share-file.key -out share-file.csr -subj "/CN=share-file/O=share-file" |
This file contains 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
Current Problem: | |
"This certificate has an invalid digital signature." | |
The server certificate is a proper child of the root certificate, and the root certificate is not showing any errors. | |
The server certificate is reporting an invalid signature. | |
Certificate Creation: | |
openssl genpkey -algorithm RSA -out share-file-ca.key -pkeyopt rsa_keygen_bits:4096 | |
openssl req -x509 -new -nodes -key share-file-ca.key -sha256 -days 16384 -out share-file-ca.crt -subj "/CN=share-file-ca/O=share-file" | |
openssl req -new -nodes -out share-file.csr -newkey rsa:4096 -keyout share-file.key -subj "/CN=share-file/O=share-file" |
This file contains 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
```javascript | |
// before compile | |
import agent_hash from "./utilities/agent_hash.js"; | |
import agent_management from "./utilities/agent_management.js"; | |
import agent_status from "./utilities/agent_status.js"; | |
import browser from "./utilities/browser.js"; | |
(function browser_init():void { | |
// code here | |
}()); |
This file contains 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
IF customer = 'A' THEN | |
SET headers = 'header 1', 'header 2', 'header 3', '' | |
SET summary = 'item 1', 'item 2', 'item 3', '' | |
ELSE | |
SET headers = 'header aa', 'header dd', 'header ff', 'header ad' | |
SET summary = data_x, data_y, data_a, data_b | |
END IF | |
SELECT | |
headers |
This file contains 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
node_modules/@types/node/globals.d.ts:72:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'. | |
72 declare var AbortSignal: { | |
~~~~~~~~~~~ | |
node_modules/typescript/lib/lib.dom.d.ts:2071:13 | |
2071 declare var AbortSignal: { | |
~~~~~~~~~~~ | |
'AbortSignal' was also declared here. |
This file contains 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
{"0eb9ffa92736e09e303331a6b071098f6f3266a77e5b07ffce5c7458939085e82dd99399c7ae69f7822ac29b7899bab88736ca87b08790699349b1807322d89e":{"deviceData":{"cpuCores":12,"cpuID":"Intel(R) Xeon(R) CPU E5-1660 0 @ 3.30GHz","platform":"win32","memTotal":68639502336,"osType":"Windows_NT","osVersion":"10.0.19044"},"ipAll":{"IPv4":["192.168.0.145","192.168.56.1"],"IPv6":["2600:1700:70e1:14bf::3"]},"ipSelected":"192.168.56.1","name":"desktop","ports":{"http":443,"ws":444},"shares":{},"status":"active"},"754ba418d2f79a429e40a2969cfd37e1fe53acba499e5fbdcc4a781ece28906649b1f45af6c498b24c20eb8752fc760f120e9c33562b595cbeee02dc336b03c3":{"deviceData":{"cpuCores":1,"cpuID":"Intel(R) Xeon(R) CPU E5-1660 0 @ 3.30GHz","platform":"linux","memTotal":8341577728,"osType":"Linux","osVersion":"5.11.0-40-generic"},"ipAll":{"IPv4":["10.0.2.15","192.168.56.101"],"IPv6":[]},"ipSelected":"192.168.56.101","name":"vm1-device","ports":{"http":443,"ws":444},"shares":{},"status":"offline"}} |
This file contains 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 slicer = function (obj, list) { | |
const keys = Object.keys(obj), | |
output = {}; | |
let oIndex = keys.length, | |
lIndex = list.length | |
do { | |
oIndex = oIndex - 1; | |
do { | |
lIndex = lIndex - 1; | |
if (obj[list[lIndex]] !== undefined) { |