Skip to content

Instantly share code, notes, and snippets.

View michaelkrog's full-sized avatar
:octocat:

Michael Krog michaelkrog

:octocat:
View GitHub Profile
@michaelkrog
michaelkrog / json
Last active April 20, 2023 11:39
Create assignment
{
"contactId" : "cont-BA7rxxxxxxx",
"contactName" : "Aalborg Zoo ",
"message" : null,
"plan" : {
"serviceWindow": {
"startTime": "08:00:00",
"endTime": "16:00:00"
},
"indicativeDate" : "2023-02-19"
[
{ "message": "hola mundo!", "number": "4551923192", "messageId": "1" }
]
$ docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
fia8k180v3zlerr6zct851eh2 * engine01.codezoo.dk Ready Active Leader
jgv36o8adbhryjiagvvmgxeas engine02.codezoo.dk Ready Active Reachable
kxcxjh9hyt3fxe6xdw40dm1d7 engine03.codezoo.dk Ready Active Reachable
duavpuprjs4ihl3b6tjazzu11 engine04.codezoo.dk Ready Active
jz8h4rhbeil79y6kj7r50tch6 engine05.codezoo.dk Ready Active
$ curl --unix-socket /var/run/docker.sock http://./debug/pprof/goroutine?debug=2
goroutine 14413516 [running]:
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 4.248103ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com"
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 16.155827ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com"
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 3.037558ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com"
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 3.794741ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com"
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 20.463231ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com"
time="2
defaultEntryPoints = ["http", "https"]
[acme]
email = "info@previsto.com"
storage = "acme.json"
entryPoint = "https"
OnHostRule = true
[[acme.domains]]
main = "fyensgade.skveege.com"
# Install base libraries
sudo apt-get install autoconf libtool automake libgudev-1.0-dev libxkbcommon-dev libudev-dev libmtdev-dev libev-dev gobject-introspection libgirepository1.0-dev gtk-doc-tools libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libjson-glib-1.0-0 libatk1.0-dev libinput-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev
# Define some variables !!!
export LIBS="-lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt -lm"
export CPPFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
export CFLAGS="-DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">