Skip to content

Instantly share code, notes, and snippets.

View mitel's full-sized avatar

mitelone mitel

  • MQ
  • Bucharest, Dubai
View GitHub Profile
@mitel
mitel / designer.html
Created July 10, 2014 08:08
designer
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@mitel
mitel / designer.html
Created July 24, 2014 20:10
designer
<link rel="import" href="../components/polymer/polymer.html">
<link rel="import" href="components/core-component-page/core-component-page.html">
<link rel="import" href="components/paper-input/paper-input.html">
<link rel="import" href="components/google-apis/google-client-api.html">
<polymer-element name="my-element">
<template>
<style>
:host {
ubuntu@ip-10-1-69-172:/var/log/mesos$ cat mesos-master.INFO
Log file created at: 2016/03/13 18:35:28
Running on machine: ip-10-1-69-172
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0313 18:35:28.224686 3244 logging.cpp:188] INFO level logging started!
I0313 18:35:28.225049 3244 main.cpp:230] Build: 2016-03-10 20:30:19 by root
I0313 18:35:28.225112 3244 main.cpp:232] Version: 0.27.2
I0313 18:35:28.225170 3244 main.cpp:235] Git tag: 0.27.2
I0313 18:35:28.225230 3244 main.cpp:239] Git SHA: 3c9ec4a0f34420b7803848af597de00fedefe0e2
I0313 18:35:28.225318 3244 main.cpp:253] Using 'HierarchicalDRF' allocator
ubuntu@ip-10-1-0-54:/var/log/mesos$ sudo mesos-master --work_dir=/var/lib/mesos --quorum=2 --zk=zk://10.1.65.69:2181,10.1.69.179:2181,10.1.0.54:2181/mesos
I0314 05:48:35.780254 2390 main.cpp:230] Build: 2016-03-10 20:30:19 by root
I0314 05:48:35.780388 2390 main.cpp:232] Version: 0.27.2
I0314 05:48:35.780421 2390 main.cpp:235] Git tag: 0.27.2
I0314 05:48:35.780449 2390 main.cpp:239] Git SHA: 3c9ec4a0f34420b7803848af597de00fedefe0e2
I0314 05:48:35.780697 2390 main.cpp:253] Using 'HierarchicalDRF' allocator
I0314 05:48:35.785557 2390 leveldb.cpp:174] Opened db in 4.685594ms
I0314 05:48:35.787794 2390 leveldb.cpp:181] Compacted db in 2.167405ms
I0314 05:48:35.787864 2390 leveldb.cpp:196] Created db iterator in 8081ns
I0314 05:48:35.787900 2390 leveldb.cpp:202] Seeked to beginning of db in 644ns
ubuntu@ip-10-1-65-69:~$ sudo mesos-master --work_dir=/var/lib/mesos --quorum=2 --zk=zk://10.1.65.69:2181,10.1.69.179:2181,10.1.0.54:2181/mesos
I0314 05:48:32.562235 2392 main.cpp:230] Build: 2016-03-10 20:30:19 by root
I0314 05:48:32.562371 2392 main.cpp:232] Version: 0.27.2
I0314 05:48:32.562443 2392 main.cpp:235] Git tag: 0.27.2
I0314 05:48:32.562484 2392 main.cpp:239] Git SHA: 3c9ec4a0f34420b7803848af597de00fedefe0e2
I0314 05:48:32.562568 2392 main.cpp:253] Using 'HierarchicalDRF' allocator
I0314 05:48:32.569102 2392 leveldb.cpp:174] Opened db in 6.080896ms
I0314 05:48:32.572116 2392 leveldb.cpp:181] Compacted db in 2.932061ms
I0314 05:48:32.572197 2392 leveldb.cpp:196] Created db iterator in 8754ns
I0314 05:48:32.572255 2392 leveldb.cpp:202] Seeked to beginning of db in 792ns
ubuntu@ip-10-1-69-179:~$ sudo mesos-master --work_dir=/var/lib/mesos --quorum=2 --zk=zk://10.1.65.69:2181,10.1.69.179:2181,10.1.0.54:2181/mesos
I0314 05:48:31.114145 2408 main.cpp:230] Build: 2016-03-10 20:30:19 by root
I0314 05:48:31.114260 2408 main.cpp:232] Version: 0.27.2
I0314 05:48:31.114300 2408 main.cpp:235] Git tag: 0.27.2
I0314 05:48:31.114327 2408 main.cpp:239] Git SHA: 3c9ec4a0f34420b7803848af597de00fedefe0e2
I0314 05:48:31.114388 2408 main.cpp:253] Using 'HierarchicalDRF' allocator
I0314 05:48:31.150454 2408 leveldb.cpp:174] Opened db in 35.727378ms
I0314 05:48:31.152971 2408 leveldb.cpp:181] Compacted db in 2.434682ms
I0314 05:48:31.153039 2408 leveldb.cpp:196] Created db iterator in 8703ns
I0314 05:48:31.153080 2408 leveldb.cpp:202] Seeked to beginning of db in 698ns
@mitel
mitel / mesos_fw_terraform
Last active March 17, 2016 17:16
mesos firewall rules
resource "aws_security_group" "mesos_master_sg" {
name = "mesos_master_sg"
description = "mesos master SG"
vpc_id = "${aws_vpc.vpc.id}"
}
resource "aws_security_group" "zookeeper_server_sg" {
name = "zookeeper_server_sg"
description = "zookeeper SG"
vpc_id = "${aws_vpc.vpc.id}"
@mitel
mitel / jws.js
Last active April 28, 2019 18:44
JWT signing with b64:false in node.js
const jose = require("node-jose");
const fs = require("fs");
const privateKEY = fs.readFileSync("./newRS256.key", "utf8");
// const publicKEY = fs.readFileSync("./newRS256.key.pub", "utf8");
const keystore = jose.JWK.createKeyStore();
const payload = {
foo: "test"
@mitel
mitel / newRS256.key
Created April 28, 2019 18:23
test private key
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA5i0tS/LQd5A5oBBHVlhurp+zxhoCHRWn6C6nXRV9KZsWNupU
98SSc8TrNuzrGrjys1ri6rg5CtehqB4I5H98Kv3FHNRBFdtGHWx4wArvE0niq1PF
PHgl0QnN0Za7MvIKNeirgEZh2ZI9u7jYcyBUN8P4iDjja9fUde8ezsSeDG8/qdGg
u49m7p0QeybseAbmCxONZF7A+LigUDrx+ZVPyNrcvmKnxqp+9OwtLK+XY+QH/ctj
t837wKcQE8f1KSZCbcDfLsS/aUgQWmrDadc0vrxSfEef7nr3/wYl2BYdFbYH/CjQ
+13ZcrMb4zJnPXNpIZSPEUjn12DS7Id6jJ4e8wIDAQABAoIBADzfbb9MM/2q0tKV
+4fGU18zNSQK9MwkUgeBbxma+ULrlPBpAJeWEPU0+s/H0FV83BK60pAosE1Bwaro
ZomnfXsRKfP53kyddOmLKlP/kEKVo7CTsvHPBJFH+nqXVmKeyDyBj/mYo4AawODI
fdXUkvE8jpnYEa0Po0ydNJSSQwoeUTSZcKkBwkQ8qtMpJJ2b86pketqU9P8oI7v6
@mitel
mitel / payload.json
Last active November 22, 2019 11:43
{
"application_type":"web",
"aud":"https://sandbox-oba.revolut.com",
"exp":1571318745,
"grant_types":[
"authorization_code",
"refresh_token",
"client_credentials"
],
"iat":1571300745,