This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Filter: _ws.col.info != "Command: Poll" && _ws.col.info != "Response: OK" && !(_ws.col.protocol == "USB") | |
-- Define the protocol | |
local my_protocol = Proto("mydevice", "eSSP Protocol") | |
-- Define protocol fields | |
local pf_seq_slave_id = ProtoField.uint8("mydevice.seq_slave_id", "Header (SEQ/Slave ID/Len)") | |
local pf_sequence_flag = ProtoField.bool("mydevice.sequence_flag", "Sequence Flag") | |
local pf_slave_id = ProtoField.uint8("mydevice.slave_id", "Slave ID") | |
local pf_data_length = ProtoField.uint8("mydevice.data_length", "Data Length") | |
local pf_data = ProtoField.bytes("mydevice.data", "Data") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -d @pohoda-pdf-request.xml -X POST -H "STW-Authorization: Basic QDo=" \ | |
-H "Content-Type: application/xml" http://10.0.11.12:3880/xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Nomad | |
Documentation=https://www.nomadproject.io/docs/ | |
Wants=network-online.target | |
After=network-online.target | |
# When using Nomad with Consul it is not necessary to start Consul first. These | |
# lines start Consul before Nomad as an optimization to avoid Nomad logging | |
# that Consul is unavailable at startup. | |
#Wants=consul.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
POST / HTTP/1.1 | |
Host: events.<region>.<domain> | |
x-amz-Date: <Date> | |
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<Signature> | |
User-Agent: <UserAgentString> | |
Content-Type: application/x-amz-json-1.1 | |
Content-Length: <PayloadSizeBytes> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
POST / HTTP/1.1 | |
Host: kinesis.<region>.<domain> | |
x-amz-Date: <Date> | |
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<Signature> | |
User-Agent: <UserAgentString> | |
Content-Type: application/x-amz-json-1.1 | |
Content-Length: <PayloadSizeBytes> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Table structure for table `activity_schema` for mySQL | |
-- | |
CREATE TABLE `activity_schema` ( | |
`activity_id` varchar(255) NOT NULL COMMENT 'Unique identifier for the activity record', | |
`ts` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'Timestamp in UTC for when the activity occurred', | |
`customer` varchar(255) DEFAULT NULL COMMENT 'Globally unique identifier for the customer', | |
`activity` varchar(255) NOT NULL COMMENT 'Name of the activity', | |
`anonymous_customer_id` varchar(255) DEFAULT NULL COMMENT 'Unique identifier for an anonymous customer (ex. ''segment_abfb8a'')', | |
`feature_1` varchar(255) DEFAULT NULL COMMENT 'Activity-specific feature 1', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
POST / HTTP/1.1 | |
Host: events.<region>.<domain> | |
x-amz-Date: <Date> | |
Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=content-type;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<Signature> | |
User-Agent: <UserAgentString> | |
Content-Type: application/x-amz-json-1.1 | |
Content-Length: <PayloadSizeBytes> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'); | |
var HOST = '192.168.9.111'; | |
var PORT = 20008; | |
const STX = 0x02; // Start transaction | |
const ETX = 0x03; // End transaction | |
const SEP = 0x1C; // Field separator | |
var client = new net.Socket(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#standardSQL | |
CREATE TEMPORARY FUNCTION geohashDecode(geohash STRING) | |
RETURNS STRUCT<bbox ARRAY<FLOAT64>, lat FLOAT64, lng FLOAT64> | |
LANGUAGE js AS """ | |
if (!geohash) return null; | |
var base32 = '0123456789bcdefghjkmnpqrstuvwxyz'; | |
geohash = geohash.toLowerCase(); | |
var evenBit = true; | |
var latMin = -90, latMax = 90; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
create (_2:`GeoZipCode` {`businesses_count`:0, `citizens_count`:0, `country_code`:"CZ", `guid`:329527073160, `lat`:50.403267, `lng`:12.769570, `post_name`:"Abertamy", `zip_code`:"36235"}) | |
create (_3:`GeoOkres` {`guid`:292887945539, `lat`:0.000000, `lng`:0.000000, `okres_code`:"3403", `okres_name`:"Karlovy Vary"}) | |
create (_4:`GeoZipCode` {`businesses_count`:0, `citizens_count`:0, `country_code`:"CZ", `guid`:93811663291, `lat`:50.500179, `lng`:16.020939, `post_name`:"Úpice", `zip_code`:"54232"}) | |
create (_5:`GeoOkres` {`guid`:164828119722, `lat`:0.000000, `lng`:0.000000, `okres_code`:"3610", `okres_name`:"Trutnov"}) | |
create (_6:`GeoZipCode` {`businesses_count`:0, `citizens_count`:0, `country_code`:"CZ", `guid`:236641299731, `lat`:49.295494, `lng`:16.658679, `post_name`:"Adamov 1", `zip_code`:"67904"}) | |
create (_7:`GeoOkres` {`guid`:80042635560, `lat`:0.000000, `lng`:0.000000, `okres_code`:"3701", `okres_name`:"Blansko"}) | |
create (_8:`GeoZipCode` {`businesses_count`:0, `citizens_count`:0, `country_code`:"CZ", |
NewerOlder