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
| #include "rabbitmq_client.hpp" | |
| #include <uvw.hpp> | |
| #include <iostream> | |
| RabbitMQClient::RabbitMQClient(const std::string& host, int port, const std::string& user, const std::string& password) | |
| : _host(host), _port(port), _user(user), _password(password), _loop(uvw::Loop::getDefault()) { | |
| _tcp = _loop->resource<uvw::TCPHandle>(); | |
| } | |
| RabbitMQClient::~RabbitMQClient() { |
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
| git submodule add https://github.com/TeiaCare/venvpp.git scripts && | |
| git submodule init && | |
| git submodule update && | |
| git add .gitmodules scripts && | |
| git commit -m "Added venvpp scripts as git submodule" |
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
| #define STB_IMAGE_IMPLEMENTATION | |
| #include "stb_image.h" | |
| #define STB_IMAGE_RESIZE_IMPLEMENTATION | |
| #include "stb_image_resize2.h" | |
| #include <onnxruntime/core/session/onnxruntime_cxx_api.h> | |
| #include <iostream> | |
| #include <vector> |
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
| from ultralytics import YOLO | |
| model = YOLO("yolov8n.pt") | |
| model.export(format="onnx", opset=12, simplify=True, dynamic=False, imgsz=640) |
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
| #!/bin/bash | |
| cd ~/Downloads | |
| sudo apt remove --purge valgrind -y | |
| wget https://sourceware.org/pub/valgrind/valgrind-3.20.0.tar.bz2 | |
| tar xvf valgrind-3.20.0.tar.bz2 | |
| export CC=gcc-12 |
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
| :: Execute only one of the following scripts: | |
| "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\vsdevcmd.bat" -arch amd64 -host_arch amd64 | |
| "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" | |
| set CC=clang | |
| set CXX=clang++ | |
| cmake -D CMAKE_BUILD_TYPE=Debug -G Ninja -B build/clang -S . | |
| cmake --build build/clang | |
| set CC=clang-cl |
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
| docker image ls --format "{{.Size}} {{.ID}} {{.Repository}}:{{.Tag}}" | LANG=en_US sort -h | column -t |
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
| # For global git settings: | |
| git config --global user.name "YOUR_NAME" | |
| git config --global user.email "YOUR_EMAIL" | |
| # For a single repo only: | |
| git config --local user.name "YOUR_NAME" | |
| git config --local user.email "YOUR_EMAIL" |
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
| FROM ubuntu:20.04 | |
| # Setup Build tools | |
| RUN apt-get update -qq && export DEBIAN_FRONTEND=noninteractive && \ | |
| apt-get install -y --no-install-recommends \ | |
| make cmake ninja-build gcc-10 g++-10 \ | |
| python3 python3-pip | |
| ENV CC=gcc-10 | |
| ENV CXX=gcc-10 |