Skip to content

Instantly share code, notes, and snippets.

@fabarea
fabarea / gist:498f4fee9318e935b3ce1b56af16e751
Created June 15, 2020 07:03
Log failure for ./zcutil/build.sh -j$(nproc) at git hash e159b4e7a40d
n file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/utility:70,
from /usr/include/c++/7/algorithm:60,
from serialize.h:26,
from alert.h:24,
from alert.cpp:21:
/usr/include/c++/7/type_traits: In instantiation of ‘struct std::__not_<std::__or_<std::is_function<boost::variant<boost::shared_ptr<void>, boost::signals2::detail::foreign_void_shared_ptr>&>, std::is_reference<boost::variant<boost::shared_ptr<void>, boost::signals2::detail::foreign_void_shared_ptr>&>, std::is_void<boost::variant<boost::shared_ptr<void>, boost::signals2::detail::foreign_void_shared_ptr>&> > >’:
/usr/include/c++/7/type_traits:600:12: required from ‘struct std::is_object<boost::variant<boost::shared_ptr<void>, boost::signals2::detail::foreign_void_shared_ptr>&>’
/usr/include/c++/7/type_traits:120:12: required from ‘struct std::__or_<std::is_object<boost::variant

Keybase proof

I hereby claim:

  • I am fabarea on github.
  • I am fab1en (https://keybase.io/fab1en) on keybase.
  • I have a public key whose fingerprint is 3FD7 789F D015 8811 EC37 BF20 CB19 DB9B AB63 2A27

To claim this, I am signing this object:

using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace workspace
{
public class MM2Client
{
private static readonly HttpClient Client = new HttpClient();
@fabarea
fabarea / .editorconfig
Created December 9, 2019 09:49
Minimal .editorconfig
# http://editorconfig.org
root = true
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[*]
charset = utf-8
indent_size = 4
@fabarea
fabarea / Docker
Created November 28, 2019 09:14
Docker example PHP
FROM php:7.2
ENV APP_DIR /app
ENV APPLICATION_ENV development
WORKDIR $APP_DIR
VOLUME $APP_DIR
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php'); \
\$sig = file_get_contents('https://composer.github.io/installer.sig'); \
@fabarea
fabarea / Docker
Last active November 28, 2019 06:21
Docker Example Doxygen
FROM ubuntu
MAINTAINER "Fabien Udriot" <fabidule@omic.ch>
# Install doxygen dependencies
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt -y install graphviz \
&& apt -y install doxygen
# NOTE: must use json syntax process is not started in a subshell (and signals are passed correctly)
@fabarea
fabarea / remove_closing_tags.sh
Created February 11, 2014 15:05
Recursively remove the php closing tag `?>` and any following blank lines from the end of any PHP file. Source directories can be configured.
#!/bin/bash
###############################
# Recursively remove the closing php tag `?>` and any following blank lines from the
# end of any PHP file. Source directories can be configured.
#
# Author: Fabien Udriot <fabien.udriot@ecodev.ch>
# Date: 2014-02-11
###############################
@fabarea
fabarea / 01-Problem.md
Last active May 17, 2017 07:27
Problem decoding URL with Neos
if (!empty($GLOBALS['TCA'][$rowMmRefInfo['tablenames']]['ctrl']['languageField'])) {
$fields .= ',sys_language_uid';
}
$existingReferenceForeign = $this->damfalfileRepository->selectOneRowQuery($fields, $rowMmRefInfo['tablenames'], "uid = '" . $rowMmRefInfo['uid_foreign'] . "' and deleted != 1");
if (!empty($GLOBALS['TCA'][$rowMmRefInfo['tablenames']]['ctrl']['languageField'])) {
$existingReferenceForeign["sys_language_uid"] = 0;
}
@fabarea
fabarea / FeatureContext.php
Created July 18, 2013 11:42
Behat - step for browsing all pages of site map
<?php
use Behat\Behat\Context\ClosuredContextInterface,
Behat\Behat\Context\TranslatedContextInterface,
Behat\Behat\Context\BehatContext,
Behat\Behat\Exception\PendingException;
use Behat\Gherkin\Node\PyStringNode,
Behat\Gherkin\Node\TableNode;
use Behat\MinkExtension\Context\MinkContext;