Skip to content

Instantly share code, notes, and snippets.

diff --git a/recipes/pdal/all/test_package/CMakeLists.txt b/recipes/pdal/all/test_package/CMakeLists.txt
index 4c9dd89c..f309a0f1 100644
--- a/recipes/pdal/all/test_package/CMakeLists.txt
+++ b/recipes/pdal/all/test_package/CMakeLists.txt
@@ -4,8 +4,8 @@ project(test_package)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
-find_package(PDAL 2.0.0 REQUIRED CONFIG)
+find_package(PDAL 2.0.0 REQUIRED)
@theirix
theirix / pre-receive.sh
Last active January 11, 2020 22:53
pre-receive git hook for checking bad unicode
#!/bin/bash
# pre-receive hook to check damaged unicode encoding of received text files
# Wonderful ASCII art is borrowed from the phabricator.com project and licensed by the Apache 2.0 license
RESULT=0
while read oldrev newrev refname
do
OLDIFS=$IFS
IFS=$'\n'
@theirix
theirix / keybase.md
Created September 15, 2019 11:50
keybase.md

Keybase proof

I hereby claim:

  • I am theirix on github.
  • I am theirix (https://keybase.io/theirix) on keybase.
  • I have a public key ASDjHu1b7wgQDPmcbYUE_YB1DjRoFveJ4FDJgkA_3rW8Ywo

To claim this, I am signing this object:

@theirix
theirix / pstack-osx.sh
Created April 7, 2015 08:39
pstack for osx
#!/bin/sh
#
# Script prints gdb stack of the process with a specified pid
if [ -z $1 ]; then
echo "Usage: $0 pid"
exit 1
fi
PID=$1
@theirix
theirix / rowltunes-hidemenuicon.patch
Created August 26, 2012 10:02
GrowlTunes without menu icon
diff -r 234c34a9d09b Extras/GrowlTunes/GrowlTunes/GrowlTunesController.m
--- a/Extras/GrowlTunes/GrowlTunes/GrowlTunesController.m Wed May 30 00:37:42 2012 -0500
+++ b/Extras/GrowlTunes/GrowlTunes/GrowlTunesController.m Sun Aug 26 14:02:14 2012 +0400
@@ -97,6 +97,11 @@
}
}
+- (BOOL)hideMenuIcon
+{
+ return [[NSUserDefaults standardUserDefaults] boolForKey:@"hideMenuIcon"];
@theirix
theirix / cantata-dumpPlayer.patch
Created September 15, 2018 18:50
cantata-dumpPlayer.patch
diff --git a/mpd-interface/httpstream.cpp b/mpd-interface/httpstream.cpp
index a8b9cc0e..27cdfbe2 100644
--- a/mpd-interface/httpstream.cpp
+++ b/mpd-interface/httpstream.cpp
@@ -288,4 +288,22 @@ void HttpStream::stopTimer()
playStateChecks=0;
}
+void HttpStream::dumpPlayer()
+{
From 168f9fa1a04f9929f08974276f8de2190bb24fcc Mon Sep 17 00:00:00 2001
From: theirix <theirix@gmail.com>
Date: Fri, 9 Mar 2018 10:33:21 +0300
Subject: [PATCH] Style improvements
---
conanfile.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/conanfile.py b/conanfile.py
@theirix
theirix / bootstrap-windev.sh
Created January 17, 2018 08:11
Bootstrap Windows Development VirtualBox Vm
#!/bin/sh
echo IT RUNS SLOW AND IS NOT TESTED ENOUGHT
exit 1
echo Download and configure Windows development VM with Visual Studio
echo See https://developer.microsoft.com/en-us/windows/downloads/virtual-machines
curl -L https://aka.ms/windev_VM_virtualbox | bsdtar -xvf - -C .
ISO=$(ls -1t *.iso | head -n1)
HOSTIP=$(hostname -i)
@theirix
theirix / conanfile.py
Last active April 8, 2017 16:41
Duplicated requirement for version range
[requires]
libcurl/7.52.1@theirix/stable # depends to libssh2/[~=1.8]@theirix/stable, zlib/[~=1.2]@lasote/stable
libssh2/1.8.0@theirix/stable # depends to zlib/[~=1.2]@lasote/stable, OpenSSL/1.0.2k@lasote/stable
zlib/1.2.11@lasote/stable
OpenSSL/1.0.2k@lasote/stable # depends to zlib/1.2.11@lasote/stable
[generators]
cmake
[options]
--- tcpreplay-4.2.1-old/configure.ac 2017-03-23 17:41:31.000000000 +0300
+++ tcpreplay-4.2.1/configure.ac 2017-03-30 12:41:46.000000000 +0300
@@ -1100,7 +1100,7 @@
have_pcap_version=no
dnl Check to see if we have pcap_version[]
AC_MSG_CHECKING(for pcap_version[])
-AC_TRY_COMPILE([
+AC_TRY_LINK([
#include <stdio.h>
#include <stdlib.h>