Skip to content

Instantly share code, notes, and snippets.

@VladoDemcak
VladoDemcak / prometheus.proto
Created May 13, 2024 10:24 — forked from robskillington/prometheus.proto
Example Python Prometheus remote write client
// Copyright 2016 Prometheus Team
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@VladoDemcak
VladoDemcak / not_working.json
Created February 26, 2020 14:34
contract_subscription_debug_fromBlock
{"currentProvider":{"responseCallbacks":{},"notificationCallbacks":[null,null,null,null,null,null,null,null,null,null],"connection":{"_listeners":{},"_url":"ws://127.0.0.1:7545","_readyState":0,"_extensions":"","_bufferedAmount":0,"_binaryType":"arraybuffer","_client":{"_events":{},"_eventsCount":2,"config":{"maxReceivedFrameSize":1048576,"maxReceivedMessageSize":8388608,"fragmentOutgoingMessages":true,"fragmentationThreshold":16384,"webSocketVersion":13,"assembleFragments":true,"disableNagleAlgorithm":true,"closeTimeout":5000,"tlsOptions":{}},"_req":{"_events":{},"_eventsCount":4,"output":["GET / HTTP/1.1\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Key: 6ngWL+0WSpOi+UWMlPcOzA==\r\nHost: 127.0.0.1:7545\r\n\r\n"],"outputEncodings":["latin1"],"outputCallbacks":[null],"outputSize":153,"writable":true,"_last":true,"chunkedEncoding":false,"shouldKeepAlive":true,"useChunkedEncodingByDefault":false,"sendDate":false,"_removedConnection":false,"_removedContLen":false,"_re
@VladoDemcak
VladoDemcak / SOLUTION_DLDT_prerequisites.sh
Last active November 20, 2019 07:15
This gist is part of Nexteria Openvino workshop organized. Credit: Accenture Bratislava VASP
############ BEGIN ##############
####### WORKSHOP TASK #######
!/opt/intel/openvino/deployment_tools/model_optimizer/install_prerequisites/install_prerequisites.sh
############# END ##############