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/env python3 | |
from time import time, sleep | |
import boto3 | |
LOG_STREAM = str(int(time())) | |
LOG_GROUP = "CHANGEME" | |
cwl = boto3.client("logs") |
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
class UberQueue<T> | |
{ | |
private IAsyncQueue<T>[] _queues; | |
private Task<T>[] _tasks; | |
public UberQueue(IAsyncQueue<T>[] queues) | |
{ | |
_queues = queues; | |
} |
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 chunks_received = 0, | |
lines_parsed = 0, | |
server_logs = [], | |
started = Date.now(); | |
process.stdin.on( 'readable', function(){ | |
var received_buffer = process.stdin.read(); | |
if( ! received_buffer ) return; | |
chunks_received += 1; |
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
// Lambda S3 Zipper | |
// http://amiantos.net/zip-multiple-files-on-aws-s3/ | |
// | |
// Accepts a bundle of data in the format... | |
// { | |
// "bucket": "your-bucket", | |
// "destination_key": "zips/test.zip", | |
// "files": [ | |
// { | |
// "uri": "...", (options: S3 file key or URL) |
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
notify: | |
if: always() | |
name: Notify | |
needs: | |
- job1 | |
- job2 | |
- job11 | |
- job3 | |
- job4 | |
runs-on: ubuntu-latest |
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
<RoutingRules> | |
<RoutingRule> | |
<Condition> | |
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals> | |
</Condition> | |
<Redirect> | |
<ReplaceKeyPrefixWith>#/</ReplaceKeyPrefixWith> | |
<HttpRedirectCode>302</HttpRedirectCode> | |
</Redirect> | |
</RoutingRule> |
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
emitValue(observer) { | |
let i = 0; | |
const id = setInterval(() => { | |
observer.next(i++) | |
}, 1000) | |
return () => { clearInterval(id) } | |
} | |
createObservable(emitValueFn) { | |
return { |
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
import faker from 'faker'; | |
import _ from 'lodash'; | |
import React, { useCallback, useEffect, useMemo, useState } from 'react'; | |
import { Col, Row } from 'react-bootstrap'; | |
import { AutoSizer, IndexRange, InfiniteLoader, List, ListRowProps } from 'react-virtualized'; | |
import wait from 'waait'; | |
import { SuperProps } from './super-props'; | |
export interface SuperListProps { | |
/** |
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
-- delete a customer | |
-- bcos of constraint | |
-- first turn off foreign_key_checks | |
SET foreign_key_checks = 0; | |
-- dorp customer(s) | |
SET foreign_key_checks = 1; | |
-- INNER JOIN | |
-- fetch details of customers and orders they made | |
-- wont show details of orders of customer 11 |
NewerOlder