Skip to content

Instantly share code, notes, and snippets.

View igor-egorov's full-sized avatar
💮

Igor Egorov igor-egorov

💮
View GitHub Profile
@igor-egorov
igor-egorov / index.md
Created September 22, 2023 13:54
Trial Reset - StartAllBack

Note

I do not condone piracy, if you find StartAllBack to be truly useful and have some money to spare, consider buying a license key: https://www.startisback.com/#buy-tab


Reset Trial

@igor-egorov
igor-egorov / Activate Office 2019 for macOS VoL.md
Created August 24, 2022 06:38 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@igor-egorov
igor-egorov / Libp2p as kagome submodule.md
Last active August 19, 2021 17:12
Build kagome with libp2p as submodule
This file has been truncated, but you can view the full file.
2891cf0ba41ac2ac29cf84151aa2e2f41cbc81eb015
21.07.14 00:09:08.982902 Trace BlockTree EPOCH_DIGEST_IN_BLOCKTREE: BLOCK, slot 265096971, epoch 5, block #12400, hash c8dda623941d903fc7f2ba44e60910ab1cb6bbda51fad37c87dda30ff0b39cb5
21.07.14 00:09:08.983074 Trace BlockTree EPOCH_DIGEST_IN_BLOCKTREE: BLOCK, slot 265096970, epoch 5, block #12399, hash 69821d6f2ada2bb5be0fce2a7a0ff854e5e8fa79164bf2664c4d1896cbe75085
21.07.14 00:09:08.983242 Trace BlockTree EPOCH_DIGEST_IN_BLOCKTREE: BLOCK, slot 265096969, epoch 5, block #12398, hash 97517fb56478eb9c127bba44c44d6f83d4c58c703bb2937536ede0be39f46f26
21.07.14 00:09:08.983411 Trace BlockTree EPOCH_DIGEST_IN_BLOCKTREE: BLOCK, slot 265096968, epoch 5, block #12397, hash 9036c42ba30bbab2ff70b6ac67d67221baa81f045e176f56f705afd3a5ddc876
21.07.14 00:09:08.983580 Trace BlockTree EPOCH_DIGEST_IN_BLOCKTREE: BLOCK, slot 265096967, epoch 5, block #12396, hash 28afeecfbd6d2b195a44807ff1879050e6efd2d2c8a224bf28564b8ed458aeb7
21.07.14 00:09:08.983760 Trac
@igor-egorov
igor-egorov / patch.diff
Last active July 13, 2021 21:23
Kagome connection issue
Index: core/log/configurator.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/core/log/configurator.cpp b/core/log/configurator.cpp
--- a/core/log/configurator.cpp (revision bfeea141e39af5652f1fa26850dbcc6541ca5005)
+++ b/core/log/configurator.cpp (date 1626208757365)
@@ -19,10 +19,11 @@
groups:
@igor-egorov
igor-egorov / config.cmake
Created July 13, 2021 21:21
Tuned log settings for Kagome connection issue
## Template for a custom hunter configuration
# Useful when there is a need for a non-default version or arguments of a dependency,
# or when a project not registered in soramistu-hunter should be added.
#
# hunter_config(
# package-name
# VERSION 0.0.0-package-version
# CMAKE_ARGS "CMAKE_VARIABLE=value"
# )
#

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

# runs on host mac
echo $UID # prints your id
whoami # prints your username
docker pull ubuntu:18.04
cd to/your/cpp/projects/dir
docker run -it --name u18 -v "$PWD":/cpp:delegated --cap-add=SYS_PTRACE ubuntu:18.04
# get into container as root
docker exec -u 0 -it u18 bash
@igor-egorov
igor-egorov / adt_test.go
Created February 7, 2020 12:35
array and multimap gist
package adt_test
import (
"context"
"encoding/hex"
"fmt"
"github.com/filecoin-project/specs-actors/actors/util/adt"
block "github.com/ipfs/go-block-format"
cid "github.com/ipfs/go-cid"
cbor "github.com/ipfs/go-ipld-cbor"
@igor-egorov
igor-egorov / adt_test.go
Created February 6, 2020 15:48
empty cid array
package adt_test
import (
"context"
"encoding/hex"
"fmt"
"github.com/filecoin-project/specs-actors/actors/util/adt"
block "github.com/ipfs/go-block-format"
cid "github.com/ipfs/go-cid"
cbor "github.com/ipfs/go-ipld-cbor"