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
note taking terminology: | |
data array = list = set = range (programming; ie. Ruby) | |
value: normally means number, but practically could be any type you can compare two of with eq, gt, lt operators | |
ordered set: sorted list | |
There are many kinds of Averages in the field of Statistics: | |
- Mean: | |
Arithmetic average. Is the most common, and the one you are used to; ie. [1,2,4] is 2.3~ | |
Remember as: "Mean" is what most people "mean" when they say "average". | |
- Median: |
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
notes on the field of intelligence analysis | |
summary: it appears there is a mature science being applied by police, military, and intelligence organizations | |
and that these tactics, techniques, and procedures have a direct correlation to | |
the emerging modern $190B industry of information security / cyber security ... | |
yet most cybersec/infosec professionals are aware of its existence, certainly not practicing it, much less sworn to it. | |
this is of concern as many groups are learning costly/painful lessings reinventing-the-wheel with regard to ethics. | |
but there is also a race to introduce AI/ML in this space, but so few commercial vendors are aware of the academic body of work | |
on information/intelligence analysis that already exists from the pre-9/11 intelligence community. |
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
mount -v -t btrfs -o recovery,noatime /dev/sda1 /mnt/example |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"net" | |
"os" | |
"io" | |
"os/exec" | |
"time" |
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
Utils.iteratorLoop = () => { | |
const buf = []; | |
let next, done = false; | |
const push = e => { | |
buf.push(e); | |
if (null != next) next(); | |
}; | |
const loop = async function* () { | |
while (true) { | |
yield* buf.splice(0); |
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
// The following is useful when building a | |
// streaming cartesian product (ie. cross join) | |
// e.g., Imagine walking a two-dimensional matrix | |
// having one [column] dimension given and fixed at initialization, | |
// and one dimension of varying, perhaps infinite, lengths [determined by each row]. | |
// A set of nested for...loop would normally accomplish this, | |
// if it weren't for the number of loop statements required varying by invocation. | |
const size = 3; // matrix size variable | |
const len = [3,2,3]; // the length of each list in the matrix (notice they can vary) |
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
(async () => { | |
const net = require('net'); | |
const dns = require('dns'); | |
const fs = require('fs'); | |
const [,,host,portmin,portmax] = process.argv; | |
let a = Date.now(); | |
const ipv4 = await new Promise((ok,fail) => |
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 { Utils } = require('../../../../shared/public/components/utils'); | |
const SharedCache = require('../../../../shared/models/sharedCache'); | |
require('../../../../shared/public/components/flatten'); | |
const uuidv4 = require('uuid/v4'); | |
const makeId = prefix => (prefix||'') + uuidv4().replace(/-/g,''); | |
const sgql = require('../../../../shared/models/sgql'); | |
const _ = require('lodash'); | |
const MODELS = ['User']; |
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 vm = require('vm'); | |
const fp = require('lodash/fp'); | |
const _ = require('lodash'); | |
/** | |
* Successfully mimics jq C implementation in pure Node.JS | |
* by utilizing the Functional Programming (FP) version of Lodash library, which is | |
* critical for jq-like syntax. | |
* | |
* Documentation: https://github.com/lodash/lodash/wiki/FP-Guide |
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
/* | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
NewerOlder