Skip to content

Instantly share code, notes, and snippets.

View uilianries's full-sized avatar

Uilian Ries uilianries

View GitHub Profile
@uilianries
uilianries / gcc7-centos6.log
Created December 17, 2018 14:10
Docker build for CDT GCC7 CentOS x86_64
docker build . -t centostest --no-cache
Sending build context to Docker daemon 5.12kB
Step 1/6 : FROM centos:6
---> 0cbf37812bff
Step 2/6 : LABEL maintainer="Luis Martinez de Bartolome <[email protected]>"
---> Running in 79d7f56cd213
Removing intermediate container 79d7f56cd213
---> ed0941ece349
Step 3/6 : ENV PATH=/opt/rh/rh-python36/root/usr/bin:/opt/rh/devtoolset-7/root/usr/bin:${PATH:+:${PATH}} MANPATH=/opt/rh/rh-python36/root/usr/share/man:/opt/rh/devtoolset-7/root/usr/share/man${MANPATH:+:${MANPATH}} INFOPATH=/opt/rh/devtoolset-7/root/usr/share/info${INFOPATH:+:${INFOPATH}} PCP_DIR=/opt/rh/devtoolset-7/root PERL5LIB=/opt/rh/devtoolset-7/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-7/root/usr/lib/perl5:/opt/rh/devtoolset-7/root//usr/share/perl5/vendor_perl${PERL5LIB:+:${PERL5LIB}} LD_LIBRARY_PATH=/opt/rh/devtoolset-7/root/usr/lib64:/opt/rh/devtoolset-7/root/usr/lib:/opt/rh/devtoolset-7/root/usr/lib64/dyninst:/opt/rh/devtoolset-7/root/usr/lib/dyninst:/opt/rh/rh-python36/roo
@uilianries
uilianries / conanfile.py
Created December 18, 2018 13:06
Civetweb Conan Recipe
#!/usr/bin/env python
# -*- coding: utf-8 -*
import os
from conans import ConanFile, tools, CMake
class civetwebConan(ConanFile):
name = "civetweb"
license = "MIT"
url = "https://github.com/civetweb/civetweb"
@uilianries
uilianries / well_known_types_embed.cc
Created December 28, 2018 12:05
Protobuf 3.5.2 JS Embed
#include "google/protobuf/compiler/js/well_known_types_embed.h"
struct FileToc well_known_types_js[] = {
{"any.js",
"// Protocol Buffers - Google's data interchange format\n"
"// Copyright 2008 Google Inc. All rights reserved.\n"
"// https://developers.google.com/protocol-buffers/\n"
"//\n"
"// Redistribution and use in source and binary forms, with or without\n"
"// modification, are permitted provided that the following conditions are\n"
"// met:\n"
@uilianries
uilianries / msvc_15-x86_64-static.log
Created January 9, 2019 02:18
Conan CAF Windows Error
$ conan create . bincrafters/testing
Exporting package recipe
caf/0.16.3@bincrafters/testing exports: Copied 1 '.md' file: LICENSE.md
caf/0.16.3@bincrafters/testing exports_sources: Copied 1 '.txt' file: CMakeLists.txt
caf/0.16.3@bincrafters/testing exports_sources: Copied 1 '.patch' file: caf.patch
caf/0.16.3@bincrafters/testing: A new conanfile.py version was exported
caf/0.16.3@bincrafters/testing: Folder: C:\Users\uilia\.conan\data\caf\0.16.3\bincrafters\testing\export
caf/0.16.3@bincrafters/testing: Package recipe modified in export, forcing source folder removal
caf/0.16.3@bincrafters/testing: Use the --keep-source, -k option to skip it
caf/0.16.3@bincrafters/testing: Removing 'source' folder, this can take a while for big packages
@uilianries
uilianries / hello_world.py
Created January 28, 2019 14:13
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
${CONTENT_DATA}
@uilianries
uilianries / update-readme.log
Created February 7, 2019 14:53
Output from update-conan-community.py
python update-conan-community.py
2019-02-07 12:23:17,173 - update-conan-community.py - INFO - GET REPOS: https://api.github.com/orgs/conan-community/repos
2019-02-07 12:23:18,225 - update-conan-community.py - INFO - Cloning conan-community/conan-zlib ...
Cloning into '/tmp/tmpqe76_4sf'...
remote: Enumerating objects: 1099, done.
remote: Total 1099 (delta 0), reused 0 (delta 0), pack-reused 1099
Receiving objects: 100% (1099/1099), 334.06 KiB | 435.00 KiB/s, done.
Resolving deltas: 100% (644/644), done.
2019-02-07 12:23:20,714 - update-conan-community.py - INFO - Checkout to branch testing/1.2.8
Branch 'testing/1.2.8' set up to track remote branch 'testing/1.2.8' from 'origin'.
@uilianries
uilianries / bincrfters.log
Created March 21, 2019 21:50
Conan Package Updater - Bincrafters
/home/uilian/Development/github/conan-package-updater/venv/bin/python /home/uilian/Development/github/conan-package-updater/conan_package_updater/conan_package_updater.py bincrafters 0963a11759b5369dc8837848dc57e975b0f69041 --ignore --dry-run
INFO: Logged in the organization 'Bincrafters'
INFO: The organization Bincrafters contains 458 repositories.
INFO: Found Conan repository: conan-libusb
INFO: Found Conan repository: conan-lksctp-tools
INFO: Found Conan repository: conan-yaml-cpp
INFO: Found Conan repository: conan-libtins
INFO: Found Conan repository: conan-azure-iot-sdk-c
INFO: Found Conan repository: conan-azure-uamqp-c
INFO: Found Conan repository: conan-azure-c-shared-utility
@uilianries
uilianries / main.py
Created April 11, 2019 13:12
Delete Bintray file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
import os
from requests.auth import HTTPBasicAuth
bintray_api = "https://api.bintray.com/"
package_id = "0ab9fcf606068d4347207cc29edd400ceccbc944"
channel = "testing"
@uilianries
uilianries / Dockerfile
Created May 14, 2019 15:11
CDT multistage build
FROM ubuntu:bionic AS base
LABEL maintainer="Luis Martinez de Bartolome <[email protected]>"
ENV PYENV_ROOT=/opt/pyenv \
PATH=/opt/pyenv/shims:${PATH} \
CXX=/usr/bin/g++ \
CC=/usr/bin/gcc
RUN dpkg --add-architecture i386 \