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 3, 2024 16:10
ComPort over Network
@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 / _getting_started_eic.md
Last active June 5, 2023 15:23
Get started with EIC simulation and reconstruction (EPIC)

Get started with EIC simulation and reconstruction

The quickest and recommended way to start with EIC software is eic-shell

The EIC environment eic-shell is a singularity/docker container with a curated selection of software components. It is the recommended way to use eicrecon as it already has all of the dependencies compiled with matching version numbers. This requires either singularity or docker to be installed on your local machine. Below are some quick start instructions for using Singularity.

@DraTeots
DraTeots / synology_zerotier.md
Last active March 8, 2023 20:20
Sinology DS211j ZeroTier configuration
@DraTeots
DraTeots / todo---me.md
Last active December 9, 2022 20:57
Белый квас

‎‎​

@DraTeots
DraTeots / vscode_mselect_rcopy.md
Created July 7, 2022 21:16
VSCode Linux middle button column select and right button copy paste

VSCode Linux middle button column select, right button copy paste

What is configured:

  1. Middle mouse button is used for column selection
  2. Right mouse button is used for copy/paste
  3. Context menu is triggered by shift+right button

Visual Studio Code settings:

@DraTeots
DraTeots / servilat.md
Last active February 17, 2022 18:25
Servilat sausage

For 1 kilo:

  • Beef - 25% (250g)
  • Pork(30% fat) - 75%
  • Salt + Nitrite salt - 2%
    • 2.5g for (6.25% of nitrite) cure #1
    • 17.5 for a regular salt
  • Black pepper - 2g
  • Nutmeg - 1g
@DraTeots
DraTeots / readme.md
Last active April 6, 2021 18:47
Run G4E on farms and more

Documentation:

How to run on farms with Spack

ifarm1802.jlab.org> source /cvmfs/eic.opensciencegrid.org/packages/setup-env.csh 
ifarm1802.jlab.org> spack load /ef7rk23
@DraTeots
DraTeots / README.md
Last active November 6, 2020 06:40
EIC Spack hints and tricks
@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;'