Skip to content

Instantly share code, notes, and snippets.

View jgsogo's full-sized avatar
🦄
New times ahead

Javier G. Sogo jgsogo

🦄
New times ahead
View GitHub Profile
[requires]
middle/test
middle2/test
@jgsogo
jgsogo / docker-compose.yml
Created November 7, 2019 16:32
Jenkins + Artifactory | Docker compose
version: "3.3"
services:
jenkins:
image: visibilityspots/jenkins-docker
networks:
- jenkins_artifactory
ports:
- "49001:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
@jgsogo
jgsogo / multiple-values.patch
Created November 4, 2019 17:59
This is patch that might be used in https://github.com/conan-io/conan/pull/6014. Remove if merged.
diff --git a/conans/client/cache/cache.py b/conans/client/cache/cache.py
index 52a6803f6..eede92fc9 100644
--- a/conans/client/cache/cache.py
+++ b/conans/client/cache/cache.py
@@ -124,7 +124,7 @@ class ClientCache(object):
return join(self.cache_folder, ARTIFACTS_PROPERTIES_FILE)
def read_artifacts_properties(self):
- ret = {}
+ ret = []
@jgsogo
jgsogo / lockfile_buildinfo.py
Last active November 14, 2019 23:35
Parse Conan lockfile and create buildInfo for Artifactory
# coding=utf-8
# Build definition: https://github.com/jfrog/build-info
import argparse
import datetime
import json
import os
import re
import sys
@jgsogo
jgsogo / conan_clion_plugin_CLA.md
Created August 14, 2019 09:17
CLA for Conan CLion plugin

Conan CLion plugin - Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Contribution - any type of work that is submitted to the repository, including any modifications or additions to existing work.
  • Project - Conan CLion plugin (https://github.com/conan-io/conan-clion-plugin)
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with the copyright owner, contributors or maintainers.
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from datetime import datetime
import random
# If modifying these scopes, delete the file token.pickle.
@jgsogo
jgsogo / pck_config_file.py
Created November 28, 2018 15:21
Pkg-Config file parser (and tests)
# coding=utf-8
import os
from collections import OrderedDict
from conans.errors import ConanException
class PkgConfigFile(object):
"""
cmake_minimum_required(VERSION 2.8.6)
project(VIGCOIN)
# Adding conan support
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
set(VERSION "0.1")
# $Format:Packaged from commit %H%nset(COMMIT %h)%nset(REFS "%d")$
@jgsogo
jgsogo / conanfile.py
Last active September 26, 2018 09:01
Conan options truth tables
# Not a valid Conan (http://conan.io) recipe, just some lines of code to test option evaluation.
from conans import ConanFile, CMake, tools
from conans.errors import ConanException
def try_option_boolean(pkg_option, lambda_cmp):
try:
return "{}".format(lambda_cmp(pkg_option))
@jgsogo
jgsogo / mass_mail.py
Last active October 2, 2017 12:30
Send mass mail using GMail
import os
import sys
import logging
from send_mail import gmail_send
log = logging.getLogger(__name__)
_LOG_LEVEL_STRINGS = ['CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG']