Skip to content

Instantly share code, notes, and snippets.

View mcepl's full-sized avatar

Matěj Cepl mcepl

View GitHub Profile
@mcepl
mcepl / failing-binary-test.py
Created February 23, 2012 20:28
Test originally from Data::YAML testsuite
#!/usr/bin/python
import yaml
IN = {
"name": 'Hello World 6',
"in": [
"---",
"- \"\\z\\x01\\x02\\x03\\x04\\x05\\x06\\a\\x08\\t\\n\\v\\f\\r\\x0e\\x0f\"",
"- \"\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\\x18\\x19\\x1a\\e\\x1c\\x1d\\x1e\\x1f\"",
"- \" !\\\"#\$%&'()*+,-./\"",
@mcepl
mcepl / succeeding-perl-binary-test.pl
Created February 23, 2012 20:29
Test originally from Data::YAML testsuite (succeeds)
#!/usr/bin/perl -Wall
use strict;
use warnings;
use Data::YAML::Reader;
my %test = (
name => "Unprintables",
in => [
"---",
@mcepl
mcepl / gist:2127655
Created March 19, 2012 22:22
backtrace
mitmanek:banka $ gdb gnucash
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-52.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
mitmanek:banka $ gnucash
Found Finance::Quote version 1.17
LibOFX INFO: libofx_proc_file(): File format not specified, autodecting...
(Above message occured on Line 18446744073709551615, Column 18446744073709551615)
LibOFX INFO: libofx_proc_file(): Detected file format: OFX (Open Financial eXchange (OFX or QFX))
(Above message occured on Line 18446744073709551615, Column 18446744073709551615)
LibOFX ERROR: ofx_proc_file(): Conversion error
(Above message occured on Line 18446744073709551615, Column 18446744073709551615)
LibOFX ERROR: ofx_proc_file(): Conversion error
(Above message occured on Line 18446744073709551615, Column 18446744073709551615)
@mcepl
mcepl / test.xml
Created March 20, 2012 14:52
Testing OFX 211 XML file
<?xml version="1.0"?>
<?OFX OFXHEADER="200" VERSION="211" SECURITY="NONE" ENCODING="UTF-8"
OLDFILEUID="NONE" NEWFILEUID="NONE"?>
<OFX xmlns="http://ofx.net/types/2003/04">
<SIGNONMSGSRSV1>
<SONRS>
<STATUS>
<CODE>0</CODE>
<SEVERITY>INFO</SEVERITY>
</STATUS>
@mcepl
mcepl / make-log.txt
Last active December 13, 2015 20:49
289-FTBFS-Linux-freetype
make[1]: Entering directory `/home/matej/archiv/knihovna/repos/tmp/servo/build/src/pixman'
make all-recursive
make[2]: Entering directory `/home/matej/archiv/knihovna/repos/tmp/servo/build/src/pixman'
Making all in pixman
make[3]: Entering directory `/home/matej/archiv/knihovna/repos/tmp/servo/build/src/pixman/pixman'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/matej/archiv/knihovna/repos/tmp/servo/build/src/pixman/pixman'
Making all in demos
make[3]: Entering directory `/home/matej/archiv/knihovna/repos/tmp/servo/build/src/pixman/demos'
make[3]: Nothing to be done for `all'.
@mcepl
mcepl / servo-build-log.txt
Last active December 14, 2015 04:39
record of make command
This file has been truncated, but you can view the full file.
Script started on Wed 27 Mar 2013 00:46:14 CET
[?1034hmatej@wycliff: build (master)$ ../configure
configure: looking for configure programs
configure: found cmp
configure: found mkdir
configure: found printf
configure: found cut
configure: found grep
configure: found xargs
configure: found cp
@mcepl
mcepl / bn.h
Last active December 14, 2015 13:38
/* crypto/bn/bn.h */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
diff --git a/app.js b/app.js
index 7067f35..dc78555 100644
--- a/app.js
+++ b/app.js
@@ -1,5 +1,6 @@
var SWMgr = require("./lib/SWModuleMgr.js");
+console.log(SWMgr.getGlobalPath());
SWMgr.getModule("esv", function (inModule) {
--- m2crypto-0.21.1.orig/setup.py
+++ m2crypto-0.21.1/setup.py
@@ -54,6 +54,10 @@
self.swig_opts = ['-I%s' % i for i in self.include_dirs + \
[opensslIncludeDir]]
+ if 'DEB_HOST_MULTIARCH' in os.environ:
+ opensslMultiarchIncludeDir = os.path.join(
+ opensslIncludeDir, os.environ['DEB_HOST_MULTIARCH'])
+ self.swig_opts.append('-I%s' % opensslMultiarchIncludeDir)