Skip to content

Instantly share code, notes, and snippets.

View niklasfi's full-sized avatar

Niklas Fischer niklasfi

View GitHub Profile
#ifndef _LWIPOPTS_H
#define _LWIPOPTS_H
// Common settings used in most of the pico_w examples
// (see https://www.nongnu.org/lwip/2_1_x/group__lwip__opts.html for details)
// allow override in some examples
#ifndef NO_SYS
#define NO_SYS 1
@niklasfi
niklasfi / ModelMapperJDK16Test.java
Created April 19, 2021 07:34
Model Mapper fails to configure with JDK 16
package com.example;
import org.modelmapper.ModelMapper;
import org.modelmapper.AbstractCondition;
import org.modelmapper.PropertyMap;
import org.modelmapper.convention.MatchingStrategies;
import org.modelmapper.spi.MappingContext;
public class ModelMapperJDK16Test {
public static class Foo {
server {
listen 80;
server_name matrix.niklasfi.de;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name matrix.niklasfi.de;
nm ../../scipoptsuite-3.2.1/lib/libscipopt.a -e --demangle | grep gzstreambuf
0000000000000160 T gzstream::gzstreambuf::flush_buffer()
00000000000000d0 T gzstream::gzstreambuf::open(char const*, int)
00000000000001e0 T gzstream::gzstreambuf::sync()
00000000000001e0 t gzstream::gzstreambuf::sync() [clone .localalias.13]
0000000000000220 T gzstream::gzstreambuf::close()
00000000000001a0 T gzstream::gzstreambuf::overflow(int)
0000000000000000 T gzstream::gzstreambuf::underflow()
0000000000000000 W gzstream::gzstreambuf::~gzstreambuf()
0000000000000000 W gzstream::gzstreambuf::~gzstreambuf()
017-01-07 15:29:06,151 - synapse.access.http.5240 - 91 - INFO - GET-18804- 79.212.109.170 - 5240 - {@niklas:matrix.niklasfi.de} Processed r
equest: 303ms (23ms, 0ms) (0ms/0) 255B 200 "GET /_matrix/client/r0/sync?filter=10&timeout=30000&since=s119413_86181_159_6482_60_37_125&acces
s_token=<redacted> HTTP/1.0" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
2017-01-07 15:29:06,253 - synapse.access.https.8448 - 59 - INFO - PUT-18806- 178.21.23.139 - 8448 - Received request: PUT /_matrix/federatio
n/v1/send/1483547122685/
2017-01-07 15:29:06,257 - synapse.federation.transport.server - 138 - INFO - PUT-18806- Request from disroot.org
2017-01-07 15:29:06,258 - synapse.federation.transport.server - 244 - INFO - PUT-18806- Received txn 1483547122685 from disroot.org. (PDUs:
0, EDUs: 1, failures: 0)
2017-01-07 15:29:06,272 - synapse.access.https.8448 - 91 - INFO - PUT-18805- 83.166.68.251 - 8448 - {matrix.org} Processed request: 309ms (8
ms, 0ms) (282ms/3) 11B 200 "PUT /_matrix/federati
Sep 19 15:54:49 desktop kernel: BTRFS warning (device dm-7): checksum error at logical 3170487205888 on dev /dev/dm-5, sector 1733726400, root 10253, inode 171394, offset 13762560, length 4096, links 1 (path: 2012/November/21/_DSC1824.NEF)
Sep 19 15:54:49 desktop kernel: BTRFS warning (device dm-7): checksum error at logical 3170487205888 on dev /dev/dm-5, sector 1733726400, root 10249, inode 171394, offset 13762560, length 4096, links 1 (path: 2012/November/21/_DSC1824.NEF)
Sep 19 15:54:49 desktop kernel: BTRFS warning (device dm-7): checksum error at logical 3170487205888 on dev /dev/dm-5, sector 1733726400, root 10243, inode 171394, offset 13762560, length 4096, links 1 (path: 2012/November/21/_DSC1824.NEF)
Sep 19 15:54:49 desktop kernel: BTRFS warning (device dm-7): checksum error at logical 3170487205888 on dev /dev/dm-5, sector 1733726400, root 260, inode 171394, offset 13762560, length 4096, links 1 (path: 2012/November/21/_DSC1824.NEF)
Sep 19 15:54:49 desktop kernel: BTRFS warning (device dm-7): check
synapse@git:~$ git clone https://github.com/vector-im/vector-web.git
Cloning into 'vector-web'...
cdremote: Counting objects: 15933, done.
remote: Total 15933 (delta 0), reused 0 (delta 0), pack-reused 15933
Receiving objects: 100% (15933/15933), 3.26 MiB | 2.28 MiB/s, done.
Resolving deltas: 100% (9950/9950), done.
Checking connectivity... done.
synapse@git:~$ cd vector-web/
synapse@git:~/vector-web$ npm install
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import sqlalchemy
from sqlalchemy.ext.declarative import declarative_base
engine = sqlalchemy.create_engine('postgresql://osm:@/osm')
Base = declarative_base()
[ 1587.363495] task PC stack pid father
[ 1587.363565] btrfs-transacti D ffff8804685b0000 6440 2740 2 0x00000080
[ 1587.363569] ffff88043d863d28 0000000000000046 ffff88043dedcc50 ffff88043d863fd8
[ 1587.363572] 00000000001d5800 00000000001d5800 ffff88043dedcc50 ffff8804186a4000
[ 1587.363575] ffff88007a4b01e8 ffff88007a4b01e8 0000000000000000 ffff8804187acb40
[ 1587.363578] Call Trace:
[ 1587.363583] [<ffffffff817d3ad9>] schedule+0x29/0x70
[ 1587.363599] [<ffffffffa05887bf>] wait_current_trans.isra.20+0xcf/0x120 [btrfs]
[ 1587.363602] [<ffffffff810ef2c0>] ? abort_exclusive_wait+0xb0/0xb0
[ 1587.363612] [<ffffffffa0589fd0>] start_transaction+0x290/0x620 [btrfs]
[ 1072.377206] polkitd[918]: segfault at 15 ip 00007feccea1153d sp 00007fff346093e0 error 4 in libmozjs-17.0.so[7fecce914000+3b3000]
[ 1082.033209] INFO: task btrfs-transacti:2740 blocked for more than 120 seconds.
[ 1082.033213] Not tainted 3.14.0-0.rc3.git2.1.fc21.x86_64 #1
[ 1082.033214] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1082.033215] btrfs-transacti D ffff8804685b0000 6440 2740 2 0x00000080
[ 1082.033220] ffff88043d863d28 0000000000000046 ffff88043dedcc50 ffff88043d863fd8
[ 1082.033223] 00000000001d5800 00000000001d5800 ffff88043dedcc50 ffff8804186a4000
[ 1082.033226] ffff88007a4b01e8 ffff88007a4b01e8 0000000000000000 ffff8804187acb40
[ 1082.033229] Call Trace:
[ 1082.033234] [<ffffffff817d3ad9>] schedule+0x29/0x70