sudo apt update && sudo apt install autoconf automake libtool curl make g++ unzip -y
git clone --recursive git@github.com:protocolbuffers/protobuf.git
cd protobuf
git checkout v3.11.4 && git checkout -b release/v3.11.4
./autogen.sh
./configure
make
make check
sudo make install
This file contains 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
# Created by https://www.toptal.com/developers/gitignore/api/visualstudio,visualstudiocode,vim,monodevelop,dotnetcore,aspnetcore,node,unity,rust,jetbrains+all,python,pycharm+all | |
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudio,visualstudiocode,vim,monodevelop,dotnetcore,aspnetcore,node,unity,rust,jetbrains+all,python,pycharm+all | |
### ASPNETCore ### | |
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user |
This file contains 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
[workspace] | |
members = [ | |
"app0", | |
"lib0", | |
] | |
[profile.dev] | |
opt-level = 0 | |
debug = true | |
rpath = false |
This file contains 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
#!/usr/bin/env bash | |
git clean -ffdx && git submodule foreach --recursive git clean -ffdx |
This file contains 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
[target.'cfg(any(unix, windows))'] | |
rustflags = [ | |
"-C", "lto=fat", | |
"-C", "link-args=-s", | |
"--emit=asm", | |
] | |
[target.'cfg(target_os = macos)'] | |
rustflags = [ | |
"-C", "link-arg=-undefined", |
This file contains 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
#!/usr/bin/env python3.7 | |
import signal | |
import sys | |
import json | |
import logging | |
import time | |
import multiprocessing as mp | |
import multiprocessing.connection as mp_conn |
This file contains 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
FROM ubuntu | |
RUN apt-get install ... | |
# grab gosu for easy step-down from root | |
ENV GOSU_VERSION 1.10 | |
RUN set -x \ | |
&& curl -sSLo /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \ | |
&& curl -sSLo /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \ | |
&& export GNUPGHOME="$(mktemp -d)" \ |
This file contains 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
#include "date.h" | |
#include <chrono> | |
#include <ctime> | |
#include <iostream> | |
#include <sstream> | |
typedef struct _timestamp_struct { | |
int64_t unixtime_ns; | |
std::string rfc3339; | |
} TimestampData; |
This file contains 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
/*! | |
\file matching_engine.cpp | |
\brief Matching engine example | |
\author Ivan Shynkarenka | |
\date 16.08.2017 | |
\copyright MIT License | |
*/ | |
#include "trader/matching/market_manager.h" |
NewerOlder