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
standard_list="url,index-pattern,action,query,alert,graph-workspace,tag,visualization,canvas-element,canvas-workpad,dashboard,search,lens,map,cases,uptime-dynamic-settings,osquery-saved-query,osquery-pack,infrastructure-ui-source,metrics-explorer-view,inventory-view,infrastructure-monitoring-log-view,apm-indices" | |
orig_archive="x-pack/test/functional/es_archives/logstash/example_pipelines" | |
new_archive="x-pack/test/functional/fixtures/kbn_archiver/spaces/disabled_features" | |
test_config="x-pack/test/functional/apps/logstash/config.ts" | |
_types() { | |
local archiveJson=$1 | |
if [[ -f "$archiveJson" ]]; then |
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
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
Cloning into 'my-awesome-proj'... | |
ssh: connect to host github.com port 22: Connection timed out | |
fatal: Could not read from remote repository. | |
$ # This should also timeout | |
$ ssh -T git@github.com | |
ssh: connect to host github.com port 22: Connection timed out | |
$ # but this might work |
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
# add his remote | |
git remote add spalger git@github.com:spalger/kibana.git | |
# verbosely fetch his remote branch info | |
git fetch spalger -v | |
# bring down the branch he was working on, to your local | |
git branch --track pr/95667 spalger/pr/95667 | |
# checkout that branch | |
git checkout pr/95667 |
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
import { pipe } from './utils'; | |
export const Task = (fork) => ({ | |
fork, | |
map: (f) => Task((rej, res) => fork(rej, pipe(f, res))), | |
chain: (f) => Task((rej, res) => fork(rej, (x) => f(x).fork(rej, res))), | |
fold: (f, g) => | |
Task((rej, res) => | |
fork( | |
(x) => f(x).fork(rej, res), |
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
data Parser = WebParser | DbParser | |
class ParseStrategy p where | |
parse :: p -> String -> String | |
instance ParseStrategy Parser where | |
parse WebParser s = "code for parsing web stuff goes here" | |
parse DbParser s = "code for parsing db stuff goes here" | |
fromDB = parse DbParser |
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
import { ToolingLog } from '@kbn/dev-utils'; | |
import { SuperTest } from 'supertest'; | |
// @ts-ignore | |
import * as Either from '../../../../src/dev/code_coverage/ingest_coverage/either'; | |
const id = (x: any = null) => x; | |
const recurseEither = (max: number) => (x: number) => | |
max > x ? Either.right(x) : Either.left(x); |
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
//Task: Transform this simple sorting algorithm into a unique sort. | |
// It should not return any duplicate values in the sorted array. | |
//input: [1,5,2,1] => output: [1,2,5] | |
//input: [4,2,2,3,2,2,2] => output: [2,3,4] | |
const uniqSort = obj => arr => | |
Object | |
.keys(arr.reduce((acc, curr) => { |
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 id = x => x; | |
const asyncForEach = async (xs, i) => { | |
const res = await Promise.resolve(xs[i]) | |
console.log(`\n### const res: \n\t${res}`); | |
i++ | |
i === xs.length ? id() : asyncForEach(xs, i) | |
} | |
I hereby claim:
- I am wayneseymour on github.
- I am lambda_tre (https://keybase.io/lambda_tre) on keybase.
- I have a public key ASDr8uWRf55DgF4MA2Qa4tOOS99Dw-9Fn-BaQEBF2utc2Ao
To claim this, I am signing this object:
NewerOlder