Skip to content

Instantly share code, notes, and snippets.

--- git-remote-mediawiki 2014-04-08 16:44:48.779892220 +0400
+++ /usr/lib/git-core/git-remote-mediawiki 2014-04-08 17:57:02.812914836 +0400
@@ -54,6 +54,10 @@
my @tracked_categories = split(/[ \n]/, run_git("config --get-all remote.". $remotename .".categories"));
chomp(@tracked_categories);
+# Custom namespaces to use, in addition to main
+my @custom_namespaces = split(/[ \n]/, run_git("config --get remote.". $remotename .".namespaces"));
+chomp(@custom_namespaces);
+
@MarSoft
MarSoft / gist:83f1fe35c959b15cf321
Created March 6, 2015 21:16
qemu-fdt PKGBUILD patch
# Maintainer: Josh Cartwright <[email protected]>
# Based on extra/qemu maintained by Tobias Powalowski <[email protected]>
pkgname=qemu-fdt
pkgver=1.5.0
pkgrel=2
pkgdesc="A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation."
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
url="http://wiki.qemu.org/Index.html"
makedepends=('texi2html' 'perl' 'python2')
mars@bookone p12 /tmp $ pebble new-project
Creating new project test
mars@bookone p12 /tmp $ cd test
mars@bookone p12 /tmp/test $ pebble build
Setting top to : /tmp/test
Setting out to : /tmp/test/build
Checking for program gcc,cc : arm-none-eabi-gcc
Checking for program ar : arm-none-eabi-ar
Found Pebble SDK in : /opt/pebble/Pebble
'configure' finished successfully (0.705s)
@MarSoft
MarSoft / -
Created November 6, 2015 16:03
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c++0x -Wall -W -D_REENTRANT -fPIC -DNOMINMAX -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I3rdParty/leptonica/include -I3rdParty/tesseract/include -I3rdParty/opencv/include -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ocr_test.o ocr_test/ocr_test.cpp
Makefile:726: recipe for target 'ocr_test.o' failed
@MarSoft
MarSoft / -
Created November 6, 2015 16:04
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c++0x -Wall -W -D_REENTRANT -fPIC -DNOMINMAX -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I3rdParty/leptonica/include -I3rdParty/tesseract/include -I3rdParty/opencv/include -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ocr_test.o ocr_test/ocr_test.cpp
In file included from ocr_test/OcrMatchProcessor.h:9:0,
from ocr_test/ocr_test.cpp:16:
ocr_test/ImgParser.h:76:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif _H_IMG_PARSER
^
In file included from ocr_test/core/threads/RpcThread.h:4:0,
from ocr_test/OcrMatchProcessor.h:5,
from ocr_test/ocr_test.cpp:16:
ocr_test/core/threads/../memory/SmartPtr.h:147:28: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
@MarSoft
MarSoft / -
Created November 6, 2015 16:15
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c++0x -Wall -W -D_REENTRANT -fPIC -DNOMINMAX -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I3rdParty/leptonica/include -I3rdParty/tesseract/include -I3rdParty/opencv/include -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ocr_test.o ocr_test/ocr_test.cpp
In file included from ocr_test/OcrMatchProcessor.h:9:0,
from ocr_test/ocr_test.cpp:16:
ocr_test/ImgParser.h:76:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif _H_IMG_PARSER
^
In file included from ocr_test/core/threads/RpcThread.h:4:0,
from ocr_test/OcrMatchProcessor.h:5,
from ocr_test/ocr_test.cpp:16:
ocr_test/core/threads/../memory/SmartPtr.h:147:28: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
@MarSoft
MarSoft / -
Created November 8, 2015 21:26
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIC -DNOMINMAX -DQT_NO_DEBUG -DQT_CORE_LIB -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ocr_test.o ocr_test/ocr_test.cpp
In file included from ocr_test/OcrMatchProcessor.h:12:0,
from ocr_test/ocr_test.cpp:16:
ocr_test/ImgParser.h:79:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif _H_IMG_PARSER
^
In file included from ocr_test/ocr_test.cpp:16:0:
ocr_test/OcrMatchProcessor.h:23:48: error: invalid initialization of non-const reference of type 'std::string& {aka std::basic_string<char>&}' from an rvalue of type 'std::string {aka std::basic_string<char>}'
OcrMatchInfo(std::string& lTeam = std::string(), std::string& rTeam = std::string(), int lScore = 0, int rScore = 0, int time = 0) : leftTeam(lTeam), rightTeam(rTeam), leftScore(lScore), rightScore(rScore), time(time) {}
@MarSoft
MarSoft / -
Created November 9, 2015 21:02
g++ -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro -o Release/ocr_test ocr_test.o ImgCoordsScaler.o ImgParser.o ImgProcHelper.o IoHelper.o OcrAbcSaver.o OcrMatchProcessor.o OcrSystem.o ocrmatchprocessorworker.o OcrLogger.o moc_ocrmatchprocessorworker.o -ltesseract -llept -lopencv_core -lopencv_highgui -lopencv_imgproc -lQt5Core -lpthread
OcrMatchProcessor.o: In function `OcrMatchProcessor::_worker_processFrame()':
OcrMatchProcessor.cpp:(.text+0x2b14): undefined reference to `OcrMeanValue::pushVal(int)'
OcrMatchProcessor.cpp:(.text+0x2b27): undefined reference to `OcrMeanValue::pushVal(int)'
OcrMatchProcessor.cpp:(.text+0x2b33): undefined reference to `OcrMeanValue::getVal()'
OcrMatchProcessor.cpp:(.text+0x2b41): undefined reference to `OcrMeanValue::getVal()'
OcrMatchProcessor.cpp:(.text+0x300f): undefined reference to `OcrMeanValue::pushVal(int)'
OcrMatchProcessor.cpp:(.text+0x3022): undefined reference to `OcrMeanValue::pushVal(int)'
OcrMatchProcessor.cpp:(.text+0x302e): undefined reference to `OcrMe
@MarSoft
MarSoft / -
Created November 23, 2015 12:10
g++ -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro -o Release/ocr_test ocr_test.o ImgCoordsScaler.o ImgParser.o ImgProcHelper.o IoHelper.o OcrAbcSaver.o OcrMatchProcessor.o OcrSystem.o ocrmatchprocessorworker.o OcrLogger.o OcrMeanValue.o OcrFreqValue.o moc_ocrmatchprocessorworker.o -ltesseract -llept -lopencv_core -lopencv_highgui -lopencv_imgproc -lQt5Core -lpthread
/usr/bin/ld: warning: libicui18n.so.55, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib/libQt5Core.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libicuuc.so.55, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib/libQt5Core.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib/libQt5Core.so: undefined reference to `ucnv_setSubstChars_55'
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib/libQt5Core.so: undefined reference to `ucal_getDefaultTimeZone_55'
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib/li

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: