Skip to content

Instantly share code, notes, and snippets.

[ 106.246630] i2c i2c-2: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 108.326724] i2c i2c-2: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 110.406799] i2c i2c-2: mv64xxx: I2C bus locked, block: 1, time_left: 0
[EC] Watchdog is timed out, reset power.
U-Boot SPL 2021.10-wb1.7.1-gaf2600c5e5 (Oct 23 2023 - 08:43:42 +0000)
DRAM: 1024 MiB
Trying to boot from MMC2
@maxlapshin
maxlapshin / otel.erl
Last active April 30, 2025 20:48
Opentelemetry tracing
-module(otel).
-include_lib("kernel/include/logger.hrl").
-include_lib("corelib/include/corelib_openapi.hrl").
-export([start_trace/0, start_trace/1]).
-export([end_trace/0]).
-export([start_span/0, start_span/1]).
-export([end_span/0, end_span/1]).
-export([setattrs/1, setname/1]).
-export([get_context/0, set_context/1]).
-module(c2_schema).
-include_lib("kernel/include/logger.hrl").
-export([json2config/1, json2config/2]).
-record(ctx, {
drop_unknown,
fill_defaults,
allow_miss_mandatory,
allow_forced_undefined,
#include <sys/mman.h>
#include <sys/stat.h>
#include <erl_nif.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
static ErlNifResourceType* shmem_resource;
[Unit]
Description=WFB-CLI on tty1
After=getty.target
Conflicts=getty@tty1.service
[Service]
Type=simple
ExecStart=/usr/bin/wfb-cli gs
ExecStop=/bin/kill -HUP ${MAINPID}
\documentclass[a4paper,11pt]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{cmap} % для кодировки шрифтов в pdf
$if(listings)$
\usepackage{listings}
\newcommand{\passthrough}[1]{#1}
$endif$
#!/usr/bin/env escript
%%
%%! -env ERL_LIBS _build/default/lib
main(Args) ->
inet_db:set_lookup([file, dns]),
inet_db:add_host({127,0,0,1}, ["server.l"]),
ensure_epmd_is_working(),
Names = case net_adm:names("server.l") of
{error, _} -> [];
-module(reconfigurable_supervisor_SUITE).
-compile(nowarn_export_all).
-compile(export_all).
% This test is checking modified supervisor code that can do hot reconfiguration of whole tree.
%
% Idea is following: our processes configuration should be dependent from start args.
% If we want to reconfigure process on fly, we should change his start args (just like we do in React.js)
%
-module(type_mapper_SUITE).
-compile(nowarn_export_all).
-compile(nowarn_unused_record).
-compile(nowarn_unused_type).
-compile(export_all).
-compile({parse_transform,type_mapper}).
all() ->
[{group, from_json}].
#!/bin/sh
# How to prepare your linux box to run ARM64 images in docker
# https://codepyre.com/2019/12/arming-yourself/
wget https://download.qemu.org/qemu-4.2.0.tar.xz
tar xf qemu-4.2.0.tar.xz
cd qemu-4.2.0
apt install -y bison flex build-essential libglib2.0-dev libpixman-1-dev qemu binfmt-support
./configure --target-list=aarch64-linux-user,arm-linux-user --static