Skip to content

Instantly share code, notes, and snippets.

View DraTeots's full-sized avatar

Dmitry Romanov DraTeots

View GitHub Profile
@DraTeots
DraTeots / HighResolutionTimer.cs
Last active February 22, 2024 11:38
HighResolutionTimer for .NET
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;
namespace HighResolutionTimer
{
@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 / synology_zerotier.md
Last active March 8, 2023 20:20
Sinology DS211j ZeroTier configuration
@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 / 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 / ComPort over Network.md
Last active April 19, 2024 03:34
ComPort over Network