Skip to content

Instantly share code, notes, and snippets.

View mserranom's full-sized avatar

Miguel Serrano mserranom

View GitHub Profile
@mserranom
mserranom / main.tex
Created September 19, 2022 09:45
EPS Latex test
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\title{test}
\begin{document}
\maketitle
@mserranom
mserranom / error.log
Created March 18, 2020 10:14
rake deploy:app[staging,tpdsworker,master,latest]
$ rake deploy:app[staging,tpdsworker,master,latest]    master
Looking for builds for tpdsworker/master:462e477 (Merge pull request #28 from overleaf/msm-update-deps)
Deploying tpdsworker:master-462e477_bc93937f-a4eb-44e9-a3ca-b792336535b9 to staging project ol-stag with gcloud tpdsworker
k8 cluster not set
setting tpdsworker app to use ol-gke-02
Secrets tpdsworker-secrets not changed
No change to ./kubernetes/secrets/staging/tpdsworker/redis-labs-tpdsworker-ssl.yaml
Old image: gcr.io/overleaf-ops/tpdsworker:master-2de9781_4acee9a9-8bbb-4124-a45e-029e5f16ed2a -> New image: gcr.io/overleaf-ops/tpdsworker:master-462e477_bc93937f-a4eb-44e9-a3ca-b792336535b9
Notifying slack channel #overleaf-deploys: "miguel: Deploying tpdsworker in staging"
gcloud --project ol-stag deployment-manager deployments update tpdsworker --template ./kubernetes/apps/tpdsworker/tpdsworker.jinja --properties=image:gcr.io/overleaf-ops/tpdsworker:master-462e477_bc93
#!/usr/bin/env bash
# 1. Login into gcr
# 2. Login into quay.io
# Example: deploy_texlive.sh (publish|staging|production) texlive:latest 2019.1 003
OPTION=$1
LOCAL_IMAGE=$2
MAJOR_VERSION=$3
/* 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:
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
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
@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;
@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();
}
// ---- 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) => {
-----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