Skip to content

Instantly share code, notes, and snippets.

@shrkamat
shrkamat / aarch64-cross-build.patch
Last active February 12, 2020 09:48
CRIU aarch64-cross
commit 1f511ad12ea3513da6187223b0863831483b7f8a
Author: shrkamat <skamath@synamedia.com>
Date: Wed Feb 12 15:13:40 2020 +0530
Add aarch64 as corss-compile test
diff --git a/compel/arch/aarch64/src/lib/include/uapi/asm/sigframe.h b/compel/arch/aarch64/src/lib/include/uapi/asm/sigframe.h
index bff714cc..1c51ed0e 100644
--- a/compel/arch/aarch64/src/lib/include/uapi/asm/sigframe.h
+++ b/compel/arch/aarch64/src/lib/include/uapi/asm/sigframe.h
@shrkamat
shrkamat / minimalegl_x11.patch
Created February 13, 2020 15:33
Verify minimal egl with X11
diff --git a/src/plugins/platforms/minimalegl/minimalegl.pro b/src/plugins/platforms/minimalegl/minimalegl.pro
index b7dde9069f..bf061003b0 100644
--- a/src/plugins/platforms/minimalegl/minimalegl.pro
+++ b/src/plugins/platforms/minimalegl/minimalegl.pro
@@ -4,7 +4,7 @@ QT += \
core-private gui-private \
eventdispatcher_support-private fontdatabase_support-private egl_support-private
-#DEFINES += QEGL_EXTRA_DEBUG
+DEFINES += QEGL_EXTRA_DEBUG
git clone https://github.com/llvm/llvm-project.git
git tag -l --sort=-creatordate --format='%(creatordate:short): %(refname:short)' | grep "10\."
git checkout llvmorg-10.0.0
cd llvm-project
Refs
====
cc: https://llvm.org/docs/HowToCrossCompileLLVM.html
march: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.100067_0608_00_en/chr1411547793198.html
@shrkamat
shrkamat / gammaray-2.10
Last active November 12, 2020 13:47
Gammaray build failure
-- The CXX compiler identification is GNU 6.3.0
-- The C compiler identification is GNU 6.3.0
-- Check for working CXX compiler: /auto/data/Published/code/compilers/stbgcc-6.3-1.7-kaon/bin/aarch64-linux-g++
-- Check for working CXX compiler: /auto/data/Published/code/compilers/stbgcc-6.3-1.7-kaon/bin/aarch64-linux-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /auto/data/Published/code/compilers/stbgcc-6.3-1.7-kaon/bin/aarch64-linux-gcc
-- Check for working C compiler: /auto/data/Published/code/compilers/stbgcc-6.3-1.7-kaon/bin/aarch64-linux-gcc -- works
@shrkamat
shrkamat / SuryaNamaskara.xml
Last active March 7, 2021 15:18
Suryanamaskara with polly
<speak>
<p>Starting first half for round 1</p>
<break time="2s"/>
<p>Prayer pose</p>
<break time="3s"/>
<p>Raised arms pose</p>
<break time="2.5s"/>
<p>Hand to foot pose</p>
<break time="2.8s"/>
@shrkamat
shrkamat / epbf-kprobe-fail
Created March 25, 2021 22:16
strace for ebpf-kprobe
execve("./ebpf-kprobe", ["./ebpf-kprobe"], 0x7ffc5b9788 /* 6 vars */) = 0
sched_getaffinity(0, 8192, [0, 1, 2, 3]) = 8
openat(AT_FDCWD, "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size", O_RDONLY) = -1 ENOENT (No such file or directory)
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8c309000
mmap(0x4000000000, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000000000
mmap(0x4000000000, 67108864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4000000000
mmap(NULL, 33554432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8a309000
mmap(NULL, 2164736, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8a0f8000
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8a0e8000
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8a0d8000
@shrkamat
shrkamat / qt-5.4-qeglplatformintegration-Redefine-CursorShape-from-X.patch
Created September 17, 2021 09:43
Qt 5.4 / 5.6 build failure on Ubuntu 20.04
diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
index 2b5d5f50fb..49b3ad151b 100644
--- a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
+++ b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
@@ -50,6 +50,10 @@
#include <qpa/qplatformnativeinterface.h>
#include <EGL/egl.h>
+#ifdef CursorShape
+#undef CursorShape
@shrkamat
shrkamat / qt-5.5-qeglplatformintegration-X.patch
Created September 30, 2021 09:51
Fixes of Qt 5.5 compilation errors
diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
index 42fbf8c8a1..e4bb58ebec 100644
--- a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
+++ b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h
@@ -50,6 +50,14 @@
#include <qpa/qplatformnativeinterface.h>
#include <EGL/egl.h>
+#ifdef None
+#undef None
./build.sh
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make distclean
make[1]: Entering directory '/home/skamath/Projects/vim.wasm/src'
cd testdir; make -f Makefile clean
make[2]: Entering directory '/home/skamath/Projects/vim.wasm/src/testdir'
rm -rf *.out *.failed *.res *.rej *.orig XfakeHOME Xdir1 Xfind
rm -f opt_test.vim test.log test_result.log messages
rm -f test.out X* viminfo tiny.vim small.vim mbyte.vim mzscheme.vim test.ok benchmark.out
@shrkamat
shrkamat / observer.cpp
Last active March 4, 2022 09:49
observer/ listener based on weak_ptr
#include <iostream>
#include <list>
#include <memory>
#include <string>
struct Config {
std::string clientId;
};
class ConfigListener {