Skip to content

Instantly share code, notes, and snippets.

View DraTeots's full-sized avatar

Dmitry Romanov DraTeots

View GitHub Profile
@DraTeots
DraTeots / ComPort over Network.md
Last active May 9, 2024 13:07
ComPort over Network
@DraTeots
DraTeots / odroid-c1 Ubuntu permanent tft.md
Last active September 8, 2018 01:24
ODROID-C1 Ubuntu TFT

Fixing autostart issues

После всех манипуляций полезно посмотреть, что smartctrl нормально отрабатывает автостарт

sudo systemctl status #  выдает:
● odroid
    State: degraded
     Jobs: 0 queued
   Failed: 2 units
#посмотреть фейлы можно    
sudo systemctl list-units --state=failed
@DraTeots
DraTeots / Message.cs
Last active April 27, 2020 16:59
Проткол обмена по RS485
using System;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using JetBrains.Annotations;
namespace Gyro.Daq
{
/// <summary>
/// The class helps to form and parse LGC protocol messages
/// If full message is ':CMS M0 O0 L0 D167;'
@DraTeots
DraTeots / synology_zerotier.md
Last active March 8, 2023 20:20
Sinology DS211j ZeroTier configuration
@DraTeots
DraTeots / CMakeLists.txt
Last active April 22, 2017 23:03
Building Cern ROOT calorimeters.C
cmake_minimum_required(VERSION 3.1)
project(EveStandAlone)
# You need to tell CMake where to find the ROOT installation. This can be done in a number of ways:
# - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake
# - ROOT built with CMake. Add in CMAKE_PREFIX_PATH the installation prefix for ROOT
list(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS})
#---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
find_package(ROOT REQUIRED COMPONENTS MathCore RIO RGL Hist Tree Net Core Geom Eve)
@DraTeots
DraTeots / HighResolutionTimer.cs
Last active May 16, 2024 18:01
HighResolutionTimer for .NET
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;
namespace HighResolutionTimer
{
@DraTeots
DraTeots / HighResolutionTimerProfile.cs
Last active February 26, 2019 10:17
HighResolutionTimer test and profile
// profiling of HighResolutionTimer implementation
// https://gist.github.com/DraTeots/436019368d32007284f8a12f1ba0f545
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;
@DraTeots
DraTeots / eic_jana_vscode.md
Last active October 29, 2018 03:35
VsCode debug EIC JANA

Why vscode

Debugging capabilities

...

Working example:

Working debugger

@DraTeots
DraTeots / gist:7a4ca00d4c46b4a498c7ac852259bb7e
Last active May 1, 2019 21:32
JLab RHEL7 machines (Npm, vscode, etc)