Skip to content

Instantly share code, notes, and snippets.

View RangelReale's full-sized avatar

Rangel Reale RangelReale

  • São Paulo - Brazil
View GitHub Profile
package traces
import (
"context"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
)
@RangelReale
RangelReale / poco_build.txt
Created July 19, 2017 19:33
Poco SHARED and STATIC build comparison with and without "-static" gcc parameter
## NOTES ##
For some reason the "FileChannelTest.testPurgeAge" and "FileTestEE.testFileAttributes2" tests
always fails on my Ubuntu 16.04 in all builds, I'm not sure why, must be something on
my environment.
==========================================================
SAMPLE: POCO SHARED WITH "-static" gcc parameter (default)
==========================================================
$ git diff
@RangelReale
RangelReale / gist:3e6392289d8ba1a52b6e70cdd7e10282
Last active June 22, 2024 23:08
How to compile ffmpeg + x264 using Visual Studio 2015
##### How to compile ffmpeg + x264 using Visual Studio 2015 #####
##### Building this way will make the DLLs compatible with SEH, so there will be no need to use /SAFESEH:NO when compiling your code #####
##### SOURCES:
### https://pracucci.com/compile-ffmpeg-on-windows-with-visual-studio-compiler.html
### https://gist.github.com/sailfish009/8d6761474f87c074703e187a2bc90bbc
### http://roxlu.com/2016/057/compiling-x264-on-windows-with-msvc
* Download "MSYS2 x86_64" from "http://msys2.github.io" and install into "C:\workspace\windows\msys64"
@RangelReale
RangelReale / NestedModelAttribute.php
Created March 3, 2016 17:40
Nested model behavior for Yii2 (pull request 11015)
<?php
namespace app\components;
use yii\base\Object;
use yii\base\InvalidConfigException;
class NestedModelAttribute extends Object
{
/**