Skip to content

Instantly share code, notes, and snippets.

View mcepl's full-sized avatar

Matěj Cepl mcepl

View GitHub Profile
@mcepl
mcepl / vim-7.0-hunspell.patch
Created March 10, 2017 12:59
refreshed patch for vim/vim#846
diff -up vim-8.0.0363/src/Makefile.hunspell vim-8.0.0363/src/Makefile
--- vim-8.0.0363/src/Makefile.hunspell 2017-02-23 20:20:53.000000000 +0100
+++ vim-8.0.0363/src/Makefile 2017-02-24 14:29:28.614983465 +0100
@@ -1446,7 +1446,8 @@ ALL_LIBS = \
$(RUBY_LIBS) \
$(PROFILE_LIBS) \
$(SANITIZER_LIBS) \
- $(LEAK_LIBS)
+ $(LEAK_LIBS) \
+ -lhunspell-1.4
<iq type='get' to='cepl.eu' id='purpledisco33a8f97a'>
<query xmlns='http://jabber.org/protocol/disco#info'/>
</iq>
<iq id='purpledisco33a8f97a' from='cepl.eu' to='mcepl@cepl.eu/2147a68ff5a83056f63f2a8aa2e2fa5e7077a905' type='result'>
<query xmlns='http://jabber.org/protocol/disco#info'>
<identity name='Jabber IM server' type='im' category='server'/>
<feature var='jabber:iq:private'/>
<feature var='presence'/>
<feature var='jabber:iq:agents'/>
<feature var='urn:xmpp:ping'/>
diff -ru vim70.orig/src/Makefile vim70.hunspell/src/Makefile
--- vim70.orig/src/Makefile 2006-12-15 12:29:41.000000000 +0000
+++ vim70.hunspell/src/Makefile 2006-12-14 11:11:20.000000000 +0000
@@ -1287,7 +1287,7 @@
PFLAGS = $(PROTO_FLAGS) -DPROTO $(LINT_CFLAGS)
ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
-ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS)
+ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS) -lhunspell-1.1
[test@ibm-z10-53 ~]$ git clone --recursive --branch tmp/debug-tgp-98 git@github.com:BenWiederhake/tgl.git
Cloning into 'tgl'...
The authenticity of host 'github.com (192.30.252.131)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
@mcepl
mcepl / build.log
Last active October 16, 2015 14:30
[test@ibm-z10-53 ~]$ git clone --recursive --branch tmp/debug-tgp-98 https://github.com/BenWiederhake/tgl.git
Cloning into 'tgl'...
remote: Counting objects: 1336, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 1336 (delta 10), reused 0 (delta 0), pack-reused 1317
Receiving objects: 100% (1336/1336), 898.50 KiB | 0 bytes/s, done.
Resolving deltas: 100% (976/976), done.
Submodule 'tl-parser' (https://github.com/vysheng/tl-parser) registered for path 'tl-parser'
Cloning into 'tl-parser'...
remote: Counting objects: 48, done.
Mock Version: 1.1.16
Mock Version: 1.1.16
ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target s390 --nodeps builddir/build/SPECS/telegram-purple.spec'], False, '/var/lib/mock/rhel-7.2-build-2673211-1277730/root/', None, 86400, True, False, 498, 135, None, logger=<mockbuild.trace_decorator.getLog object at 0x94baefd0>)
Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target s390 --nodeps builddir/build/SPECS/telegram-purple.spec']
Building target platforms: s390
Building for target s390
Wrote: /builddir/build/SRPMS/telegram-purple-1.0.0-0.0.MC.1.vcs20150525.el7.src.rpm
warning: Could not canonicalize hostname: s390-014.build.bos.redhat.com
Child returncode was: 0
LEAVE do -->
#!/usr/bin/python
import re
import logging
import sys
import email
import time
from collections import OrderedDict as odict
logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
level=logging.INFO)
@mcepl
mcepl / gist:3bc960502645097f412a
Created September 15, 2014 13:22
Fix unicode crash in behave
--- a/behave/model.py
+++ b/behave/model.py
@@ -1203,7 +1203,7 @@ class Step(BasicStatement, Replayable):
if capture:
# -- CAPTURE-ONLY: Non-nested step failures.
if runner.config.stdout_capture:
- output = runner.stdout_capture.getvalue()
+ output = runner.stdout_capture.getvalue().encode('utf_8')
if output:
error += '\nCaptured stdout:\n' + output
@mcepl
mcepl / steps_tutorial.py
Created June 19, 2014 09:31
Most simple behave testing setup (according to https://pythonhosted.org/behave/tutorial.html)
from behave import *
@given('we have behave installed')
def step_impl(context):
pass
@when('we implement a test')
def step_impl(context):
assert True is not False
@mcepl
mcepl / logcat.txt
Created February 5, 2014 11:08
output of abd logcat to evidence memory crash of Podcast
--------- beginning of /dev/log/system
I/Vold ( 123): Vold 2.1 (the revenge) firing up
D/Vold ( 123): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 123): Volume emmc state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 123): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 123): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
W/Vold ( 123): Duplicate state (1)
W/Vold ( 123): Duplicate state (1)
W/Vold ( 123): Duplicate state (1)
W/Vold ( 123): Duplicate state (1)