This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
import yaml | |
import ast | |
from conan.api.conan_api import ConanAPI | |
from conan.errors import ConanException | |
fail_counter = 0 | |
sucess_counter = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0.1", | |
"name": "mybuildname", | |
"number": "1", | |
"buildAgent": { | |
"name": "conan", | |
"version": "2.0.4" | |
}, | |
"agent": {}, | |
"started": "2023-04-12T10:51:57.113+0000", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0.1", | |
"name": "mybuildname_aggregated", | |
"number": "1", | |
"buildAgent": { | |
"name": "conan", | |
"version": "2.0.3" | |
}, | |
"agent": {}, | |
"started": "2023-04-10T15:13:51.357+0200", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import math | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser( | |
description='Truncated hash collision calculator') | |
parser.add_argument('--number-packages', type=float, default=1e6) | |
parser.add_argument('--truncated-chars-length', type=float, default=16) | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
def run(cmd): | |
ret = os.system(cmd) | |
if ret != 0: | |
raise Exception("Failed command: %s" % cmd) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get package recipe revision | |
conan search name/version@user/channel --revisions | |
# get package package id | |
conan search name/version@user/channel | |
# get package package revision | |
conan search name/version@user/channel#rrev:pkgid --revisions | |
# inject an specific revision in a project lockfile | |
conan install project_name/version@user/channel --lockfile=lockfile | |
conan install dependency_name/version@user/channel#revision --update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir my_yocto | |
cd my_yocto/ | |
git clone -b thud git://git.yoctoproject.org/poky.git | |
cd poky | |
git clone -b thud git://git.openembedded.org/meta-openembedded | |
git clone -b thud git://git.yoctoproject.org/meta-raspberrypi | |
#git clone https://github.com/conan-io/meta-conan.git | |
. ./oe-init-build-env | |
# edit MACHINE ??= "qemux86" > MACHINE ??= "raspberrypi3" | |
sed -i 's/MACHINE ??= "qemux86"/MACHINE ??= "raspberrypi3"/g' ./conf/local.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <ctype.h> | |
#include <signal.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include "../common/imageLayer.h" | |
#include "opencv2/opencv.hpp" | |
#include "bcm_host.h" |