Skip to content

Instantly share code, notes, and snippets.

View mserranom's full-sized avatar

Miguel Serrano mserranom

  • London
View GitHub Profile
@mserranom
mserranom / jonthebeach.md
Last active May 29, 2018 07:39
jonthebeach.md

jonthebeach

Infrastructure as Code with Terraform

Mitchell Hashimoto - @mitchellh

The problem - history

  • From bash scripts to virtualization empowers automation
  • Virtualization AAS: the cloud
  • Cloud architectures are super powerful but complex -> Capability breeds complexity
  • Terraform (TF) describes the infrastructure as code
@mserranom
mserranom / feature_store_mvp_backend.md
Last active May 31, 2018 16:39
feature_store_mvp_backend.md

Feature Store MVP Backend

Data

Entities and cardinality:

                                                  1 +------------+
                                             +------+ stream_dtc |
+-------------+ 1     n +-------------+ 1    |      +------------+
// THIS IS NOT WORKING!
type A = {
type: "A";
aprop: number;
};
type B = {
type: "B";
otherprops: number;
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFzal/EBEAC+B6PlDj5SPfBK3sFRlramDc3YdeEScQQshAdIaqiCi+FpNkAg
KQ/GjEFxM67PmYHGgLYWyiqEe0ArcmM1peLxhItt7DyLBu4/Z1TEpIHQ15C9fqBa
/0p5FsmMUKe63+PN2XJedDRmnLN1EPvP/h8lIfqdimXWZRLTyOAP6Gn3PKwoW+ei
2Ox47ym71OUHTiW8xbDfa85u3nPqxZA1mQ9oN35jN+kHHM3Ksk2KzU6u7xiNMvo8
+YVYSoljauffKXIpCL+FTKD5LklroeGKwMf5ilyPgPele+oN1h9UQJYVoVqC98/n
RmRz3YP9Ea9Cxd7nIBPATv9YXfJbsJegQ9HeYRFtUag3CF62flYjw7sVlGNun0yN
Tr4/RjGvfvUyXUxKvXuCA7cH2SRR0Hoa2UjSp5nwfWsXm7JJseWLqHQzuN5KNPGf
UWCeSPNCYpBqZas5ked2elARJsA7L5JjykX3tB62oZbnfBU9KpOANO/7ZLXvwxKO
// ---- VERBOSE CALLBACK STACK ----
//
// This is the kind of multiple-logging situations that we're trying to avoid,
// as described in https://github.com/overleaf/web-internal/issues/1917.
//
// In order to remove the excessive logging, we'd need to delete log statements
// from lines 22, 32 and 37 (3 lines in total).
router.get('data', (req, res) => {
getData((err, data) => {
@mserranom
mserranom / node_12_async_stack_trace.js
Last active August 1, 2019 09:53
Async stack traces with Node 12
async function functionOne() {
await new Promise((resolve) => {
setTimeout(() => { resolve(); }, 1000);
});
throw new Error('Error here prints stack');
}
async function functionTwo() {
await functionOne();
}
@mserranom
mserranom / JSONTest.java
Created October 23, 2019 20:41
flink_1.9.0_error
import org.apache.flink.api.common.typeinfo.Types;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.EnvironmentSettings;
import org.apache.flink.table.api.Table;
import org.apache.flink.table.api.java.StreamTableEnvironment;
import org.apache.flink.table.descriptors.FileSystem;
import org.apache.flink.table.descriptors.Json;
import org.apache.flink.table.descriptors.Schema;
import org.junit.Test;
source:
name: ApplicationEvents
type: HTTP # creates an HTTP POST endpoint to ingest events
format: JSON
schema:
- name: type
type: VARCHAR
- name: userId
type: VARCHAR
- name: score
This is LuaTeX, Version 1.10.0 (TeX Live 2019) (format=lualatex 2020.2.7) 18 FEB 2020 10:57
restricted system commands enabled.
**main.tex
(/var/lib/sharelatex/data/compiles/5e3ab31e99a9ce00982819ed-5e3ab30499a9ce00982
819e9/main.tex
LaTeX2e <2020-02-02>
Lua module: luaotfload-main 2020-02-02 3.12 luaotfload entry point
Lua module: luaotfload-init 2020-02-02 3.12 luaotfload submodule / initializatio
n
/* eslint-disable
camelcase,
handle-callback-err,
no-return-assign,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions: