Skip to content

Instantly share code, notes, and snippets.

@BtbN
BtbN / stdin
Created September 8, 2014 14:35
stdin
diff --git a/dev-qt/qtwidgets/qtwidgets-5.3.1-r2.ebuild b/dev-qt/qtwidgets/qtwidgets-5.3.1-r2.ebuild
index 208edc0..c080ff7 100644
--- a/dev-qt/qtwidgets/qtwidgets-5.3.1-r2.ebuild
+++ b/dev-qt/qtwidgets/qtwidgets-5.3.1-r2.ebuild
@@ -16,14 +16,14 @@ else
KEYWORDS="~amd64 ~x86"
fi
-IUSE="gles2 +opengl +png"
+IUSE="gles2 +opengl +png xcb"
@BtbN
BtbN / bind-9.10-threadsafe-mysql.patch
Last active August 29, 2015 14:06
bind-9.10-threadsafe-mysql.patch
diff --git a/configure b/configure
index b4f2247..8b0bb26 100755
--- a/configure
+++ b/configure
@@ -20732,6 +20732,13 @@ $as_echo "not found" >&6; }
as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
fi
+if $use_threads
+then
interface=br0
enable-ra
dhcp-range=::1,::ffff,constructor:br0,2h
dhcp-option=option6:dns-server,[fe80::222:4dff:fea5:db05]
@BtbN
BtbN / FindThreads.cmake
Created September 22, 2014 12:15
FindThreads.cmake
#.rst:
# FindThreads
# -----------
#
# This module determines the thread library of the system.
#
# The following import target is created
#
# ::
#
Source #0
State: SUSPENDED
Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
Description: Monitor of Built-in Audio Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: no
Volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
@BtbN
BtbN / vartmpportagedev-libsboost-1.55.0-r2tempbuild.log
Created November 12, 2014 22:38
/var/tmp/portage/dev-libs/boost-1.55.0-r2/temp/build.log
 * Package: dev-libs/boost-1.55.0-r2
 * Repository: gentoo
 * Maintainer: cpp@gentoo.org
 * USE: abi_x86_64 amd64 elibc_glibc kernel_linux nls python python_targets_python2_7 python_targets_python3_3 threads userland_GNU
 * FEATURES: preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking boost_1_55_0.tar.bz2 to /var/tmp/portage/dev-libs/boost-1.55.0-r2/work
>>> Source unpacked in /var/tmp/portage/dev-libs/boost-1.55.0-r2/work
>>> Preparing source in /var/tmp/portage/dev-libs/boost-1.55.0-r2/work/boost_1_55_0 ...
* Applying boost-1.51.0-respect_python-buildid.patch ...
@BtbN
BtbN / FindLibtox.cmake
Created November 21, 2014 23:22
FindLibtox.cmake
#
# This module defines the following variables:
#
# LIBTOX_FOUND - All required components and the core library were found
# LIBTOX_INCLUDE_DIRS - Combined list of all components include dirs
# LIBTOX_LIBRARIES - Combined list of all componenets libraries
#
# For each requested component the following variables are defined:
#
# LIBTOX_<component>_FOUND - The component was found
@BtbN
BtbN / CMakeLists.txt
Created November 21, 2014 23:23
CMakeLists.txt
cmake_minimum_required(VERSION 2.8.12)
project(ToxFind)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(Libtox REQUIRED COMPONENTS core dns encryptsave av)
set(toxfind_SOURCES main.c)
@BtbN
BtbN / etcapache2modules.d70_php.conf
Created November 23, 2014 17:53
/etc/apache2/modules.d/70_php.conf
<IfDefine FASTCGI>
Action php-fpm-apache /fcgi-bin/php5-fpm-apache
Alias /fcgi-bin/php5-fpm-apache /fcgi-bin-php5-fpm-apache
<Location /fcgi-bin/php5-fpm-apache>
Require env REDIRECT_STATUS
</Location>
FastCgiExternalServer /fcgi-bin-php5-fpm-apache -socket /run/php-fpm-apache.sock -pass-header Authorization -idle-timeout 300
</IfDefine>
#include <QtDebug>
extern "C"
{
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
}
#if HAVE_VDPAU