Skip to content

Instantly share code, notes, and snippets.

View uilianries's full-sized avatar

Uilian Ries uilianries

View GitHub Profile
@uilianries
uilianries / Dockerfile
Created June 26, 2017 00:35
Docker file + Conan project + ARM
FROM arm32v7/ubuntu:zesty
MAINTAINER Uilian Ries <uilianries@gmail.com>
RUN rm -rf /var/lib/apt/lists/* \
&& apt-get update \
&& apt-get install -y python-dev sudo build-essential wget git vim libgmp-dev libmpfr-dev libmpc-dev libc6-dev nasm dh-autoreconf valgrind ninja-build libffi-dev libssl-dev \
&& wget https://cmake.org/files/v3.8/cmake-3.8.1.tar.gz --no-check-certificate \
&& tar -xzf cmake-3.8.1.tar.gz \
&& cd cmake-3.8.1 \
@uilianries
uilianries / conan-Boost.Regex.log
Created August 10, 2017 01:34
Result of build Conan Boost.Regex
Boost.Regex/1.64.0@bincrafters/testing: Calling build()
Building the Boost C++ Libraries.
Performing configuration checks
- has_icu builds : no
Component configuration:
@uilianries
uilianries / gitlab_runner
Created September 26, 2017 13:01
Gitlab Runner service for FreeBSD
#!/bin/sh
# PROVIDE: gitlab_runner
# REQUIRE: DAEMON NETWORKING
# BEFORE:
# KEYWORD:
. /etc/rc.subr
name="gitlab_runner"
rcvar="gitlab_runner_enable"
@uilianries
uilianries / file1.txt
Created January 4, 2018 00:42
Created via API
Demo
@uilianries
uilianries / cert-check.py
Created January 4, 2018 21:25
Validate x509 certificate using pyOpenSSL
import sys
import os
from OpenSSL import crypto
def verify_certificate_chain(cert_path, trusted_certs):
# Download the certificate from the url and load the certificate
cert_file = open(cert_path, 'r')
cert_data = cert_file.read()
certificate = crypto.load_certificate(crypto.FILETYPE_PEM, cert_data)
@uilianries
uilianries / serial_port.c
Created January 22, 2018 00:33
Read Serial port on Windows
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
const char reboot = 'R';
const char ack = 6;
HANDLE hSerial = NULL;
DCB dcbSerialParams = {0};
COMMTIMEOUTS timeouts = {0};
@uilianries
uilianries / Dockerfile
Last active February 5, 2018 00:22
CentOS6 + Conan + LDAP Authentication
FROM centos:6
ENV LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64/
ENV PATH=/opt/rh/python27/root/usr/bin:${PATH}
RUN yum update -y \
&& yum install -y centos-release-scl epel-release \
&& yum install -y python27 openssl-devel openldap-devel libgsasl-devel \
&& yum groupinstall -y "Development tools"
@uilianries
uilianries / third_display.sh
Created March 23, 2018 19:55
Configure my third display on Linux
#!/bin/bash
echo "Set VGA display to 1920 x 1080"
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode DP-1-1 "1920x1080_60.00"
@uilianries
uilianries / freetype_shared.log
Created April 6, 2018 01:23
Freetype dumpbin log
Microsoft (R) COFF/PE Dumper Version 14.13.26128.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file C:\Users\Uilian Ries\.conan\data\freetype\2.9.0\bincrafters\stable\package\afb2da1e69d56e2da9ebd6703834b9428ff96a8a\lib\freetype.lib
File Type: LIBRARY
Archive member name at 8: /
5ABFBD52 time/date Sat Mar 31 13:54:42 2018
@uilianries
uilianries / conan_run.log
Created April 9, 2018 01:03
Conan Tulip Log on Linux
This file has been truncated, but you can view the full file.
Tulip/94f76ffee6c@bincrafters/testing: Exporting package recipe
Linter warnings
WARN: Linter. Line 6: Unused import sys
Tulip/94f76ffee6c@bincrafters/testing export: Copied 1 '.txt' files: CMakeLists.txt
Tulip/94f76ffee6c@bincrafters/testing: The stored package has not changed
Tulip/94f76ffee6c@bincrafters/testing: Installing package
Requirements
Qt/5.8.0@osechet/stable from 'osechet'
Tulip/94f76ffee6c@bincrafters/testing from local cache
bzip2/1.0.6@conan/stable from 'conan-center'