Skip to content

Instantly share code, notes, and snippets.

@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: [email protected]
 * 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
@BtbN
BtbN / stdin
Created December 11, 2014 11:27
stdin
diff --git a/configure b/configure
index 9d04ee2..9c3cb42 100755
--- a/configure
+++ b/configure
@@ -1847,6 +1847,7 @@ CONFIG_EXTRA="
blockdsp
bswapdsp
cabac
+ cygwin
dvprofile
@BtbN
BtbN / stdin
Created December 16, 2014 11:34
stdin
Screen 0: minimum 8 x 8, current 3286 x 1200, maximum 32767 x 32767
eDP1 connected 1366x768+0+216 (normal left inverted right x axis y axis) 309mm x 174mm
1366x768 60.00*+
1024x768 60.00
800x600 60.32 56.25
640x480 59.94
DP1 disconnected (normal left inverted right x axis y axis)
DP2 connected primary 1920x1200+1366+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95*+
1600x1200 60.00
@BtbN
BtbN / etcX11xorg.conf.d20-intel.conf
Created December 16, 2014 14:28
/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
Option "SwapbuffersWait" "true"
EndSection