Skip to content

Instantly share code, notes, and snippets.

View InputNeuron's full-sized avatar

Kevin Burton InputNeuron

View GitHub Profile
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
import {createWebapp} from "../../webapp/Webapp";
import * as functions from "firebase-functions";
import express from 'express';
const app = createWebapp();
app.use(require('prerender-node').set('prerenderToken', 'xxxx'));
// https://expressjs.com/en/guide/error-handling.html
// add a better error handler
app.use(function(err: Error, req: express.Request, res: express.Response, next: express.NextFunction) {
import {createWebapp} from "../../webapp/Webapp";
import * as functions from "firebase-functions";
import express from 'express';
const app = createWebapp();
app.use(require('prerender-node').set('prerenderToken', 'xxxxxxxxx'));
// https://expressjs.com/en/guide/error-handling.html
// add a better error handler
app.use(function(err: Error, req: express.Request, res: express.Response, next: express.NextFunction) {
function hasUserGroup() {
return exists(/databases/$(database)/documents/user_group/$(request.auth.uid));
}
function getUserGroup() {
return get(/databases/$(database)/documents/user_group/$(request.auth.uid));
}
function isPermittedGroupWithinSet(allowedGroups, groups) {
function handleResponse(res: functions.Response, next?: NextFunction) {
const url = 'https://firebasestorage.googleapis.com/v0/b/polar-32b0f.appspot.com/o/stash%2F12RMNjmX1PLwqN5fRXzh89Yi7tbL24e5VfCNs4Nq.pdf?alt=media&token=0a2708be-ef63-4791-a338-a3c887b73b19';
const started = Date.now();
let idx: number = 0;
https.get(url, (dataResponse) => {
import {isPresent} from '../Preconditions';
/**
* A simple either implementation similar to Optional that works for either
* left or right but requires exactly one option.
*
* Includes map functions to handle consuming both at once and a mapLeft and
* mapRight functions to either type.
*/
export class Either<L, R> {
... this curl should not work.
curl 'https://firebasestorage.googleapis.com/v0/b/polar-32b0f.appspot.com/o/stash%2F12RMNjmX1PLwqN5fRXzh89Yi7tbL24e5VfCNs4Nq.pdf?alt=media&token=0a2708be-ef63-4791-a338-a3c887b73b19' -H 'Referer: https://localapp.getpolarized.io/pdfviewer/web/index.html?file=https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Fpolar-32b0f.appspot.com%2Fo%2Fstash%252F12RMNjmX1PLwqN5fRXzh89Yi7tbL24e5VfCNs4Nq.pdf%3Falt%3Dmedia%26token%3D0a2708be-ef63-4791-a338-a3c887b73b19&filename=12LbgQGLbr-The+Complete+Guide+To+Statistics+For+The+SaaS+Executive.pdf&zoom=page-width&shared=true&doc=12oorv23zKSXGuy4veGpChyVHcP39Xnt' -H 'Origin: https://localapp.getpolarized.io' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36' -H 'DNT: 1' --compressed
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
<html>
<head>
<style>
#child0 {
position: absolute;
left: 50px;
top: 50px;
}
HIT: 277: Intel Analysis of Speculative Execution Side Channels [pdf]: https://newsroom.intel.com/wp-content/uploads/sites/11/2018/01/Intel-Analysis-of-Speculative-Execution-Side-Channels.pdf
HIT: 221: iOS 11 Security: https://www.apple.com/business/docs/iOS_Security_Guide.pdf
HIT: 188: Stellar Protocol: A Federated Model for Internet-Level Consensus (2016) [pdf]: https://www.stellar.org/papers/stellar-consensus-protocol.pdf
HIT: 173: It Takes Two Neurons to Ride a Bicycle (2004): http://paradise.caltech.edu/~cook/papers/TwoNeurons.pdf
HIT: 168: The Rate of Return on Everything, 1870–2015 [pdf]: https://www.frbsf.org/economic-research/files/wp2017-25.pdf
HIT: 161: The $25B eigenvector (2006) [pdf]: https://www.rose-hulman.edu/~bryan/googleFinalVersionFixed.pdf
HIT: 113: Low-Latency Video Processing Using Thousands of Tiny Threads (2017) [pdf]: https://www.usenix.org/system/files/conference/nsdi17/nsdi17-fouladi.pdf
HIT: 109: The Foundations of Mathematics (2007) [pdf]: https://www.math.wisc.edu/~miller/old/m7
{
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 2,
"analysis": {
"analyzer": {
"keyword_lowercase": {
"tokenizer": "keyword",
"filter": [